K
K
Konstantin2012-07-09 13:26:00
Google Chrome
Konstantin, 2012-07-09 13:26:00

Google Chrome not playing video in mp4 using mediaelement.js?

I'm using the latest version of the mediaelement.js library on my website to play html5 videos.
Something strange is happening with Google Chrome. It plays one video but doesn't want to play another video. Both are in mp4 format. And in the case of the second video, there is no fallback to the webm format.
Both videos are converted with ffmpeg:

ffmpeg -i input.mov \
  -acodec libfaac -ab 96k \
  -vcodec libx264 -vpre slower -vpre main \
  -level 21 -refs 2 -b 345k -bt 345k \
  -threads 0 -s 640x360 output.mp4

Without the mediaelement.js library, the first video plays fine in mp4, but the second one switches to webm.
Links:
random.net.ua/video_test/video1.html ok
random.net.ua/video_test/video2.html ok
random.net.ua/video_test/video1-mediaelement.html ok
random.net.ua/video_test/video2- mediaelement.html fail
Question on stackoverflow: stackoverflow.com/questions/11393050/google-chrome...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
marazmiki, 2012-07-09
@marazmiki

It seems that google chrome has dropped support for h264. And one more thing: I understand correctly that you encode video in webm using x264?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question