Skip to content

Instantly share code, notes, and snippets.

@TotalLag
Created August 14, 2022 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TotalLag/ef89554e5a602577de5aaca4b0cdde9b to your computer and use it in GitHub Desktop.
Save TotalLag/ef89554e5a602577de5aaca4b0cdde9b to your computer and use it in GitHub Desktop.
Record 10seconds chunks of streams, combine then, remux.
ffmpeg -i "url.m3u8" -c copy -map 0 -reset_timestamps 1 -f segment -segment_time 10 -strftime 1 "%Y-%m-%d__%H:%M:%S.ts"
cat *.ts > all.ts
ffmpeg -i all.ts -c copy all.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment