FreeData

Livestream

Oct 1st, 2015
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.58 KB | None | 0 0
  1. @echo off
  2. cd \Users\worldjem\
  3. :start
  4. title Livestreamer
  5. Echo Welcome to the Livestreamer Batch File!
  6. echo Would you like to Watch (1) or Record (2)?
  7. echo.
  8. set /p choice= Choice (1/2):
  9. echo.
  10. if %choice%==1 goto watch
  11. if %choice%==2 goto record
  12.  
  13. :watch
  14. echo Type the URL of what you want to watch.
  15. echo Ex.: twitch.tv/123fakestreet or youtube.com/watch?v=[videoID]
  16. echo.
  17. set /p watch= Enter URL:
  18. title %watch%
  19. echo.
  20. echo Would you like to watch/record something else?
  21. set /p watch2= Choice (y/n):
  22. echo.
  23. if %watch2%==y goto watch2
  24. if %watch2%==n goto watch3
  25. echo.
  26. Goto start
  27.  
  28. :watch2
  29. start \users\user\desktop\livestreamer.bat
  30. goto watch3
  31.  
  32. :watch3
  33. livestreamer %watch% best
  34. echo.
  35. goto start
  36.  
  37.  
  38. :record
  39. echo Type the URL of what you want to record.
  40. echo Ex.: twitch.tv/123fakestreet or youtube.com/watch?v=[videoID]
  41. echo.
  42. set /p record= Enter URL:
  43. title Recording %record%
  44. echo.
  45. echo File will be saved as .mp4
  46. set /p file= Enter the file name:
  47. echo.
  48. echo Would you like to do something else while this records?
  49. set /p watch3= Choice (y/n):
  50. echo.
  51. if %watch3%==y goto newwatch
  52. if %watch3%==n goto record2
  53.  
  54.  
  55. :newwatch
  56. start \users\user\desktop\livestreamer.bat
  57. goto record2
  58.  
  59. :record2
  60. echo Now recording. Hit CTRL+C to end the recording.
  61. echo If it asks to terminate the batch job
  62. echo hit N to end the recording and continue to use this batch file
  63. echo or hit Y if you want to close this window.
  64. echo.
  65. livestreamer %record% best -o \users\worldjem\videos\livestreamer\%file%.mp4
  66. echo.
  67. echo Recording has ended. Returning to start.
  68. echo.
  69. goto start
Add Comment
Please, Sign In to add comment