: How can I convert a series of images to a valid HTML5 MP4 video? I am attempting to encode a video from an image sequence, for embedding as an HTML5 video. I have managed to encode into
I am attempting to encode a video from an image sequence, for embedding as an HTML5 video. I have managed to encode into the WebM and OGG format successfully (so for example, it works fine in Firefox), but I'm having trouble with the MPEG4/H264 version.
I am using ffmpeg as follows:
ffmpeg -i image%04d.bmp -b 1500k -vcodec libx264 %1.mp4
At the moment, this outputs a video that works in Chrome, but does not play in Internet Explorer. (Nor does it play on my Windows Media Player, which usually plays MP4 files fine.)
I've tried changing my ffmpeg encoder (I've used a Windows build and a Linux build), and I've tried adding more parameters that I found on the web, e.g. the following:
ffmpeg -i image%04d.bmp -f mp4 -strict experimental -vcodec libx264 -crf 22 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -me_range 16 -subq 6 -g 250 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -acodec aac -ac 2 -ab 128k -ar 44.1k %1.mp4
However, the result is the same. How can I render a video that Windows and IE can display?
Note: I have specified the type in both the .htaccess file and inside the HTML5 tags, so that's not the problem. (Also, the page works fine in IE with other mp4 videos, so the problem is definitely with the encoding.)
Update: I got this working with a 3rd ffmpeg installation that had some presets, I used "-vpre slow -vpre baseline" and it seemed to work, although the first 2 installations I had don't have these presets. Still, I don't know why these settings should be the difference between a broken file and a working one.
More posts by @Goswami781
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.