How to get better quality converting MP4 to WMV with ffmpeg?

前端 未结 5 1372
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 09:39

I am converting MP4 files to WMV with these two rescaling commands:

ffmpeg -i test.mp4 -y -vf scale=-1:360 test1.wmv
ffmpeg -i test.mp4 -y -vf s         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 09:55

    You can simply use the -sameq parameter ("use same quantizer as source") which produces a much larger sized video file (227 MB) but with excellent quality.

    ffmpeg -sameq -i test.mp4 -y -vf scale=-1:360 test1.wmv
    

    In newer versions of ffmpeg flag '-sameq' has been removed. To achieve similar results one should use 'qscale' flag with 0 value:

    ffmpeg -sameq -i test.mp4 -qscale 0 -vf scale=-1:360 test1.wmv
    

提交回复
热议问题