乔拓云智能建站系统官网,证书查询官网,网站制作培训学校,实例 久久建筑网搜索热词下面是编程之家 jb51.cc 通过网络收集整理的代码片段。编程之家小编现在分享给大家#xff0c;也给大家做个参考。flv_convert_get_thumb(input.avi,output.jpg,output.ogm);// code provided and updated by steve of PHPsnaps ! thanks// accepts:// 1: the input v…搜索热词下面是编程之家 jb51.cc 通过网络收集整理的代码片段。编程之家小编现在分享给大家也给大家做个参考。flv_convert_get_thumb(input.avi,output.jpg,output.ogm);// code provided and updated by steve of PHPsnaps ! thanks// accepts:// 1: the input video file// 2: path to thumb jpg// 3: path to transcoded mpeg?function flv_convert_get_thumb($in,$out_thumb,$out_vid){// get thumbnail$cmd ffmpeg -v 0 -y -i .$in. -vframes 1 -ss 5 -vcodec mjpeg -f rawvideo -s 286x160 -aspect 16:9 .$out_thumb;$res shell_exec($cmd);// $res is the output of the command// transcode video$cmd mencoder .$in. -o .$out_vid. -af volume10 -aspect 16:9 -of avi -noodml -ovc x264 -x264encopts bitrate500:level_idc41:bframes3:frameref2: nopsnr: nossim: pass1: threadsauto -oac mp3lame;$res shell_exec($cmd);}以上是编程之家(jb51.cc)为你收集整理的全部代码内容希望文章能够帮你解决所遇到的程序开发问题。如果觉得编程之家网站内容还不错欢迎将编程之家网站推荐给程序员好友。总结如果觉得编程之家网站内容还不错欢迎将编程之家网站推荐给程序员好友。本图文内容来源于网友网络收集整理提供作为学习参考使用版权属于原作者。