首页 > 代码库 > php ffmpeg

php ffmpeg

可以合成视频,音频视频合成等

 

        $aurl = ‘../Uploads/movie/zzz.mp4‘;
        $vurl = ‘../Uploads/mp3/dmd.mp3‘;
        // exec("c:");
        // $a = exec("cd C:\Users\bluesky\Desktop\ffmpeg-20161010-1bda0ee-win64-static\bin",$out,$status);
        // $a = exec("dir", $out, $status);

        $a = ‘C:\Users\bluesky\Desktop\ffmpeg-20161010-1bda0ee-win64-static\bin/‘;

        exec($a."ffmpeg -i ".$a."zzz.mp4 -vcodec copy -an ".$a."zzz2.mp4",$out,$status);
        exec($a."ffmpeg -i ".$a."zzz2.mp4 -i ".$a."dmd.mp3 -vcodec copy -acodec copy ".$a."output.mp4");
          // print_r($a);
         print_r($out);
         // print_r($status);

 

http://www.cnblogs.com/dyllove98/archive/2013/07/05/3174415.html

php ffmpeg