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

前端 未结 5 1371
爱一瞬间的悲伤
爱一瞬间的悲伤 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
    
    0 讨论(0)
  • 2021-02-01 09:56

    I used this and it turned out quite well

    ffmpeg -i "file1.mp4" -q:v 0 -c:v wmv2 -b:v 1024k -c:a wmav2 -b:a 192k test2.wmv
    
    0 讨论(0)
  • 2021-02-01 10:04

    One thing I discovered after many frustrating attempts of enhancing the final quality was that if you don't specify a bitrate, it'll use a quite low average. Try -b 1000k for a starting point, and experiment increasing or decreasing it until you reach the desired result. Your file will be quite bigger or smaller, accordingly.

    0 讨论(0)
  • 2021-02-01 10:08

    Working answer in 2020, producing an output video without blockiness:

    ffmpeg -i input.mp4 -q:v 1 -q:a 1 output.wmv
    
    0 讨论(0)
  • 2021-02-01 10:11

    Consider the following command instead (some outdated commands in the final answer section):

    ffmpeg -i test.mp4 -c:v wmv2 -b:v 1024k -c:a wmav2 -b:a 192k test1.wmv
    

    REFERENCES

    • List item https://askubuntu.com/questions/352920/fastest-way-to-convert-videos-batch-or-single
    0 讨论(0)
提交回复
热议问题