Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ffmpeg

mp4

wmv

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 scale=-1:720 test2.wmv

I've also tried:

ffmpeg -g 1 -b 16000k -i test1.mp4 test1.wmv

However, the .wmv files that are produced are "blocky and grainy" as you can see here in a small section of a video screenshot:

enter image description here

These are the sizes:

test.mp4 - 106 MB
test1.wmv - 6 MB
test2.wmv - 16 MB

How can I increase the quality/size of the resulting .wmv files (the size of the .wmv files is of no concern)?

like image 389
Edward Tanguay Avatar asked Jun 18 '12 08:06

Edward Tanguay


1 Answers

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

  • https://askubuntu.com/questions/352920/fastest-way-to-convert-videos-batch-or-single
like image 136
Reinhard Behrens Avatar answered Sep 28 '22 19:09

Reinhard Behrens