Recording Twitch Live Stream: Difference between revisions
Jump to navigation
Jump to search
Tag: wikieditor |
Tag: wikieditor |
||
| Line 8: | Line 8: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ streamlink -o path/to/output. | $ streamlink -o path/to/output.ts https://twitch.com/[twitchUser] best | ||
</syntaxhighlight> | |||
Streamlink output format is MPEG transport stream (MPEG-TS). The output stream will need to be converted into a more usable format with a separate utility, e.g.: | |||
<syntaxhighlight lang="bash"> | |||
$ ffmpeg -i yourvideoname.ts -c:v libx264 outputfilename.mp4 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 03:12, 15 June 2023
Streamlink
Source: Streamlink on GitHub
Can be installed with homebrew or pip.
Usage: [1]
$ streamlink -o path/to/output.ts https://twitch.com/[twitchUser] best
Streamlink output format is MPEG transport stream (MPEG-TS). The output stream will need to be converted into a more usable format with a separate utility, e.g.:
$ ffmpeg -i yourvideoname.ts -c:v libx264 outputfilename.mp4
See also Twitch API and Python Twitch API.
Recording within VLC
Finding the link to the Twitch video
- Load the Twitch stream in a Chrome browser.
- Pause the video.
- Right click on the page, not the video and select Inspect.
- Open the Network tab in Chrome's Developer Tools window.
- Start the Twitch stream.
- Scroll down in the Network window until you see a resource displayed in red.
- Copy the address of that resource.
Load the Twitch stream in VLC
- Open VLC
- File > Open Network
- Paste the URL from the Twitch stream.
- Click the Stream output option.
- Settings
- Select the location where the stream is saved under File.
- This will save a video transport stream (*.ts) file.
- The stream is not displayed automatically in the VLC window.
- Stop streaming to the file using the stop button on the VLC transport.
Convert MPEG-TS to MP4
Handbrake - Open the .ts file. Set the output settings, e.g. format: MP4 File. Set the destination and click Start.
Identifying tracks
Shazam
Mac OS desktop app.
There is an option to "Auto Shazam" but that requires actually listening to the whole video. Other option is to skip around in the video to each track and then manually identify the track with Shazam.
- ↑ Streamlink CLI - GitHub