Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • How to load a video file(located in assets folder ) in NDK ?

    26 mars 2013, par user1059217

    I am executing ffmpeg by android ndk, I am able to run an sample, here [https://github.com/ccggaass/android-ffmpeg-sample].

    I want to put the video in android assets folder, so how to pass this file to the ffmpeg api:

    av_open_input_file(&pFormatCtx, "file:/sdcard/vid.3gp", NULL, 0, NULL);

    Does anyone know how to pass the file to av lib?

  • How to cut part of mp4 video using ffmpeg without losing quality ? [closed]

    26 mars 2013, par user1788736

    hi all i got an mp4 video using ffmpeg but now i want to cut part of this mp4 . For example i only want first 25 min of the mp4 video from 40 min video. could you guys tell me what command i can use in ffmpeg for windows to achieve this task ?

    ffmpeg 40minvideo.mp4

  • Memory leak in ffmpeg or libav with Mac os x 10.8.2 ?

    26 mars 2013, par James491

    I've been developing a video player with FFmpeg and am experiencing some memory leakage. I am on a Mac OS X 10.8.2 and valgrind is unstable. A large memory leakage, about the size of the video itself, is leaked during av_read_frame. Also, memory leakage occurs with the simple code below, after avformat_find_stream_info. None of my programs, including the small one below, leak on my Windows computer. Any suggestions would be helpful. Should I report a bug to FFmpeg? I am using the latest version of FFmpeg, 1.1.2. Memory leakage also occurs if I use ffplay, but not if I use VLC.

        #include avcodec.h>
        #include avformat.h>
        #include swscale.h>
        #include 
    
        int main(int argc, char* argv[]) {
    
            char              *video_addr = "/Users/###/Desktop/rawmovie.mov";
            AVFormatContext   *pFormatCtx;
    
            av_register_all();
    
            if (avformat_open_input(&pFormatCtx, video_addr, NULL, NULL) != 0) {
                fprintf(stderr, "Could not open the video file\n");
                return -1;
            }
    
            if (avformat_find_stream_info(pFormatCtx, NULL) < 0) {
                fprintf(stderr, "Couldn't find stream information\n");
            }
    
            avformat_close_input(&pFormatCtx);
    
            return 0;
        }
    
  • FFMpeg-sharp exception on avformat-52.dll

    25 mars 2013, par BrunoLM

    I simply downloaded the source and compiled, so far so good.

    Then I tried to run the example (VideoPlayer) and I got an exception at

    MediaFile file = new MediaFile(m_txtPath.Text);
    

    Message:

    {"Unable to load DLL 'avformat-52.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}
    

    I tried to download the DLL from http://loaddll.com/avformat-52-dll and placed it at \Windows\System32\ and \Windows\SysWOW64\. Also on all Bin folders I could find in my solution, the exception is the same...

    Why is that, how do I fix it?

  • Stream to FFServer without FFmpeg

    25 mars 2013, par Stryker33

    I have just started exploring and developing streaming applications to stream media to FFServer...

    The basic format would be to use FFmpeg either using command line or JNI to stream media to FFServer...

    But is it possible to stream media to ffserver using the available native api's available on the Android / WP8 / iOS platform or any other platorm rather than using the traditional way through ffmpeg...?

    Thanks...