> 25 груд. 2014 о 00:17 Lou <[email protected]> написав(ла): > > On Wed, 24 Dec 2014 15:11:53 +0200 > Vladimir Bilichenko <[email protected]> wrote: > >> Do you have any ideas how I can solve my problem? > > You have to add an audio source. Otherwise where would the audio come > from? One method: > > "aevalsrc=0|0:d=18.2[a0];[0:v][a0][1:v][1:a][2:v][2:a]concat=n=3:v=1:a=1" > > See http://ffmpeg.org/ffmpeg-filters.html#aevalsrc >
Thank you for your answer. Here is my solution of the problem: target_width=1920 target_height=1080 target_aspect_ratio=$target_width/$target_height ./ffmpeg -y -i silence.aac -i mp4.mp4 -i ogv.ogv -i ogv2.ogv -vcodec ppm \ -s $target_width'x'$target_height \ -filter_complex "[1:v][0:a] [2:v][2:a] [3:v][3:a] concat=n=3:v=1:a=1:unsafe=1 [v] [a];[v]scale=iw*sar:ih[v2], [v2]pad=max(iw\,ih*($target_aspect_ratio)):ow/($target_aspect_ratio):(ow-iw)/2:(oh-ih)/2 [v3]" \ -aspect $target_width':'$target_height \ -b:v '512K' -b:a '128K' -strict -2 -c:v libx264 -preset ultrafast -map [v3] -map [a] -r 30 outtmp.mp4 > You may need to scale, pad, and/or crop the video from the first input > before feeding it to concat. > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
