Reputation: 2691
I try to encode my video with FFmpeg, to convert to mp4. But the video doesn't work on html 5. I don't understand why.
I found this command on the web and I tried it:
ffmpeg.exe -i wildlife.wmv -b 1500k -vpre slow -vpre baseline -vcode libx264 \ -g 30 wildlife.mp4
But it fails, and I have this error :
File for preset 'slow' not found
I check the folder "presets" and the preset is on the folder, so I don't understand why it's telling me this error. I tried with the complete path, it fails too.
Upvotes: 1
Views: 1219
Reputation: 1
ffmpeg -i wildlife.wmv -b:v 1500k -preset slow -profile:v baseline \ -vcodec libx264 -g 30 wildlife.mp4
-vcode
should be -vcodec
-vpre slow
should be -preset slow
-vpre baseline
should be -profile:v baseline
-b 1500k
should be -b:v 1500k
To answer the comments, until Firefox 21 the best format for compatibility across browsers would be WebM. YouTube uses this format as well.
Upvotes: 3