Changes between Version 38 and Version 39 of Concatenate


Ignore:
Timestamp:
Jan 21, 2018, 6:28:59 PM (5 months ago)
Author:
eus
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Concatenate

    v38 v39  
    165165{{{ 
    166166mkfifo 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 & \ 
     167ffmpeg -y -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp1 2> /dev/null & \ 
     168ffmpeg -y -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp2 2> /dev/null & \ 
    169169ffmpeg -f mpegts -i "concat:temp1|temp2" -c copy -bsf:a aac_adtstoasc output.mp4 
    170170}}} 
     171 
     172The 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. 
    171173 
    172174All 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).