4
votes

Been tackling this one for hours now. Not sure what I am doing wrong at this point.

<video controls="controls" >
<source src="cute.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
<source src="cute.webm" type="video/webm" />
<source src="cute.theora.ogv" type="video/ogg" />
</video>

In safari it just says "loading..." and on iPad it's a blank black box. It works in Firefox.

I tried exporting the video multiple times with specific settings

(H.264 video (up to 720p, 30 frames per second; main profile level 3.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats) MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats.) I got these specs from another question/answer on this website. I tried my best to export with these settings in FCP, but no go.

Any suggestions? I can't really download any conversion software on the computer I am on now but I could use an online tool, or step-by-step instructions to encoding this damn thing correctly.

Thank you.

2
do you have the correct doctype?Antony Scott
I don't know what that is. I am not a prodanielle
just added <!DOCTYPE html> to the top, did nothingdanielle
are you expecting the video to play automatically, if you are you need to add the 'autoplay' attributeAntony Scott
Do you have a link to your test page?robertc

2 Answers

1
votes

2 possible reasons:

Quote:

Video: H.264 Baseline Level 3.0, Baseline Level 3.1, and Main Level 3.1.

Audio:

  • HE-AAC or AAC-LC up to 48 kHz, stereo audio
  • MP3 (MPEG-1 Audio Layer 3) 8 kHz to 48 kHz, stereo audio

Note: iPad, iPhone 3G, and iPod touch (2nd generation and later) support H.264 Baseline 3.1. If your app runs on older versions of iPhone or iPod touch, however, you should use H.264 Baseline 3.0 for compatibility. If your content is intended solely for iPad, Apple TV, iPhone 4 and later, and Mac OS X computers, you should use Main Level 3.1.

most common error is not to use "Baseline" encoding but instead "extended" or "high" for the video

0
votes

You need to use a profile like -vpre ipod640. Do please have a look at https://github.com/kaihendry/recordmydesktop2.0/ for more tips.