Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • avconv beaglebone : loglevel debug and silencedetect doesn work

    3 mai 2014, par user3248865

    I´m using avconv under Linux beaglebone 3.8.13 and I have problem with log levels. Flag -loglevel debug doesn´t work. I also tried to add -debug debug. I also did not find silencedetect filter.

    A have the same issue with ffmpeg under the same OS.

    Are these flags for Linux supported?

    (FFmpeg was downloaded from here.)

    Thank you in advance

  • ffmpeg static build produces huge files

    3 mai 2014, par user3581244

    I've recently managed to get a static build of ffmpeg installed on an EC2 instance:

    http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-03-05.tar.gz

    But when I perform this command on a video file:

    ffmpeg -ss 00:00:00 -i VIDEO0031.mp4 -r 8 -vframes 32 -vbsf remove_extra -an -vcodec pam -f rawvideo -y test_002.pam

    It produces a file that is 190MB which is huge and then it messes up the other commands I use to convert it into a gif file.

    Does anyone know if this is just an issue with using a static build? I didn't experience this issue using an older ffmpeg install ( v0.6 I believe ) so am tempted to go back to the old install but I also need to have ffprobe installed so am worried this would cause issues.

    A bit of a random question but I thought it was worth asking just in case someone had come across a similar thing.

    Thanks!

  • Repeating a small mp3 overlay after each 10 seconds on a MP3 using SOX

    3 mai 2014, par Gopal Rathore

    Is there any way to repeat a overlay after each 10 seconds with mp3 file, using sox without trimming the original file. My code adds using trimming original file then adds overlay. Any help will be appreciated.

     if(isset($_POST['submit']) && $_POST['submit']!="")
      {     
         require_once 'class.mp3.php';
    
         $mp3 = new mp3;
    
         print_r($_FILES);
    
         move_uploaded_file($_FILES["file"]["tmp_name"],$_FILES["file"]["name"]);
    
        /*Split MP3*/
    
        $mp3->cut_mp3($_FILES["file"]["name"], 'check1.mp3', 0, 700, 'frame', true);
    
        $mp3->cut_mp3($_FILES["file"]["name"], 'check2.mp3', 700, -1, 'frame', true);
    
        /*Part 1*/
        $path1= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check1.mp3";
    
        /*Part 2*/
        $path2= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check2.mp3"; 
    
        /*Overlay Sound*/
        $overlay= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/overlay.mp3";  
    
        /*Mix overlay with Part1 Sound*/
        $new_path1= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check4.mp3"; 
    
        /*Mix overlay with Part2 Sound*/
        $new_path2= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check5.mp3"; 
    
        /* Merge Both*/
        $new_path3= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check6.mp3";
    
    
        /*Mix overlay with Part1 Sound*/
        echo exec('/usr/bin/sox --combine mix '.$path1. ' '  .$overlay . ' '.$new_path1 );
    
        /*Mix overlay with Part2 Sound*/
        echo exec('/usr/bin/sox --combine mix '.$path2. ' '  .$overlay . ' '.$new_path2 );
    
        /* Merge Both*/
        echo exec('/usr/bin/sox --combine sequence '.$new_path1. ' '  .$new_path2 . ' '.$new_path3 );
    
        }
    
  • Concatenating video files with ffmpeg and adding chapter markers [on hold]

    2 mai 2014, par Geremia

    How can I concatenate video files with ffmpeg and have it automatically add chapter markers?

  • setting bit rates in creating video from images in ffmpeg not working

    2 mai 2014, par mast kalandar

    I have a HQ video of one second

    Some information of this video is as below

    Dimensions : 1920 x 1080    
    Codec : H.264    
    Framerate : 30 frames per second    
    Size : 684.7 kB (6,84,673 bytes)
    Bitrates : 5458 kbps
    

    I have extracted frames from video

    ffmpeg -i f1.mp4 f%d.jpg
    

    All images are of 1920 x 1020 pixels by default 30 frames are generated (f7_1.jpg, f7_2.jpg,.....,f7_30.jpg)

    I have added some texts and objects to these images (without changing dimensions of any image, all 30 images are still of 1920 x 1020 pixels)

    Now I am trying to merge all these images to create single video (of 1 second)

    I referred this official document, I have run below command

    ffmpeg -f image2 -i f7_%d.jpg -r 30 -b:v 5458k foo_5458_2.mp4
    

    Video created is also of one second, thing is its bit rates are higher then the original one. New video has 6091 kbps bit rates, while I expect are 5458 kbps only.

    Because of higher bits, its gets finish very quickly compare to original video in video player.

    Is there any thing I missing ??

    And I don't know what is exact meaning and job of -f image2 option, when I run command without this option, I am getting same video.