Click here to Skip to main content
16,005,080 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If you have a video.mp4 file how do you make a cooresponding video.webm file to show in HTML5?

HTML
<video autoplay loop muted poster="vid-first-frame.jpg" id="video-bg">
     <source src="video.webm" type="video/webm">
     <source src="video.mp4" type="video/mp4">
</video></source></source>
Posted
Updated 28-Nov-14 9:39am
v2

1 solution

ffmpeg.exe -i video.mp4 -vf yadif=0 -acodec libvorbis -vcodec libvpx -b:v 1600k video.webm
 
Share this answer
 
Comments
Teledextri 28-Nov-14 15:59pm    
How do I get ffmpeg.exe and where do I run this script?
Zoltán Zörgő 28-Nov-14 16:03pm    
What about googling a little bit? Look here: https://www.ffmpeg.org/download.html
You need to run this where you want to convert the mp4 to webm. As it is resource-expensive, choose a performant computer for that.
But this is just one of the methods. There are several converteres you can use.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900