Skip to content

Instantly share code, notes, and snippets.

@xingrz
Created November 19, 2014 04:39
Show Gist options
  • Save xingrz/7ae8f853519280bfafe7 to your computer and use it in GitHub Desktop.
Save xingrz/7ae8f853519280bfafe7 to your computer and use it in GitHub Desktop.
Merge flvs with ffmpeg
ffmpeg -i 画·影1.flv -c copy -bsf:v h264_mp4toannexb -f mpegts 1.ts
ffmpeg -i 画·影2.flv -c copy -bsf:v h264_mp4toannexb -f mpegts 2.ts
ffmpeg -i 画·影3.flv -c copy -bsf:v h264_mp4toannexb -f mpegts 3.ts
ffmpeg -i 画·影4.flv -c copy -bsf:v h264_mp4toannexb -f mpegts 4.ts
ffmpeg -i 画·影5.flv -c copy -bsf:v h264_mp4toannexb -f mpegts 5.ts
ffmpeg -i "concat:1.ts|2.ts|3.ts|4.ts|5.ts" -c copy -bsf:a aac_adtstoasc -movflags +faststart 画·影.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment