Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • I have to integrate ffmpeg for iOS for doing some image extraction from a video.How can I get it done ? . expecting simple explanations [on hold]

    29 septembre 2014, par jishnu bala

    I have to integrate ffmpeg for iOS for doing some image extraction from a video.How can I get it done?.

  • Mavericks OpenCV 2.4.9 videoWriter doesn't work

    29 septembre 2014, par Maggick

    I'm having issues writing out video files using OpenCV on Mac.

    I'm running Mavericks and have OpenCV 2.4.9 and FFMPEG 2.4.1 installed, and the newest x264 from videolan.

    But when I run even the example code from opencv website I still am not able to produce a video. http://docs.opencv.org/doc/tutorials/highgui/video-write/video-write.html

    When I run the example code I get a blank video file.

    So my code doesn't seem to be the problem. And I don't get any errors so I am assuming the problem is with the codec not working. But I don't understand what I am missing.

    Has anyone else had a similar problem? Since I'm using a Mac I cannot use the -1 flag to pick a codec.

  • FFmpeg C# Video Conversion

    28 septembre 2014, par George Sillett

    On the click of a button I am trying to trim down an MP4 videos between two certain times with the use of FFmpeg C# Wrapper. My code is as follows:

    private void button1_Click(object sender, EventArgs e)
        {
            CAVConverter converter = new CAVConverter();
            converter.LogPath = @"C:\Users\Rachel\Desktop\Log.txt";           
            converter.InputOptions.TimeStart = 5000000; //Start time to trim, unit is um(micro second)
            converter.OutputOptions.TimeLength = 3000000; //Time length to trim, unit is um(micro second)
            converter.AddTask(@"C:\\Users\\Rachel\\Desktop\\Tennis\\Serve.mp4",
                                          @"C:\\Users\\Rachel\\Desktop\\Tennis\\ServeCut.mp4");            
            converter.StartAndWait();            
        }
    

    The code compiles and runs however the Log.txt file returns the following:

    Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\\Users\\Rachel\\Desktop\\Tennis\\Serve.mp4': Metadata: major_brand : isom minor_version : 0 compatible_brands: isom3gp4 Duration: 00:00:38.76, start: 0.000000, bitrate: 10193 kb/s Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 9982 kb/s, PAR 65536:65536 DAR 16:9, 30 fps, 90k tbr, 90k tbn, 180k tbc Stream #0.1(eng): Audio: libfaad, 48000 Hz, 2 channels, s16, 128 kb/s [mpeg4 @ 09762200]removing common factors from framerate [mpeg4 @ 09762200]timebase not supported by mpeg 4 standard Output #0, mp4, to 'C:\\Users\\Rachel\\Desktop\\Tennis\\ServeCut.mp4': Stream #0.0(eng): Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 90k tbc Stream #0.1(eng): Audio: libfaac, 48000 Hz, 2 channels, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 (Video) Stream #0.1 -> #0.1 (Audio) Error while opening encoder for output stream #0.0 (Video) - maybe incorrect parameters such as bit_rate, rate, width or height Error while opening encoder for output stream #0.0 (Video) - maybe incorrect parameters such as bit_rate, rate, width or height

    I don't know much about FFmpeg or videos, so can anybody help me? Many thanks

  • How to build and use ffmpeg libraries in Android project in Mac OS 10.9 ?

    28 septembre 2014, par Sunshinetpu

    In my Android project I have to create a video from some pictures. So I want to use FFmpeg libraries for it. I read many links about it (For example: http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/comment-page-4/) I tried to build FFmpeg in my computer (MAC OS 10.9) but every advice didn't work. Did anybody build and use FFmpeg in Adroid project (MAC OS) successfully? Can anybody give me some advices? Sorry for my English!

  • Working example of streaming desktop with java and ffmpeg to another pc ?

    28 septembre 2014, par Hydrophilia

    Did someone already establish a working stream of pc's desktop with java and ffmpeg? Both sender and receiver should be written in java and use ffmpeg. I know there are wrappers for ffmpeg to use it with java like xuggler but they are all outdated and not usable anymore.