Based on Dive Into HTML5 I've written HTML something like this:
<video controls>
<source src="my-video.mp4" type="video/mp4; codecs=avc1.42E01E,mp4a.40.2">
<source src="my-video.webm" type="video/webm; codecs=vp8,vorbis">
<source src="my-video.ogv" type="video/ogg; codecs=theora,vorbis">
</video>
I know the codecs specified for WebM and OGG are correct... But what about the avc1.42E01E,mp4a.40.2
? How do I know if that's correct?
I encoded my video like this:
ffmpeg -i my-video.mov \
-acodec libfaac -ab 96k \
-vcodec libx264 \
-level 21 -refs 2 -b:v 345k -bt 345k \
-threads 0 -s 1920x780 my-video.mp4
Can you tell from this command, or is there some way I can tell from the video? Media Information in VLC didn't help.
mp4a.40.2
avc1 means h.264 encoded video
These bytes are available from the extradata/sps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With