Re: [FFmpeg-user] Scaling a video with multiple different resolutions

2017-01-12 Thread Jesse Liu
of course, if you want to output a 852x480 video, you can do it by: ffmpeg -i video.webm -filter_complex “[0:v]split=2[out1][out2];[out1]trim=start=starttiem1:end=endtime1,scale=w='if(gt(a,1.775),852,trunc(480*a/2)*2)':h='if(lt(a,1.775),480,trunc(852/a/2)*2),pad=w=852:h=480:x='if(gt(a,1.775),0,

[FFmpeg-user] Scaling a video with multiple different resolutions

2017-01-12 Thread Alex Speller
I have a webm file that has multiple different resolutions in it (it's a screen capture of a window that changes dimensions). https://www.dropbox.com/s/ptueirabmmht0fr/4be7fdb7-d7e9-41b4-ba26-e20a3eeb6026.webm?dl=0 Is there any way to "normalize" the dimensions and output a video of a constant re