[英]How to convert flv format into .mp4 format using FFMPEG in php
Here I am try to convert .flv
video format into .mp4
format. 在这里,我尝试将
.flv
视频格式转换为.mp4
格式。 File converted with zero size and it's not played. 档案已转换为零大小 ,因此无法播放。
I need to successfully convert that file using FFMPEG
. 我需要使用
FFMPEG
成功转换该文件。
/* Convert type to .mp4 */
exec("ffmpeg -i input.flv -vcodec copy -acodec copy output.mp4;");
Thanks for your advice! 谢谢你的建议!
try this : 尝试这个 :
exec ("ffmpeg -i input.flv -c:v libx264 output.mp4");
exec(“ ffmpeg -i input.flv -c:v libx264 output.mp4”);
Convert .flv
format video into .mp4
format 将
.flv
格式的视频转换为.mp4
格式
header("video/x-flv");
passthru('ffmpeg -i input.flv -ab 96k -b 700k -ar 44100 -s 640x480 -acodec mp3 output.mp4');
It's working fine. 一切正常。
Refer: FFMPEG-PHP example code 请参阅: FFMPEG-PHP示例代码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.