[FFmpeg-user] Problem with vf pad ... help please

Mark Himsley mark at mdsh.com
Sat Sep 15 22:36:55 CEST 2012


On 15/09/2012 20:36, PyProg PyProg wrote:
> Hello,
> 
> Hi have this problem:
> 
> toto at toto-kubuntu:~$
> /home/toto/ekd_toto/linux_dependances_portables/ffmpeg/ffmpeg  -i
> "/home/toto/blender/dronez.avi" -s 900x720 -aspect 16:9 -vf
> pad=900:720:0:190:0xd28080 -sameq -y
> "/home/toto/a/nouv_EKD/video/version_3/filtres_vidéo/essai_en_ligne_de_commande_console_bd_ext.avi"

You appear to be scaling to 900 x 720 then padding to 900 x 720 and
asking ffmpeg to add 190 pixels at the top of the picture. I don't think
ffmpeg is allowed to break the rules of maths.

Do you mean something more like this?

ffmpeg -i input.avi -aspect 16:9 -vf
scale=900:530,pad=900:720:0:190:0xd28080 -sameq -y output.avi

Not that I'm saying it's going to look very good - but it's physically
possible.

> ffmpeg version N-44443-g570931d Copyright (c) 2000-2012 the FFmpeg developers
>   built on Sep 14 2012 05:11:00 with gcc 4.6 (Debian 4.6.3-1)
>   configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32
> --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static'
> --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static'
> --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static
> --disable-shared --disable-ffserver --disable-doc --enable-bzlib
> --enable-zlib --enable-postproc --enable-runtime-cpudetect
> --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis
> --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype
> --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc
> --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
>   libavutil      51. 73.100 / 51. 73.100
>   libavcodec     54. 55.100 / 54. 55.100
>   libavformat    54. 27.100 / 54. 27.100
>   libavdevice    54.  2.100 / 54.  2.100
>   libavfilter     3. 16.103 /  3. 16.103
>   libswscale      2.  1.101 /  2.  1.101
>   libswresample   0. 15.100 /  0. 15.100
>   libpostproc    52.  0.100 / 52.  0.100
> [mpeg4 @ 0xb31fae0] Invalid and inefficient vfw-avi packed B frames detected
> Input #0, avi, from '/home/toto/blender/dronez.avi':
>   Duration: 00:03:11.24, start: 0.000000, bitrate: 1536 kb/s
>     Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x576
> [SAR 1:1 DAR 5:4], 25 fps, 25 tbr, 25 tbn, 30k tbc
>     Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo,
> s16, 192 kb/s
> [Parsed_pad_0 @ 0xb321060] Input area 0:190:720:766 not within the
> padded area 0:0:900:720 or zero-sized
> [graph 0 input from stream 0:0 @ 0xb39c4c0] Failed to configure input
> pad on Parsed_pad_0
> Error opening filters!
> 
> And yet if I look this documentation my syntax is good, I do not
> understand why I get this error. Can you help me please? :
> 
> http://ffmpeg.org/ffmpeg.html#pad
> 
> What is the problem ?
> 
> a+
> 

-- 
Mark



More information about the ffmpeg-user mailing list