Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Get data from native process on Android

    22 octobre 2013, par Gonzalo Solera

    I´m converting a video with my app, and I got it using the FFmpeg library. I´m using a static compiled version of FFmpeg and I run my command like this:

            //Conversion video
            try {
                Process p = Runtime.getRuntime().exec("data/data/package/cache/ffmpeg -i "   path   " -g "   String.valueOf(keyFrames)   " -s 720x480 -vcodec libx264 -an -y /sdcard/lowResolution.mp4");
                p.waitFor();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            Log.d(TAG, "Video convertido"); 
    

    It works well but it takes me too much time, so I would like to put a progress bar, so I should need to read output events of the process (the same output I can see when I execute the command in terminal) in order to know how long will it take or something like that.

    Sorry for my english and thanks for help!!

  • Getting different size by converting MP4 to FLV file through FFMPEG

    22 octobre 2013, par M.Yazdian

    I try to convert MP4 videos to FLV via FFMPEG and this convert is done correctly so my FLV videos can be played in any player.

    But the problem is that when I want to convert MP4 video with the size of 50MB to FLV it would be 70MB in size in another attempt when I want to convert a file of 5MB it would be 2MB.

    So in every time that I convert an MP4 file to FLV file through FFMPEG the same file can have a different size after conversion is done from MP4 to FLV.

    It's same the process has different results in respect of size after conversion is complete.

    Please advice me

    Many thanks

  • Capturing Clear Stills from H264 Stream

    22 octobre 2013, par David Findlay

    I'm trying to capture still images from a H264 wireless IP camera using FFMPEG. I found a similar question here: How can I extract a good quality JPEG image from an H264 video file with ffmpeg?

    ffmpeg -y -i rtsp://10.2.69.201:554/ch0_0.h264 -r 10 -f image2 /var/www/camera.jpg
    

    I've implemented it as shown in that example. You can see a sample of the image I'm getting here: http://storm.woodypointcomms.com.au/camera.jpg. Basically the issue is the bottom part of the image is always blocky. If the sky has more detail and clouds the whole bottom half of the image may be blocky or blurry.

    My camera has limited stream options. One of which is I-Frame interval, you can vary it between 25-100 kbps.

    Does anyone have some suggestions about how I can get a better image?

  • FFMpeg codec compatible with rgb24 ?

    21 octobre 2013, par Chad Mourning

    I'm trying to turn some RGB data from my OpenGL screen buffer into a video using ffmpeg.

    I have successful output videos of "hand made" data using some of the YUV formats, but I'd like to use an RGB24 pixel format so I can have a 1:1 correspondence between my screen buffer and the output images.

    The codecs I've used so far don't support RGB24, except for CODEC_ID_RAWVIDEO. But when I used RAWVIDEO, the video it created wouldn't play in any of my players (it had a sane size, but appeared empty).

    Any advice on a usable RGB24 compatible codec?

  • Extracting Metadata from HLS stream(m3u8 file)

    21 octobre 2013, par anz

    I have a requirement where I need to extract metadata from an HLS Stream in Android. I have found two libraries FFMPEG and VITAMIO. Considering the fragmented support of HLS streaming on android, and after reading a plethora of even more confusing articles, I have finalized the above two libraries for further research.I have not found a single application where the extraction of metadata(timed metadata) has been done on Android.

    I am confused if it is even possible on Android. And if so,which approach should I use... help me out guys....