Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFmpeg command execution

    29 janvier 2019, par Sanket990

    How to file name space allowed in ffmpeg command execution time and executing this command in android. i.e
    ffmpeg -y -i /sdcard/**folder name/file name**.mp4 any way to handle space allowed?

    I m getting error in logcat No such file or directory error

  • How to make terminal refer to more recent ffmpeg installation path (currently refers to Anaconda's installation) ? [on hold]

    29 janvier 2019, par John Doe

    I would like to use ffmpeg to convert a WAV audio file to MP3, but ffmpeg doesn't have a native MP3 encoder. Their documentation says you can use the external libmp3lame encoding library to achieve this, which "requires the presence of the libmp3lame headers and library during configuration" by "explicitly configur[ing] the build with --enable-libmp3lame."

    I tried installing the latest version of ffmpeg to my desktop and followed the configuration instructions to include libmp3lame. However, when I tried it out in my terminal, I got an error saying that ffmpeg could not find the libmp3lame encoder.

    When I enter "which ffmpeg" into my terminal, the path I am given refers to another, older installation of ffmpeg that was included automatically when I installed Anaconda years ago.

    How can I change the path of the installation my terminal refers to so that when I execute ffmpeg commands, it will use the version I more recently configured to include libmp3lame on my desktop and not the older installation included in Anaconda's directories?

  • Record Screen Specific View using MediaRecorder

    29 janvier 2019, par Ahsan Saeed

    I want to record my screen video in specific View link only want to record the action performing inside LinearLayout. Right now, MediaRecorder is recording whole screen, how to record specific part of screen?

  • Android : FFmpeg taking high memory/cpu usage causing crash

    29 janvier 2019, par dastan

    I compiled ffmpeg for android, enabled mediacodec and jni. its works but when I merge HD video 60fps, its crash the app. this ffmpeg cmd I am using.

    [-y, -benchmark, -ss, 0.0, -t, 11.541, -i, VID_HD.mp4, -filter_complex, [0:v]setpts=PTS-STARTPTS,scale=1080.0:1920.0:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2:color=#000000, -c:v, libx264, -c:a, aac, -ac, 2, -ar, 44100, -preset, ultrafast, -strict, -2, VID_HD.ts]
    

    Sometimes I get these error for same cmds, but when I rerun, it works and sometimes these, if I rerun 3-4 times its restart the app. maybe because of memory is not cleaning. Help me here.

    Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    
    VideoKit:Error: Failed to inject frame into filter network: Out of memory
    
    VideoKit:Error: Error while processing the decoded data for stream #0:0
    

    I need help in cleaning FFmpeg also when execution finished and I call my run(FFmpeg cmds) method for next video encoding it restart the app, I am suspecting because of memory usage.

  • Getting color mismatch while converting from NV12 raw data to H264 using FFMPEG

    29 janvier 2019, par Harshil Makwana

    I am trying to convert NV12 raw data to H264 using hw encoder of FFMPEG.

    to pass raw data to encoder I am passing AVFrame struct using below logic:

        uint8_t * buf;
        buf = (uint8_t *)dequeue();
        frame->data[0] = buf;
        frame->data[1] = buf + size;
        frame->data[2] = buf + size;
        frame->pts = frameCount;
        frameCount++;
    

    but using this logic, I am getting, color mismatched H264 data,

    Can someone tell me , How to pass buffer to AVFrame data?

    Thanks in Advance, Harshil