FFmpeg mp4 to WMV

Source: Internet
Author: User


size = "smaller
Ffmpeg-i 1.mp4-b:v 2m-vcodec msmpeg4-acodec wmav2 1_mp4.wmv
Size = "Grow Larger"
Ffmpeg-i 1.mp4-qscale 2-vcodec msmpeg4-acodec wmav2 2_mp4.wmv

Ffmpeg-i 1.mp4-q:a 2-q:v 2-vcodec msmpeg4-acodec wmav2 3_mp4.wmv

Ffmpeg-i 1.mp4 outputfile.wmv


Ffmpeg-i 1.mp4-c:v wmv2-b:v 20m-c:a wmav2-b:a 192k output.wmv


Ffmpeg-i input.wmv-c:v LIBX264-CRF 23-profile:v high-r 30-c:a libfaac-q:a 100-ar 48000 output.mp4


Ffmpeg-i input.wmv-c:v LIBX264-CRF 23-c:a libfaac-q:a

How to get better quality converting MP4 to WMV with FFmpeg?
Up vote6down votefavorite5

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

ffmpeg -i test.mp4 -y -vf scale=-1:360 test1.wmvffmpeg -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 is produced is "blocky and grainy" as can see here in a small section of a video screenshot:

These is the sizes:

test.mp4 - 106 MBtest1.wmv - 6 MBtest2.wmv - 16 MB

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

FFmpeg mp4 wmv
ShareImprove this question Asked June "at 8:53Edward Tanguay60.2k224572875
Add a Comment
3 answersactiveoldestvotes
Up vote10down vote

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  
shareimprove this answer answered  June "at 9:23 Edward tanguay224 572 875
7
A better solution is to use -qscale (or -qscale:v or -q:v depending on your syntax preference); generally with a value of 2-5. A lower value is higher quality, and 2 can be considered "visually lossless". -sameqis isn't designed to being used between formats that does not share the same quantizer scale, and this could be the case for You. –lordneckbeard June ' at 16:03
also you ' re applying  ; -sameq  as an input option (anything before  -i ). Probably works as expected, but keep on mind not all options applied to the input would be applied to the OUTPUT. –&NB Sp Lordneckbeard jun "at 16:07
-sameq has been removed. When you try to use it FFmpeg offers "Use-qscale 0 or a equivalent quality factor option", and it errors out with an inv Alid argument. –robert Koernke Jan 6 at 17:04
Add a Comment
Up vote3down vote

One thing I discovered after many frustrating attempts of enhancing the final quality is if you don ' t specify a B Itrate, 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 would be quite bigger or smaller, accordingly.

ShareImprove this answer Edited ' at 22:07 answered Feb 7 ' at 22:59Fabio ceconello11.2k4
Add a Comment
Up vote2down vote

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 Http://askubuntu.com/questions/352920/fastest-way-to-convert-videos-batch-or-single
ShareImprove this answer Edited Jan at 10:26 answered Jan at 10:02Reinhard Behrens2
Add a Comment

Http://stackoverflow.com/questions/11079577/how-to-get-better-quality-converting-mp4-to-wmv-with-ffmpeg

FFmpeg mp4 to WMV

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.