-
convertToFlv( "some-video-input.avi", "output.jpg" );
-
- function convertToFlv( $input, $output ) {
- echo "Converting $input to $output
";
- $command = "ffmpeg -v 0 -y -i $input -vframes 1 -ss 5 -vcodec mjpeg -f rawvideo -s 286x160 -aspect 16:9 $output ";
- echo "$command
";
- shell_exec( $command );
- echo "Converted
";
- }
- ?>
复制代码
|
PHP
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn