Recherche avancée

Médias (9)

Mot : - Tags -/soundtrack

Sur d’autres sites (6)

  • FFMPEG-PHP Code example to trim MP3 file

    15 décembre 2012, par revive

    I've searched here and online,. and have not found clear PHP examples for taking a single MP3 file, and trimming it to a smaller file (removing both beginning and end portions and retaining only the content between a specified start time and end time)..

    What I'm trying to do is pass the start time, end time and mp3 file name to a PHP script, that will then use FFMPEG-PHP to effectively trim or concat that orig file.. without re-encoding it (and retaining all the orig. file metadata, etc.)

    If you provide an example of how to process an MP3 file like this, within one PHP file, it will help a lot ! I'm trying my best to help out our church, and simply don't know FFMPEG-PHP enough to sort this out solo.. :)

    Thanks !!

  • Installing ffmpeg in Ubuntu by using Chef fails by error of yasm version

    23 décembre 2014, par ironsand

    I want to install ffmpeg in Ubuntu14.04 by using chef.

    This is my config files for it.

    Berksfile

    source "https://api.berkshelf.com"
    cookbook 'apt'
    cookbook 'ffmpeg'

    nodes/ubuntu.json

    {
       "run_list": [
           "apt",
           "ffmpeg"
       ]
    }

    Then run knife solo cook ubuntu. It ends up with a error :

    STDOUT: Found no assembler
    Minimum version is yasm-1.2.0

    I understand the error. probably if I install yasm-1.2.0 manually, then the error will be fixed.

    But I want to install only by using chef. What can I do to solve the problem ?

  • Ffmpeg won't copy excerpt of video correctly

    5 mai 2022, par JR Jr.

    I am using a DOS batch to automate and copy excerpts of various high definition videos (mkv's with more than 1GB each).
The script is very convenient and runs fast and fine, but Ffmpeg is not doing its job correctly (it seems Murphy's law is inexorably enthralled into technology, things never come easy, which is why I love and hate it).

    


    Anyway, to cut a long story short, each time the batch job runs, a code like below is executed (pardon me the indiscrete folder name, it's about the 90's TV show, it's not porn !).

    


    call "C:\ffmpeg\bin\ffmpeg.exe" -y -i "D:\100\Sexo\S01\SATC - S01E03 - Bay of Married Pigs.mkv" -ss 00:18:05 -to 00:19:15 -codec copy "002-SATC - S01E03 - Bay of Married Pigs-00_18_05-00_19_15.mp4"


    


    The problem is that the first 6 seconds or so of the resulting video has no video, only audio with a frozen image that only starts to move after about 6 seconds, which is a huge defect, not to mention very annoying (a big let down, after all my meticulous scripting work :(). And this happens for most of the files, except a few ones.

    


    Even though this is copying and changing the format from mkv to mp4, per another thread on this site (https://askubuntu.com/questions/396883/how-to-simply-convert-video-files-i-e-mkv-to-mp4), this is not re-encoding, so this is not the issue. Actually, the same problem occurs even if I don't change the format from mkv to mp4.

    


    Even though I foresee a "there's no way to fix this", let me ask : is there a way to fix this ? Hopefully there is a way.