Android cannot play H264 / AAC video

We record video files in the iOS application and want them to play on iOS / Android / Web. Therefore, for this we chose H264 / AAC in the MP4 container. However, with different settings, iOS H264 videos do not play on Android devices (LG D335 / Galaxy S4). How do we play video? An easy way to test is to download the video from a direct link, and then open it in the "Download on Android device" section. For any iOS H264 video, we get "Can not play this file" / "Sorry, this video cannot be played"

The following is a list of video media files.

It is surprising why these video files cannot be played on Android, while H264 / AAC and the basic profile?

Thanks.

MediaInfo Outputs

iOS 1280x720:

General Complete name : /Users/a/Desktop/ios_1280.mp4 Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 6.46 MiB Duration : 1s 220ms Overall bit rate mode : Variable Overall bit rate : 44.5 Mbps Recorded date : 2015-08-20T20:33:20+0300 Encoded date : UTC 2015-08-20 17:33:20 Tagged date : UTC 2015-08-20 17:33:22 Writing application : 7.1.2 Writing library : Apple QuickTime Model : iPhone 4 Make : Apple com.apple.quicktime.make : Apple com.apple.quicktime.creationdate : 2015-08-20T20:33:20+0300 com.apple.quicktime.software : 7.1.2 com.apple.quicktime.model : iPhone 4 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L4.1 Format settings, CABAC : No Format settings, ReFrames : 1 frame Format settings, GOP : N=1 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1s 220ms Source duration : 1s 235ms Bit rate mode : Variable Bit rate : 43.8 Mbps Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Rotation : 90Β° Frame rate mode : Variable Frame rate : 29.970 fps Minimum frame rate : 28.571 fps Maximum frame rate : 30.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 1.587 Stream size : 6.45 MiB (100%) Source stream size : 6.45 MiB (100%) Title : Core Media Video Encoded date : UTC 2015-08-20 17:33:20 Tagged date : UTC 2015-08-20 17:33:22 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 1s 220ms Source duration : 1s 254ms Bit rate mode : Constant Bit rate : 64.0 Kbps Channel(s) : 1 channel Channel positions : Front: C Sampling rate : 44.1 KHz Compression mode : Lossy Stream size : 9.61 KiB (0%) Source stream size : 9.78 KiB (0%) Title : Core Media Audio Encoded date : UTC 2015-08-20 17:33:20 Tagged date : UTC 2015-08-20 17:33:22 

iOS 640x480:

 General Complete name : /Users/a/Desktop/ios_640.mp4 Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 349 KiB Duration : 1s 133ms Overall bit rate : 2 527 Kbps Recorded date : 2015-08-18T17:46:22+0300 Encoded date : UTC 2015-08-18 14:46:22 Tagged date : UTC 2015-08-18 14:46:23 Writing application : 8.4.1 Writing library : Apple QuickTime Model : iPhone 5s Make : Apple com.apple.quicktime.creationdate : 2015-08-18T17:46:22+0300 com.apple.quicktime.model : iPhone 5s com.apple.quicktime.software : 8.4.1 com.apple.quicktime.make : Apple Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L3 Format settings, CABAC : No Format settings, ReFrames : 1 frame Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1s 133ms Bit rate : 2 434 Kbps Width : 640 pixels Height : 480 pixels Display aspect ratio : 4:3 Rotation : 90Β° Frame rate mode : Variable Frame rate : 25.588 fps Minimum frame rate : 24.000 fps Maximum frame rate : 30.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.310 Stream size : 337 KiB (96%) Title : Core Media Video Encoded date : UTC 2015-08-18 14:46:22 Tagged date : UTC 2015-08-18 14:46:23 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.601 Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 1s 133ms Source duration : 1s 184ms Bit rate mode : Constant Bit rate : 58.7 Kbps Nominal bit rate : 64.0 Kbps Channel(s) : 1 channel Channel positions : Front: C Sampling rate : 44.1 KHz Compression mode : Lossy Stream size : 8.11 KiB (2%) Source stream size : 8.44 KiB (2%) Title : Core Media Audio Encoded date : UTC 2015-08-18 14:46:22 Tagged date : UTC 2015-08-18 14:46:23 

Android:

 General Complete name : /Users/a/Desktop/android.mp4 Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 File size : 2.56 MiB Duration : 3s 546ms Overall bit rate : 6 051 Kbps Performer : LGE Encoded date : UTC 2015-08-18 18:34:11 Tagged date : UTC 2015-08-18 18:34:11 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L4 Format settings, CABAC : No Format settings, ReFrames : 1 frame Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 3s 434ms Bit rate : 6 084 Kbps Width : 640 pixels Height : 480 pixels Display aspect ratio : 4:3 Rotation : 90Β° Frame rate mode : Variable Frame rate : 30.000 fps Minimum frame rate : 29.900 fps Maximum frame rate : 30.030 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.660 Stream size : 2.49 MiB (97%) Title : VideoHandle Language : English Encoded date : UTC 2015-08-18 18:34:11 Tagged date : UTC 2015-08-18 18:34:11 mdhd_Duration : 3434 Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 3s 546ms Duration_FirstFrame : 26ms Bit rate mode : Constant Bit rate : 155 Kbps Nominal bit rate : 12.2 Kbps Channel(s) : 2 channels Channel positions : Front: LR Sampling rate : 48.0 KHz Compression mode : Lossy Stream size : 67.0 KiB (3%) Title : SoundHandle Language : English Encoded date : UTC 2015-08-18 18:34:11 Tagged date : UTC 2015-08-18 18:34:11 
+7
android ios video mp4
source share

No one has answered this question yet.

See related questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up Android emulator development?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
eleven
Mozilla Firefox 36 has problems playing h264 mp4 files
5
Android: cannot play mp4 video
4
AVAssetExport sets a constant frame rate
one
vlc player recorded live from m3u8 url and using this video on html5 player
one
IOS Native Captured Video not playing on Android and vice versa
0
Can I play current FLV videos on the Android + iPhone web app?

All Articles