manonthemoon
manonthemoon

Reputation: 2691

FFmpeg on windows 7, encode video in mp4 for HTML 5 video fail

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

Answers (1)

Zombo
Zombo

Reputation: 1

ffmpeg -i wildlife.wmv -b:v 1500k -preset slow -profile:v baseline \
  -vcodec libx264 -g 30 wildlife.mp4
  • your -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

Related Questions