Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • Drawing on video with ffmpeg

    5 novembre 2011, par waxical

    I'm trying to get some blocks of colour overlayed/burnt into video with ffmpeg. A bit like a watermark, I suppose but not a logo, just a block of color.

    I've looked at using the drawbox function, which appears to me as if it's only applicable to creating images, not video. Alternatively, I could layer an image on the video.

    Has anyone got experience with this sorta thing?

  • 4CIF H263 video fails to decode

    5 novembre 2011, par Ankuj

    I am trying to decode a H263 4CIF(704x576) resolution file with ffmpeg, but it is detected as mp3 file and fails to get decoded. I tried with lower resolution H263 files they get decoded easily as well as 16CIF. I am using ffmpeg version 0.6.1

  • Error splitting .mov file with ffmpeg

    5 novembre 2011, par Deepak Lamichhane

    I have used the following ffmpeg command to split the given media file.

    ffmpeg -i test.mov -ss 00:00:00 -t 00:07:00 -acodec copy -vcodec copy test1.mov
    

    The video "test.mov" has the following characteristics:

    Dimensions: 320 * 240
    Codecs: MPEG-4 Video, ACC
    Duration: 00:45
    Audio channels: 2
    Total bit rate: 1,292
    

    But while splitting it shows the following errors

    FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
    built on Apr 29 2011 12:03:13 with gcc 4.2.1 (Apple Inc. build 5664)
    configuration: --disable-debug --prefix=/usr/local/Cellar/ffmpeg/0.6 --enable-shared --enable-pthreads --enable-nonfree --enable-gpl --disable-indev=jack --enable-libx264 --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx
      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
      libswscale     0.11. 0 /  0.11. 0
    [aac @ 0x10181e200]channel element 1.0 is not allocated
        Last message repeated 215 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x10180b000]max_analyze_duration reached
    
    Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 29.97 (30000/1001)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/sts-107-/Dev/cloudfactory/tmp/media/test.mov':
      Duration: 00:00:45.14, start: 0.000000, bitrate: 1297 kb/s
        Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 1195 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc
        Stream #0.1(eng): Audio: aac, 0 channels, s16, 97 kb/s
    File '/Users/sts-107-/Dev/cloudfactory/tmp/media/ten/ten-1.mov' already exists. Overwrite ? [y/N] y
    [mov @ 0x10181cc00]sample rate not set
    Output #0, mov, to '/Users/sts-107-/Dev/cloudfactory/tmp/media/ten/ten-1.mov':
        Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 1195 kb/s, 90k tbn, 30k tbc
        Stream #0.1(eng): Audio: libfaac, 0 channels, 97 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Could not write header for output file #0 (incorrect codec parameters ?)
    ""
    

    I couldn't figure out whats the problem.

    Any suggestions are most welcome Thank you in advance!!!

  • ffmpeg : h263 codec not supported in mp4 container

    4 novembre 2011, par userffmpeg

    I am trying to encode a file using ffmpeg codec h263 into an mp4 container. I get the following error whenever I try to do so: [mp4 @ 01FC05E0] track 0: could not find tag, codec not currently supported in container

    Is there any work-around for this? I am using a static build of ffmpeg (on windows)

    Could anyone please help

  • ffmpeg fade filter installed but not working ?

    4 novembre 2011, par Astha

    I have php 5.1.6 running on my CentOS 5 server running Apache 2.2.3

    I installed ffmpeg library and my aim is to covert a set of images into a slideshow with the fadein/fade out effect per image swap.

    Command ffmpeg says:

    `FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
      built on Sep 12 2011 03:37:39 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
      configuration:
      libavutil     50.36. 0 / 50.36. 0
      libavcore      0.16. 1 /  0.16. 1
      libavcodec    52.108. 0 / 52.108. 0
      libavformat   52.93. 0 / 52.93. 0
      libavdevice   52. 2. 3 / 52. 2. 3
      libavfilter    1.74. 0 /  1.74. 0
      libswscale     0.12. 0 /  0.12. 0
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
    
    Use -h to get full help or, even better, run 'man ffmpeg'
    

    and command ffmpeg -filters prints:

    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
      built on Sep 12 2011 03:37:39 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
      configuration:
      libavutil     50.36. 0 / 50.36. 0
      libavcore      0.16. 1 /  0.16. 1
      libavcodec    52.108. 0 / 52.108. 0
      libavformat   52.93. 0 / 52.93. 0
      libavdevice   52. 2. 3 / 52. 2. 3
      libavfilter    1.74. 0 /  1.74. 0
      libswscale     0.12. 0 /  0.12. 0
    Filters:
    anull            Pass the source unchanged to the output.
    anullsrc         Null audio source, never return audio frames.
    anullsink        Do absolutely nothing with the input audio.
    copy             Copy the input video unchanged to the output.
    crop             Crop the input video to width:height:x:y.
    drawbox          Draw a colored box on the input video.
    fifo             Buffer input images and send them when they are requested.
    format           Convert the input video to one of the specified pixel formats.
    gradfun          Debands video quickly using gradients.
    hflip            Horizontally flip the input video.
    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.
    overlay          Overlay a video source on top of the input.
    pad              Pad input image to width:height[:x:y[:color]] (default x and y: 0, default color: black).
    pixdesctest      Test pixel format definitions.
    scale            Scale the input video to width:height size and/or convert the image format.
    setdar           Set the frame display aspect ratio.
    setpts           Set PTS for the output video frame.
    setsar           Set the pixel sample aspect ratio.
    settb            Set timebase for the output link.
    slicify          Pass the images of input video on to next video filter as multiple slices.
    transpose        Transpose input video.
    unsharp          Sharpen or blur the input video.
    vflip            Flip the input video vertically.
    buffer           Buffer video frames, and make them accessible to the filterchain.
    color            Provide an uniformly colored input, syntax is: [color[:size[:rate]]]
    nullsrc          Null video source, never return images.
    nullsink         Do absolutely nothing with the input video.`
    

    firstly my ffmpeg was not having fade filter because it was giving error

    fade: filter not found
    

    so i installed the patch created vf_fade.c and made corresponding changes to Makefile and allfilters.c file of directory libavfilters in ffmpeg. configured it again then also ran commands 'make' and 'make install' Restarted the server but still its showing the same error

    fade: filter not found
    

    what should i do next? if any more details needed please ask and all the helps and ideas and links will be appreciated.