No matter what I do, I can't get MP4 <video> to play on Safari / iPad

For several hours he did this. Not sure what I'm doing wrong at this moment.

<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, he simply says “loading ...” and the iPad is an empty black box. It works in Firefox.

I tried to export the video several times with certain settings

(H.264 video (up to 720p, 30 frames per second, main profile level 3.1 with AAC-LC audio up to 160 Kbps, 48 ​​kHz, stereo sound in .m4v, .mp4 and .mov formats) MPEG-4, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple profile with AAC-LC audio up to 160 Kbps, 48 ​​kHz, stereo sound in .m4v, .mp4 and .mov formats.) I got these specifications from another question / response on this site. I tried my best to export these parameters to FCP, but did not go.

Any suggestions? I can’t download any conversion software to the computer I’m currently working on, but I can use an online tool or step-by-step instructions to correctly encode this damn thing.

Thanks.

+4
source share
2 answers

2 possible reasons:

Quote:

Video: H.264 Basic Level 3.0, Basic Level 3.1, and Basic Level 3.1.

Audio:

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

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

The most common mistake is not to use the "base" encoding, but to "extended" or "high" for the video

+1
source

You need to use a profile like -vpre ipod640 . Please see https://github.com/kaihendry/recordmydesktop2.0/ for more tips.

0
source

Source: https://habr.com/ru/post/1394803/


All Articles