Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (67)

Sur d’autres sites (10295)

  • doc/filters : remove unnecessary and inconsistent double ’,’ escaping

    24 octobre 2012, par Stefano Sabatini

    doc/filters : remove unnecessary and inconsistent double ’,’ escaping

  • doc/filters : escape special Texinfo character @ in overlay example

    24 octobre 2012, par Stefano Sabatini

    doc/filters : escape special Texinfo character @ in overlay example

  • ffmpeg causes browser to hang up ?

    24 juillet 2012, par Itai Sagi

    I'm using ffmpeg to convert videos on the fly, as they say, and I'm facing with a very annoying, unsolvable and unreferenced problem (as of yet ;) ), when I run my php script, it basically works - takes the file, uses ffmpeg, starts converting it, but halway through it's finished, the browser hangs, I don't understand why or how to resolve it :
    (even with set_time_limit the bastard won't work).

    function convertToMp4(){
       /*
        * Converts a file to mp4, returns the new file name
        */
       set_time_limit(0);
       $tmpFile = $this->fileName;
       $newFile = uniqid();
       $outputFile = "output/$justFile.mp4";
       exec("ffmpeg -i " . $tmpFile . " -acodec copy -ar 44100 -ab 96k " . $outputFile. " &");
       unlink($tmpFile);
       return $outputFile;
    }

    Ideas ?