[英]How to compress the size of the video file using php, while uploading to the server which supports ffmpeg?
[英]file size increasing when while uploading and converting video to flv with ffmpeg
我需要上傳視頻並將其從任何格式轉換為flv。 我正在使用ffmpeg並使用此ffmpeg命令
ffmpeg -i input.mp4 -vcodec flv -sameq -ar 22050 -f flv output.flv
此命令運行正常,但問題是輸出文件的文件大小是原始輸入文件的5倍,如果我減小它,它也會降低質量,需要幫助。
您的命令揭示了這一點
Option 'sameq' was removed. If you are looking for an option to preserve the quality (which is not what -sameq was for), use -qscale 0 or an equivalent quality factor option.
這對我有用
ffmpeg -i input.mp4 -vcodec flv -q:a 0 -q:v 0 -ar 22050 -f flv output.flv
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.