本文介紹了如何使用 ffmpeg 轉換視頻的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我想使用 ffmpeg 將視頻從一種格式轉換為另一種格式.我嘗試了很多代碼,但它沒有轉換視頻.
I want to convert a video from one format to another using ffmpeg. I try lots of code but it does not convert the video.
例如:
exec("ffmpeg -i mickey.flv -ar 22050-ab 32 -f avi -s 320x240 mickey.avi");
exec("ffmpeg -i mickey.flv -ar 22050 -ab 32 -f avi -s 320x240 mickey.avi ");
這段代碼不會轉換視頻,也不會顯示任何錯誤,會持續加載.
This code does not convert the video, it does not show any error, it is loading continuously.
推薦答案
Display FFMPEG Error Output:
Display FFMPEG Error Output:
命令行:
$command = "ffmpeg -i mickey.flv -ar 22050 -ab 32 -f avi -s 320x240 mickey.avi ";
exec($command . ' 2>&1', $output);
print_r($output);
這篇關于如何使用 ffmpeg 轉換視頻的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!