[FFmpeg-user] Syntax problems with different versions of FFmpeg
James Lu
luj125 at gmail.com
Sat Aug 13 07:53:41 CEST 2011
On Fri, Aug 12, 2011 at 6:44 PM, PyProg PyProg <pyprog05 at gmail.com> wrote:
> Hi,
>
> I try to apply a command with FFmpeg but I have a problem with
> different versions of FFmpeg. The problem comes from the -padleft ...
> -padright ... and a version of FFmpeg.
> It is reported that the syntax is no longer valid ... but in a more
> recent version of FFmpeg syntax in question works, and I'm wondering
> ...
>
> That's the problem:
>
> A version of FFmpeg under windows:
>
> C:\Documents and Settings\toto1>ffmpeg -i
> "E:\videos_pour_ekd\machines_sous_esc
> lier_divx.avi" -s 1280x720 -aspect 16:9 -padleft 312 -padright 312
> -padbottom
> -padtop 0 -padcolor 808080 -sameq -y "C:\Documents and Settings\toto1\Mes
> docu
> ents\ekd_tests\vidéo\08_08_11_video_filtre_bandes_predef.avi"
> FFmpeg version git-c9e16a9-Sherpya, Copyright (c) 2000-2011 the FFmpeg
> develope
> s
> built on Feb 4 2011 07:04:01 with gcc 4.2.5 20090330 (prerelease)
> [Sherpya]
> libavutil 50. 37. 0 / 50. 37. 0
> libavcore 0. 16. 1 / 0. 16. 1
> libavcodec 52.109. 0 / 52.109. 0
> libavformat 52. 95. 0 / 52. 95. 0
> libavdevice 52. 2. 3 / 52. 2. 3
> libavfilter 1. 74. 0 / 1. 74. 0
> libswscale 0. 12. 0 / 0. 12. 0
> libpostproc 51. 2. 0 / 51. 2. 0
> Input #0, avi, from 'E:\videos_pour_ekd\machines_sous_escalier_divx.avi':
> Duration: 00:00:06.00, start: 0.000000, bitrate: 936 kb/s
> Stream #0.0: Video: msmpeg4, yuv420p, 384x320, 25 tbr, 25 tbn, 25 tbc
> Option 'padleft' has been removed, use the pad filter instead
> ffmpeg: failed to set value '312' for option 'padleft'
>
> I do not understand all that this request syntax as values (???):
>
> C:\Documents and Settings\toto1>ffmpeg -i
> "E:\videos_pour_ekd\machines_sous_esca
> lier_divx.avi" -s 864x720 -aspect 16:9 -vf pad=0:0:864:720:black -sameq -y
> "C:\
> Documents and Settings\toto1\Mes
> documents\ekd_tests\vidéo\08_08_11_video_filtre
> _bandes_predef.avi"
> FFmpeg version git-c9e16a9-Sherpya, Copyright (c) 2000-2011 the FFmpeg
> developer
> s
> built on Feb 4 2011 07:04:01 with gcc 4.2.5 20090330 (prerelease)
> [Sherpya]
> libavutil 50. 37. 0 / 50. 37. 0
> libavcore 0. 16. 1 / 0. 16. 1
> libavcodec 52.109. 0 / 52.109. 0
> libavformat 52. 95. 0 / 52. 95. 0
> libavdevice 52. 2. 3 / 52. 2. 3
> libavfilter 1. 74. 0 / 1. 74. 0
> libswscale 0. 12. 0 / 0. 12. 0
> libpostproc 51. 2. 0 / 51. 2. 0
> Input #0, avi, from 'E:/videos_pour_ekd\machines_sous_escalier_divx.avi':
> Duration: 00:00:06.00, start: 0.000000, bitrate: 936 kb/s
> Stream #0.0: Video: msmpeg4, yuv420p, 384x320, 25 tbr, 25 tbn, 25 tbc
> [buffer @ 01ae1370] w:384 h:320 pixfmt:yuv420p
> [scale @ 01ae1530] w:384 h:320 fmt:yuv420p -> w:864 h:720 fmt:yuv420p
> flags:0x4
> [pad @ 01ae1770] w:864 h:720 -> w:864 h:720 x:864 y:720
> color:0x108080FF[yuva]
> [pad @ 01ae1770] Input area 864:720:1728:1440 not within the padded area
> 0:0:864
> :720 or zero-sized
> Error opening filters!
>
> If I put:-vf pad = 0:0:0:0: black ... it works !, why ?
>
> Here the operation under the default version of FFmpeg in Linux Mint 11
> RC2:
>
> toto at toto-Samsung-NF310 ~ $ ffmpeg -i
>
> "/home/toto/Documents/ekd_tests/video/entree/machines_sous_escalier_divx.avi"
> -s 1296x1080 -aspect 16:9 -padleft 312 -padright 312 -padbottom 0
> -padtop 0 -padcolor 808080 -sameq -y
>
> "/home/toto/Documents/ekd_tests/video/sortie/essai_filtre_video_bandes_exterieures.avi"
> FFmpeg version 0.6.2-4:0.6.2-1ubuntu1, Copyright (c) 2000-2010 the
> Libav developers
> built on Mar 22 2011 15:35:22 with gcc 4.5.2
> configuration: --extra-version=4:0.6.2-1ubuntu1 --prefix=/usr
> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
> --enable-libgsm --enable-libschroedinger --enable-libspeex
> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
> --enable-libvpx --disable-stripping --enable-runtime-cpudetect
> --enable-vaapi --enable-gpl --enable-postproc --enable-swscale
> --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
> WARNING: library configuration mismatch
> libavutil configuration:
> --extra-version=4:0.6.2-1ubuntu2+medibuntu1 --prefix=/usr
> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
> --enable-libdirac --enable-libgsm --enable-libopenjpeg
> --enable-libschroedinger --enable-libspeex --enable-libtheora
> --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
> --disable-stripping --enable-runtime-cpudetect
> --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac
> --enable-nonfree --enable-gpl --enable-postproc --enable-swscale
> --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad
> --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid
> --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686
> --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
> libavcodec configuration:
> --extra-version=4:0.6.2-1ubuntu2+medibuntu1 --prefix=/usr
> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
> --enable-libdirac --enable-libgsm --enable-libopenjpeg
> --enable-libschroedinger --enable-libspeex --enable-libtheora
> --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
> --disable-stripping --enable-runtime-cpudetect
> --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac
> --enable-nonfree --enable-gpl --enable-postproc --enable-swscale
> --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad
> --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid
> --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686
> --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
> libavformat configuration:
> --extra-version=4:0.6.2-1ubuntu2+medibuntu1 --prefix=/usr
> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
> --enable-libdirac --enable-libgsm --enable-libopenjpeg
> --enable-libschroedinger --enable-libspeex --enable-libtheora
> --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
> --disable-stripping --enable-runtime-cpudetect
> --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac
> --enable-nonfree --enable-gpl --enable-postproc --enable-swscale
> --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad
> --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid
> --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686
> --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
> libavdevice configuration: --extra-version=4:0.6.2-1ubuntu1
> --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau
> --enable-bzlib --enable-libgsm --enable-libschroedinger
> --enable-libspeex --enable-libtheora --enable-libvorbis
> --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping
> --enable-runtime-cpudetect --enable-vaapi --enable-gpl
> --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
> --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
> --disable-static --disable-ffmpeg --disable-ffplay
> libavfilter configuration: --extra-version=4:0.6.2-1ubuntu1
> --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau
> --enable-bzlib --enable-libgsm --enable-libschroedinger
> --enable-libspeex --enable-libtheora --enable-libvorbis
> --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping
> --enable-runtime-cpudetect --enable-vaapi --enable-gpl
> --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
> --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
> --disable-static --disable-ffmpeg --disable-ffplay
> libswscale configuration:
> --extra-version=4:0.6.2-1ubuntu2+medibuntu1 --prefix=/usr
> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
> --enable-libdirac --enable-libgsm --enable-libopenjpeg
> --enable-libschroedinger --enable-libspeex --enable-libtheora
> --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
> --disable-stripping --enable-runtime-cpudetect
> --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac
> --enable-nonfree --enable-gpl --enable-postproc --enable-swscale
> --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad
> --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid
> --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686
> --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
> libpostproc configuration:
> --extra-version=4:0.6.2-1ubuntu2+medibuntu1 --prefix=/usr
> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
> --enable-libdirac --enable-libgsm --enable-libopenjpeg
> --enable-libschroedinger --enable-libspeex --enable-libtheora
> --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
> --disable-stripping --enable-runtime-cpudetect
> --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac
> --enable-nonfree --enable-gpl --enable-postproc --enable-swscale
> --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad
> --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid
> --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686
> --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
> libavutil 50.15. 1 / 50.15. 1
> libavcodec 52.72. 2 / 52.72. 2
> libavformat 52.64. 2 / 52.64. 2
> libavdevice 52. 2. 0 / 52. 2. 0
> libavfilter 1.19. 0 / 1.19. 0
> libswscale 0.11. 0 / 0.11. 0
> libpostproc 51. 2. 0 / 51. 2. 0
> Input #0, avi, from
>
> '/home/toto/Documents/ekd_tests/video/entree/machines_sous_escalier_divx.avi':
> Duration: 00:00:06.00, start: 0.000000, bitrate: 936 kb/s
> Stream #0.0: Video: msmpeg4, yuv420p, 384x320, 25 tbr, 25 tbn, 25 tbc
> Output #0, avi, to
>
> '/home/toto/Documents/ekd_tests/video/sortie/essai_filtre_video_bandes_exterieures.avi':
> Metadata:
> ISFT : Lavf52.64.2
> Stream #0.0: Video: mpeg4, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
> q=2-31, 200 kb/s, 25 tbn, 25 tbc
> Stream mapping:
> Stream #0.0 -> #0.0
> Press [q] to stop encoding
> frame= 150 fps= 4 q=0.0 Lsize= 10931kB time=6.00 bitrate=14924.1kbits/s
> video:10922kB audio:0kB global headers:0kB muxing overhead 0.084284%
>
> Syntax:-vf pad ... Is now the syntax by default in all newer versions
> of FFmpeg ?
>
> I am looking for a very recent version of ffmpeg for Windows
> (ffmpeg.exe) with which the -padlef n -padright n ... -padcolor
> hexadecimal ... working properly, can you help me ?
>
> a+
>
> --
> http://ekd.tuxfamily.org
> http://ekdm.wordpress.com
> http://lcs.dunois.clg14.ac-caen.fr/~alama/blog
> http://lprod.org/wiki/doku.php/video:encodage:avchd_converter
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
Hi Pyprog
-padleft etc. options are deprecated
Use -vf pad=width:height:x:y:color as in libav doc found here:
http://ffmpeg.org/libavfilter.html#SEC39
Check the documentation; yes it's not maintained well but even it says that
the -padetc. options are deprecated :P
Hope this helps,
~James
More information about the ffmpeg-user
mailing list