User Tools

Site Tools


tech:streamlink

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tech:streamlink [2023/07/08 23:56] – Add resolution change katsimbristech:streamlink [2025/10/20 18:48] (current) – Add local example to "How to download and combine m3u8 files" katsimbris
Line 2: Line 2:
 ===== How to download an m3u8 file ===== ===== How to download an m3u8 file =====
 <code>$ streamlink -o "input.mp4" https://example.m3u8 720p</code> <code>$ streamlink -o "input.mp4" https://example.m3u8 720p</code>
 +===== How to download and combine m3u8 files =====
 +Use this when trying to download one file (usually through Streamlink) only gives you segments of the whole file. I came across this code because of getting shortened files from Nebula.
 +<code>$ ffmpeg -i "video_example.m3u8" -i "audio_example.m3u8" \
 +  -c copy -map 0:v:0 -map 1:a:0 output.mp4</code>
 +or
 +<code>$ ffmpeg -i video.mp4 -i audio.mp4 -c copy -map 0:v:0 -map 1:a:0 output.mp4</code>
 ===== How to encode downloaded file ===== ===== How to encode downloaded file =====
 <code>$ ffmpeg -i input.mp4 output.mkv</code> <code>$ ffmpeg -i input.mp4 output.mkv</code>
tech/streamlink.1688860600.txt.gz · Last modified: by katsimbris