Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Prerequisites
- - Install Streamlink: https://streamlink.github.io/install.html#windows-binaries
- - 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.
- - If you want to watch the stream while recording, install one of the supported video players: https://streamlink.github.io/players.html#player-compatibility
- - Streamlink automatically detects VLC in the default location or PATH, so I'd recommend installing that for newbies.
- # Recording
- 1. Open up a command prompt / terminal emulator.
- 2. Run `streamlink -o $output --retry-streams $interval "$url" best` to output the broadcast to a file.
- - 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.
- - `best` means downloading the highest-quality stream. Use one of the other available streams if your download speeds aren't great.
- - `-o` outputs to a file, replace `$output` with an output filename such as `stream.mp4`.
- - If you want to watch the stream at the same time, use `-r` in place of `-o` to also open a video player.
- - If you're not using VLC, you'll need to pass `-p $player` with the name / path of your media player.
- - Stopping playback on VLC will stall the recording, so don't do that.
- 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.
- # Member-only streams
- Untested because the author is a poorfag, but streamlink supports the `--http-cookie` option to add cookies.
- Maybe some other anon can try using that in place of the cookies.txt support for youtube-dl and report back.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement