Changes between Version 38 and Version 39 of Concatenate
- Timestamp:
- Jan 21, 2018, 4:28:59 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Concatenate
v38 v39 165 165 {{{ 166 166 mkfifo temp1 temp2 167 ffmpeg - i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp1 2> /dev/null & \168 ffmpeg - i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp2 2> /dev/null & \167 ffmpeg -y -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp1 2> /dev/null & \ 168 ffmpeg -y -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp2 2> /dev/null & \ 169 169 ffmpeg -f mpegts -i "concat:temp1|temp2" -c copy -bsf:a aac_adtstoasc output.mp4 170 170 }}} 171 172 The additional `-y` switch is needed to force ffmpeg to write to existing files `temp1` and `temp2`, which are the named pipes. Without the switch, the first two ffmpeg programs running in the background will not produce any output because they wait for interactive yes/no answers to the questions whether to overwrite existing files. 171 173 172 174 All MPEG codecs (MPEG-4 Part 10 / AVC, MPEG-4 Part 2, MPEG-2 Video, MPEG-1 Audio Layer II, MPEG-2 Audio Layer III (MP3), MPEG-4 Part III (AAC)) are supported in the MPEG-TS container format, although the commands above would require some alteration (e.g., the `-bsf` bitstream filters will have to be changed).
