Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Need to update FFmpeginvoke.cs

    3 octobre 2016, par hamidi

    I'm using a wrapper FFmpegInvoke.cs over ffmpeg for Windows. Since some videos are not playing, I decided to update ffmpeg to the latest version. For this, I downloaded it from its site and copied the dll's to the project. But it seems that the wrapper, FFmpegInvoke.cs should also be updated. I don't know how this file is added to the project. It has been a project I've got from someone else. So please help me handle this issue. Thanks

  • How to compile ffmpeg for Android

    3 octobre 2016, par user1190248

    As we know ,we can compile ffmpeg for android in linux or windows(cygwin),But now the latest ndk has integrated the cygwin. I guess I can use android studio and ndk to compile ffmpeg directly,so is it ok?

  • Android MediaMetadataRetriever.METADATA_KEY_DATE gives only date of video on galaxy S7

    3 octobre 2016, par Zaid Bin Tariq

    I am writing a code to get video creation date and time from metadata, i am using following code to get creation date

    MediaMetadataRetriever retriever = new MediaMetadataRetriever();
    retriever.setDataSource(path_to_video);
    String date = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DATE);
    

    it works perfect on all devices except Samsung Galaxy S7, it returns only date in "YYYY MM DD" format, no time stamp i need both date and timestamp.

    any help in this regard is much appreciated.

  • Laravel FFMPEG Error Encoding Failed using Laravel Queue

    3 octobre 2016, par Vaibhavraj S. Roham

    I am using "php-ffmpeg/php-ffmpeg": "~0.5" with Laravel 5. I am using this library for compression and conversion of recorded videos. I will explain the scenario first.

    When I execute following code from controller it works like charm.

    $ffmpeg = FFMpeg::create();
    $video = $ffmpeg->open(public_path()."/videos/harsh.webm");
    $video
        ->filters()
        ->resize(new \FFMpeg\Coordinate\Dimension(640, 480))
        ->synchronize();
    $video
        ->frame(\FFMpeg\Coordinate\TimeCode::fromSeconds(10))
        ->save(public_path().'/videos/converted/kaushik.jpg');
    $format=new \FFMpeg\Format\Video\X264('libmp3lame', 'libx264'); 
    $format-> setKiloBitrate(300);
    $video->save($format,public_path().'videos/converted/kaushik.mp4');``
    

    But when I put this code in a queue job then it fails with following error

    [FFMpeg\Exception\RuntimeException]
    Encoding failed [Alchemy\BinaryDriver\Exception\ExecutionFailureException]
    ffmpeg failed to execute command '/usr/bin/ffmpeg' '-y' '-i' '/opt/lampp/htdocs/candidate/public/videos/harsh.webm' '-async' '1' '-metadata:s:v:0 ' 'start_time=0' '-s' '640x480' '-vcodec' 'libx264' '-acodec' 'libmp3lame' '-b:v' '1000k' '-refs' '6' '-coder' '1' '-sc_threshold' '40' '-flags' '+loop' '-me_range' '16' '-subq' '7' '-i_qfactor' '0.71' '-qcomp' '0.6' '-qdiff' '4' '-trellis' '1' '-b:a' '128k' '-pass' '1' '-passlogfile' '/tmp/ffmpeg-passes57ece7d794da4wdw13/pass-57ece7d794e2a' 'videos/converted/kaushik.mp4' ``

    I am able to convert video in MWV and WEBM using following

    $video->save(new \FFMpeg\Format\Video\WMV(), 'export-wmv.wmv');
    $video->save(new \FFMpeg\Format\Video\WebM(), 'export-webm.webm');
    

    only mp4 fails if I use the

    $format=new \FFMpeg\Format\Video\X264('libmp3lame', 'libx264');
    

    What would be the issue?

    Sorry for my code markup in this question, I tried lot but faild, I am new to it!

  • Trim off first N samples from audio file using SoX / FFmpeg etc

    3 octobre 2016, par Vasyl Shumskyi

    Is there a way to trim off first N samples from audio file using SoX / FFmpeg or the likes of?