Advertisement
Guest User

Untitled

a guest
Sep 30th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. # Prerequisites
  2.  
  3. - Install Streamlink: https://streamlink.github.io/install.html#windows-binaries
  4. - If you're on Windows and not familiar with command line tools, use the installer, as it'll let you run the "streamlink" command globally.
  5. - If you want to watch the stream while recording, install one of the supported video players: https://streamlink.github.io/players.html#player-compatibility
  6. - Streamlink automatically detects VLC in the default location or PATH, so I'd recommend installing that for newbies.
  7.  
  8. # Recording
  9.  
  10. 1. Open up a command prompt / terminal emulator.
  11. 2. Run `streamlink -o $output --retry-streams $interval "$url" best` to output the broadcast to a file.
  12. - Replace `$interval` with the number of seconds between checks, `--retry-streams` allows Streamlink to wait for the stream to start so you can run this before it goes live.
  13. - `best` means downloading the highest-quality stream. Use one of the other available streams if your download speeds aren't great.
  14. - `-o` outputs to a file, replace `$output` with an output filename such as `stream.mp4`.
  15. - If you want to watch the stream at the same time, use `-r` in place of `-o` to also open a video player.
  16. - If you're not using VLC, you'll need to pass `-p $player` with the name / path of your media player.
  17. - Stopping playback on VLC will stall the recording, so don't do that.
  18. 3. The recording should automatically stop once the broadcast has finished, but you can also stop a recording by closing the video player or with CTRL+C.
  19.  
  20. # Member-only streams
  21.  
  22. Untested because the author is a poorfag, but streamlink supports the `--http-cookie` option to add cookies.
  23. Maybe some other anon can try using that in place of the cookies.txt support for youtube-dl and report back.
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement