Converting wmv to mp4 using ffmpeg
20,002
To disable audio you must use -an.
-an (output) Disable audio recording.
Since you are targeting a specific bitrate you should look into Two-Pass encoding. You can find the FFmpeg H.264 Encoding Guide discussing Constant Rate Factor (CRF) vs Two-Pass ABR here.
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Author by
Admin
Updated on April 23, 2020Comments
-
Admin about 4 years
I want convert wmv file to mp4 using ffmpeg. Video details 1920x1080, total bitrate 7978kbps, frame rate 29 fps. Image slideshow, no audio. It show audio data, but there was no option to disable audio when I created wmv.
ffmpeg -i input.wmv -c:v libx264 -crf 23 output.mp4
Should I use command above or there is better settings to compress video without losing picture quality? (as it just static images, animation is only transitions effect between frames)
-
Admin about 9 yearsLike this:
ffmpeg -i input.wmv -c:v libx264 -crf 23 -preset medium -tune stillimage -an output.mp4
? -
aergistal about 9 yearsYes but
crf
doesn't guarantee a max bitrate. Take a look at the guide in the answer. -
Admin about 9 yearscan you show an example for static images?
-
aergistal about 9 years
stillimage
should be OK