[FFmpeg-user] Pad filter seems to have no effect
Stefano Sabatini
stefano.sabatini-lala at poste.it
Tue Aug 23 13:54:31 CEST 2011
On date Monday 2011-08-22 22:04:23 -0500, David Favor encoded:
> Input footage is a Skype recording with two video
> tracks which require to be positioned side by side
> in the final video.
>
> Looks like the pad + overlay filter is the best way
> to do this.
[...]
> David-Favor-iMac> ffmpeg -i test.skype.mov
[...]
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.skype.mov':
> Metadata:
> major_brand : qt
> minor_version : 537199360
> compatible_brands: qt
> creation_time : 2011-08-18 14:38:00
> Duration: 00:15:32.39, start: 0.000000, bitrate: 818 kb/s
> Stream #0.0(eng): Audio: aac, 44100 Hz, mono, s16, 64 kb/s
> Metadata:
> creation_time : 2011-08-18 14:38:00
> Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 97 kb/s
> Metadata:
> creation_time : 2011-08-18 14:38:00
> Stream #0.2(eng): Video: h264 (Main), yuv420p, 640x480, 343 kb/s, 14.53 fps, 1k tbr, 1k tbn, 2k tbc
> Metadata:
> creation_time : 2011-08-18 14:38:00
> Stream #0.3(eng): Video: h264 (Main), yuv420p, 640x480, 297 kb/s, 15.02 fps, 1k tbr, 1k tbn, 2k tbc
> Metadata:
> creation_time : 2011-08-18 14:38:00
> At least one output file must be specified
>
> I've tried pad with all sorts of variations of arguments and codecs,
> with no effect.
>
> The command which appears to be correct is:
>
> ffmpeg -y -i test.skype.mov -an -vf pad=640:480:640:0:white -map 0.2 -vcodec copy test.video.mov
pad=width:height[:x:y[:color]]
the padded area (specified by width:height) must contain the input
video placed at position 640:0, so it should be:
pad=640+640:480:640:0
More information about the ffmpeg-user
mailing list