[FFmpeg-trac] #6973(wiki:new): Wiki example missing option

FFmpeg trac at avcodec.org
Sun Jan 21 15:59:21 EET 2018


#6973: Wiki example missing option
------------------------------+---------------------------------------
             Reporter:  eus   |                     Type:  defect
               Status:  new   |                 Priority:  normal
            Component:  wiki  |                  Version:  unspecified
             Keywords:        |               Blocked By:
             Blocking:        |  Reproduced by developer:  0
Analyzed by developer:  0     |
------------------------------+---------------------------------------
 This wiki entry https://trac.ffmpeg.org/wiki/Concatenate#protocol has the
 following example:

 mkfifo temp1 temp2
 ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp1 2>
 /dev/null & \
 ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp2 2>
 /dev/null & \
 ffmpeg -f mpegts -i "concat:temp1|temp2" -c copy -bsf:a aac_adtstoasc
 output.mp4

 I am using Ubuntu 16.04 with its stock ffmpeg and the given example does
 not work because temp1 and temp2 are existing files, and so, ffmpeg
 refuses to run on input1.mp4 and on input2.mp4 due to ffmpeg having to
 overwrite existing files.

 The solution is to add -y switch to the first two ffmpeg commands as
 follows:
 mkfifo temp1 temp2
 ffmpeg -y -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp1 2>
 /dev/null & \
 ffmpeg -y -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp2 2>
 /dev/null & \
 ffmpeg -f mpegts -i "concat:temp1|temp2" -c copy -bsf:a aac_adtstoasc
 output.mp4

 Could the example in the wiki be revised, please?  Thank you.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6973>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list