Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Is FFMPEG ignoring my settings ? I end up with low bitrate vids

    20 février 2012, par Biskoppen

    No matter what I do when I try to make MP4s from my FLVS I end up with 150-250kbs videos..

    My code : var_dump( $ffmpeg->exec('-i ' . $path_src . ' -threads 6 -maxrate 2000k -bufsize 2000k -coder 1 -flags +loop -cmp +chroma -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -me_method umh -subq 7 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 ' . '-rc_eq \'blurCplx^(1-qComp)\' -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 3 -directpred 1 -trellis 1 -flags2 +dct8x8+bpyramid -wpredp 2 -vcodec libx264 -y ' . $path_dst ) );

  • trying to build a audio video format convertion tool help required

    19 février 2012, par moon

    hello i am going to build a windows desktop tool that can convert the audio and video formats of all types.

    i am in technology selection phase.

    thinking about java and ffmpeg for this purpose but i come to know there are some formats that ffmpeg can not convert for them what should i do?

    second is there ffmpge api for java to use intead of using it through process builder?

    and at last is there any other approach that is more easy and stable from described above?

    AVI, MPG, MPEG, VOB, WMV, MP4, M4V,

    ASF, MOV, QT, 3GP, DAT, OGM, DVR-MS, FLV, MKV, RM, RMVB, VRO, TS, AMV, F4V, MTS, MT2S, WAV, MP3, WMA, OGG, APE,

    M4A, MPC, WV, AMR, AC3, AU to AVI, MPEG, MOV, WMV, MP4, RM, iPod, iPad, HTC, PSP, iPhone, Zune, BlackBerry, Apple

    TV, PS3, Xbox360, Creative ZEN, Archos, iRiver, 3GP, FLV, SWF, WAV, MP3, WMA, M4A, AMR, AAC, AIFF and AC3

    help required

    regards.

  • FFmpeg - Concatenate Audio - Video ?

    19 février 2012, par Malte Schwarzr

    How can i concatenate audio and video files by using ffmpeg?

    I'm trying this but it does not work:

    ffmpeg -i source.mkv -i new_audio.mp3 \
       -vcodec copy -acodec copy \
       -acodec copy \
       destination.mkv \
       -newaudio
    
  • ffmpeg streaming on embedded device [closed]

    18 février 2012, par JoeFrizz

    I have a problem with the ffmpeg streaming application.

    When I try to dump a RTSP (mp4) stream to a file on my desktop (Ubuntu) everything works fine...

    What I actually want to do is to download the same stream with an embedded system (very limited CPU power)...

    While I get about 150 fps on the desktop my embedded system loads about 2 fps only and struggles after downloading of approx. 150 frames. All the other frames (about 1000 total) are dublicated or missing...

    Can this problem be fully explained by the weak CPU power of the embedded system? Does the RTSP protocol allow streaming far below the normal rates (my desktop achieves) ?

    Are there any tricks to overcome that issue?

  • Suppress output from popen()

    18 février 2012, par Juan Gabriel Calderón-Pérez

    Is there a way to suppress the output from popen() without losing the Wait().

    Test 1:

    FILE * stream = NULL;
    char buffer [120];
    
    stream = popen ("ffmpeg -y -i test.amr -ar 16000 test.wav -v quiet", "r");
    
    while (fgets (buffer, sizeof(buffer), stream))
    {
    }
    
    pclose (stream);
    

    Test 2:

    FILE * stream = NULL;
    char buffer [120];
    
    stream = popen ("ffmpeg -y -i test.amr -ar 16000 test.wav -v quiet &> /dev/null", "r");
    
    while (fgets (buffer, sizeof(buffer), stream))
    {
    }
    
    pclose (stream);
    

    The problem with Test 2 is that pclose() is not waiting for the pipe to finish processing. I don't want to have a bunch of FFMPEG output every time I have to do a pipe.