[FFmpeg-user] Video processing stopped prematurely on resolution change

Lou lou at lrcd.com
Sat Oct 22 21:21:32 EEST 2016


On Fri, Oct 21, 2016, at 04:23 AM, Martin Ždila wrote:
> Thanks Lou! Looks like hstack filter doesn't have a problem with the
> video
> changing dimensions :-)

More likely the omission of setpts filter.
 
> Now I have a problem to add logo. I've tried following command but the
> output is empty:
> 
> ffmpeg -y -i a.webm -i b.webm -i logo.png -filter_complex \
> "[0:v] fps=25, scale=320x240:force_original_aspect_ratio=decrease,
> pad=320:240:(ow-iw)/2:(oh-ih)/2 [l];
>  [1:v] fps=25, scale=320x240:force_original_aspect_ratio=decrease,
> pad=320:240:(ow-iw)/2:(oh-ih)/2 [r];
>  [l][r] hstack=inputs=2:shortest=1 [v];
>  [v][2:v] overlay=10:10:shortest=0 [o]" \
> -map "[o]" output.mp4
> 
> When I remove shortest=0 then ffmpeg never ends.

Add "-loop 1" before "-i logo.png" then use "shortest=1" in overlay.

Please avoid top-posting on this mailing list.


More information about the ffmpeg-user mailing list