Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • 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.

  • ffmpeg - help understanding + correcting error message

    4 novembre 2011, par mattkc7

    I have a python script that takes a movie file name and it does it job of splitting and converting videos. However, there are red error messages that constantly pop up on the console saying:

    [buffer @ 0xa124320] Buffering several frames is not supported. Please consume all available frames before adding a new one.
    

    How can i correct this? Is there something i need to do to the videos before running ffmpeg on them? Worse, i have the screenshot below where some message gets repeated THOUSANDS of times, slowing down everything!

    A repeating (error) message which essentially slows down the splitting and converting of video files

    Any help or insight is greatly appreciated!

  • ffmpeg split into frames

    4 novembre 2011, par bradleyg

    Hey, I want to split a video which is one second long (25fps)into 25 seperate video files. I know I can split it up into jpegs but I need to retain the audio. So when I recompile audio is still there.

    This is what I tried to grab the first frame only (with audio):

    ffmpeg -i 1.mov -vcodec mjpeg -qscale 1 -an -ss 00:00:00:00 -t 00:00:00:1 frame1.mov
    

    But it doesn't seem to work. Am I wrong in assuming ffmpeg supports time stamps in this format? hh:mm:ss:f?

    Thanks

  • Output a video to a file

    3 novembre 2011, par EagleEye

    I am working on a very CPU intensive legacy application on windows which captures video frames from camera and displays it on the screen. Now I need to add a feature to it to save this video feed to an output file. And I have a raw image data as an input. I need to make this process as efficient as possible so that it doesn't affect the performance of my application.

    So what are the best available API's in C++ that I can use to create an output video file. And moreover what should be the most efficient encoding format that I must use so that I get the maximum throughput. Also I may have to use some compression techniques. So what should be the best approach.

    Moreover can I use GPU acceleration for this process and how ?

    Uptil now I have encountered following tools that I may use :

    1. OpenCV
    2. Microsoft Media Foundation LIbrary or DirectShow
    3. ffmpeg
  • Creating a sample mp3 with fade

    2 novembre 2011, par tombazza

    I need to know if it is possible to create a 30 second sample MP3 from a WAV file. The generated MP3 file must feature a fade at the start and end.

    Currently using ffmpeg, but can not find any documentation that would support being able to do such a thing.

    Could someone please provide me the name of software (CLI, *nix only) that could achieve this?