VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Hi there. I install ffmpeg on my desktop running window vista.

    I am testing the following command in cmd console.

    ffmpeg.exe -i testvideo.wmv -f flv -vcodec flv -r 30 -b 512000 -s 320x240 -aspect 1.3333333333333 -vf 'pad=0:0:0:0:black' -acodec libmp3lame -ab 128000 -ar 22050 -map_meta_data 129217222130086.flv:testvideo.wmv 129217222130086.flv 2> 1292172227488f8.tmp

    And here is the result I got. No such filter: 'pad=0:0:0:0:black'
    Error opening filters!

    I am not very famaliar with ffmpeg. Anyone care to tell me how to fix this problem?

    Thanks a lot.

    The following is the complete log file:



    FFmpeg version SVN-r25922, Copyright (c) 2000-2010 the FFmpeg developers
    built on Dec 9 2010 04:07:11 with gcc 4.4.2
    configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-cpudetect --enable-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack
    libavutil 50.34. 0 / 50.34. 0
    libavcore 0.15. 0 / 0.15. 0
    libavcodec 52.99. 0 / 52.99. 0
    libavformat 52.88. 0 / 52.88. 0
    libavdevice 52. 2. 2 / 52. 2. 2
    libavfilter 1.68. 0 / 1.68. 0
    libswscale 0.12. 0 / 0.12. 0

    Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
    Input #0, asf, from 'testvideo.wmv':
    Metadata:
    title :
    artist :
    copyright :
    comment :
    WMFSDKVersion : 7.00.00.1956
    WMFSDKNeeded : 0.0.0.0000
    Duration: 00:00:10.63, start: 3.100000, bitrate: 217 kb/s
    Stream #0.0: Audio: wmav2, 32000 Hz, 2 channels, s16, 32 kb/s
    Stream #0.1: Video: wmv1, yuv420p, 320x240, 29.97 tbr, 1k tbn, 1k tbc
    [buffer @ 002ffea0] w:320 h:240 pixfmt:yuv420p
    No such filter: 'pad=0:0:0:0:black'
    Error opening filters!
    Quote Quote  
  2. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Hi
    Enter the command:-
    Code:
    ffmpeg -filters
    This will show which filters are available to you.
    Make sure that pad is listed.

    In my version, pad is included in the list.
    Like this:-
    pad Pad input image to width:height[x:y[:color]] (default x and y: 0, default color: black).
    PS
    With Windows the command might be:-
    Code:
    ffmpeg.exe -filters
    Quote Quote  
  3. I did ffmpeg -filters and I think I do have pad included.

    Here is what I got.

    C:\ffmpeg\bin>ffmpeg -filters
    FFmpeg version SVN-r24068, Copyright (c) 2000-2010 the FFmpeg developers
    built on Nov 7 2010 14:44:06 with gcc 4.5.0
    configuration: --prefix=/ffmpeg/bin --disable-debug --enable-version3 --enable
    -avfilter --enable-memalign-hack --enable-avisynth --enable-libgsm --enable-libm
    p3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
    --enable-libvorbis --enable-libx264 --enable-nonfree --enable-gpl --enable-postp
    roc --enable-libfaac --enable-libxvid --enable-zlib --enable-bzlib --enable-pthr
    eads --enable-shared --enable-static --disable-pthreads --extra-cflags=-I/ffmpeg
    /olibs/include --extra-ldflags=-L/ffmpeg/olibs/lib
    libavutil 50.20. 0 / 50.20. 0
    libavcodec 52.79. 1 / 52.79. 1
    libavformat 52.73. 0 / 52.73. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libavfilter 1.20. 1 / 1.20. 1
    libswscale 0.11. 0 / 0.11. 0
    libpostproc 51. 2. 0 / 51. 2. 0
    Filters:
    aspect Set the frame aspect ratio.
    crop Crop the input video to x:y:width:height.
    format Convert the input video to one of the specified pixel formats.
    noformat Force libavfilter not to use any of the specified pixel formats
    for the input to the next filter.
    null Pass the source unchanged to the output.
    pad Pad input image to width:height[:y[:color]] (default x and y:
    0, default color: black).
    pixelaspect Set the pixel aspect ratio.
    scale Scale the input video to width:height size and/or convert the i
    mage format.
    slicify Pass the images of input video on to next video filter as multi
    ple slices.
    unsharp Sharpen or blur the input video.
    vflip Flip the input video vertically.
    buffer (null)
    nullsrc Null video source, never return images.
    nullsink Do absolutely nothing with the input video.
    Quote Quote  
  4. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Yes, I see from your reply, pad is fitted.
    Maybe someone else can help now.
    Quote Quote  
  5. Thanks for your help.

    ANyone else know what the problem is?
    Quote Quote  
  6. Member
    Join Date
    Feb 2004
    Location
    United States
    Search Comp PM
    What about removing the quotes around your pad=0:0:0:0:black command?
    PB
    Quote Quote  
  7. Thanks, I removed the quotes around my pad=0:0:0:0:black command and here is what I got:


    FFmpeg version SVN-r24068, Copyright (c) 2000-2010 the FFmpeg developers
    built on Nov 7 2010 14:44:06 with gcc 4.5.0
    configuration: --prefix=/ffmpeg/bin --disable-debug --enable-version3 --enable-avfilter --enable-memalign-hack --enable-avisynth --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-gpl --enable-postproc --enable-libfaac --enable-libxvid --enable-zlib --enable-bzlib --enable-pthreads --enable-shared --enable-static --disable-pthreads --extra-cflags=-I/ffmpeg/olibs/include --extra-ldflags=-L/ffmpeg/olibs/lib
    libavutil 50.20. 0 / 50.20. 0
    libavcodec 52.79. 1 / 52.79. 1
    libavformat 52.73. 0 / 52.73. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libavfilter 1.20. 1 / 1.20. 1
    libswscale 0.11. 0 / 0.11. 0
    libpostproc 51. 2. 0 / 51. 2. 0

    Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
    Input #0, asf, from 'testvideo.wmv':
    Metadata:
    title :
    author :
    copyright :
    comment :
    WMFSDKVersion : 7.00.00.1956
    WMFSDKNeeded : 0.0.0.0000
    Duration: 00:00:10.63, start: 3.100000, bitrate: 217 kb/s
    Stream #0.0: Audio: wmav2, 32000 Hz, 2 channels, s16, 32 kb/s
    Stream #0.1: Video: wmv1, yuv420p, 320x240, 29.97 tbr, 1k tbn, 1k tbc
    [pad @ 01ca0290] w:320 h:240 x:0 y:0 color:0x008080FF[yuva]
    Output #0, flv, to '129217222130086.flv':
    Stream #0.0: Video: flv, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 512 kb/s, 90k tbn, 30 tbc
    Stream #0.1: Audio: libmp3lame, 22050 Hz, 2 channels, s16, 128 kb/s
    Stream mapping:
    Stream #0.1 -> #0.0
    Stream #0.0 -> #0.1
    Invalid output file index 2147483647 map_meta_data(2147483647,0)
    Quote Quote  
  8. Member
    Join Date
    Sep 2007
    Location
    Europe
    Search PM
    ‘-map_meta_data outfile[,metadata]:infile[,metadata]’

    Set meta data information of outfile from infile. Note that those are file indices (zero-based), not filenames. Optional metadata parameters specify, which metadata to copy - (g)lobal (i.e. metadata that applies to the whole file), per-(s)tream, per-(c)hapter or per-(p)rogram. All metadata specifiers other than global must be followed by the stream/chapter/program number. If metadata specifier is omitted, it defaults to global.
    By default, global metadata is copied from the first input file to all output files, per-stream and per-chapter metadata is copied along with streams/chapters. These default mappings are disabled by creating any mapping of the relevant type. A negative file index can be used to create a dummy mapping that just disables automatic copying.
    For example to copy metadata from the first stream of the input file to global metadata of the output file:

    ffmpeg -i in.ogg -map_meta_data 0:0,s0 out.mp3

    (From the FFmpeg docs).
    Quote Quote  
  9. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Hi

    It looks like autodidact cured the pad error.

    Chris K has got it right about the meta-data.
    (Though I'm not sure about s0)


    That meta-data instruction should read like this (imho):-
    -map_meta_data 0:0
    It maps the metadata from the first (and only) input file (testvideo.wmv) to the first (and only) output file (129217222130086.flv).
    First input is 0, second would be 1, third would be 2 etc.

    So I think your command should now be like this:-
    Code:
    ffmpeg.exe -i testvideo.wmv -f flv -vcodec flv -r 30 -b 512000 -s 320x240 -aspect 1.3333333333333 -vf pad=0:0:0:0:black -acodec libmp3lame -ab 128000 -ar 22050 -map_meta_data 0:0 129217222130086.flv
    Quote Quote  
  10. Member
    Join Date
    Sep 2007
    Location
    Europe
    Search PM
    Originally Posted by bat999 View Post
    (Though I'm not sure about s0):confused:
    Sometimes metadata is stored at several places, e.g. partly global and partly in the audio stream. You then can selectively copy the metadata using the "s" character (and "c" if part of chapters or "p" if part of programs).

    "-map_meta_data 0:0,s1"
    would copy the metadata from the source stream #1 (often audio) to the global metadata of the destination.

    If you don't add any mapping, FFmpeg copies all metadata to the destination. If you don't want any metadata copied you can use -map_meta_data -1,0
    Last edited by Chris K; 12th Dec 2010 at 21:23. Reason: addition
    Quote Quote  
  11. Got it. Thanks. Problem solved.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!