MP4 playback issue on iPad - ios

I played 320x180 resolution mp4 file (video encoded using h264 baseline profile) on iPad mini which has iOS 6.1.3 with default video player. I observed that green strip is coming at the bottom while playback (screen shot attached below).
Later I played same 320x180 mp4 file on iPad mini which has iOS 7.0.4. The video was playing fine. Same 320x180 mp4 file playing fine on MAC also.
Can I know why I am getting green strip at the bottom while playing mp4 file on iPad mini which is having iOS 6.1.3?

Related

Problem Merge Audio To Video on iPhone 5s

I Merge Audio File To Video, That's works well on Other devices but except iPhone 5s,5. The error is :
Error Domain=AVFoundationErrorDomain Code=-11822 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media format is not supported., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x600003c0a2e0 {Error Domain=NSOSStatusErrorDomain Code=-16976 "(null)"}}
video file is mp4 type and resolution is 1920*1080
Transferring and playing MP4 on iPhone 5S is usually smooth for many users. However, due to the codec, video size and resolution issue, you may have difficulty in playing MP4 on iPhone 5S or 5C. You may encounter the following symptoms when trying to play MP4 on iPhone 5S:
MP4 files cannot be added to iTunes thus cannot be transferred to iPhone 5S for play.
MP4 files can be added to iTunes but when syncing with your iPhone 5S, iTunes pops up a message: “movie was not copied to the iPhone 5S because it cannot be played on this iPhone 5S”.
iPhone 5S MP4 no audio: No audio or sound when you play MP4 on iPhone 5S
iPhone 5S MP4 no video: No video or image when you play MP4 on iPhone 5S
iPhone 5S cannot read and play some MP4 file
In order to successfully play MP4 files on iPhone 5S, MP4 files shall meet the following requirements:
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;
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.
Your iPhone 5S will not recognize the MP4 files if they don’t match the above requirements.

AVAssetExportSession exportAsynchronouslyWithCompletionHandler: Source frame unsupported format

I am using AVAssetExportSession to export a video selected from library. It works great for all videos of all types except landscape-recorded screen recordings (using the screen recording feature in iOS 11). Weird enough, it works perfectly for other landscape videos, and it also works perfectly for portrait videos of the same screen recording feature. But I've tried two videos that are landscape screen recordings, and they both failed with the error Source frame unsupported format.
How can I fix this problem?
UPDATE: Videos play just fine both in Photos and in my app before exporting.
The video size may not be standard like 1920 X 1080 , The screen recording produce non standard video resolutions in some devices.
You need to write the videos in standard resolution while recording

View uploaded video in iOS app

I have a bunch of videos uploaded to google drive. They are in mpeg4 (avi) format I believe. I have tried everything I can think to view the video in a MPMoviePlayerViewController. In the simulator the video player launches and looks like it playing, but I don't see any video. When I run it on my device the player won't launch. I have tried to use the downloadUrl, alternateLink, embedLink and webContentLink with no success.
Is it possible to stream video from Google Drive to iOS?
The simulator isn't a full blown emulator, but just a simulator. It uses similar frameworks from Mac OS, which may have different functionality than on iOS. In other words, the simulator may have more capabilities than an actual device.
The MPMoviePlayerController class on iOS supports only a few containers and codecs, and does not support AVI.
Supported Formats
This class plays any movie or audio file supported in iOS. This
includes both streamed content and fixed-length files. For movie
files, this typically means files with the extensions .mov, .mp4,
.mpv, and .3gp and using one of the following compression standards:
H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. (The Baseline profile does not support B frames.)
MPEG-4 Part 2 video (Simple Profile)
If you use this class to play audio files, it displays a white screen
with a QuickTime logo while the audio plays. For audio files, this
class supports AAC-LC audio at up to 48 kHz, and MP3 (MPEG-1 Audio
Layer 3) up to 48 kHz, stereo audio.

What is the maximum video/movie resolution for iPad 3 (retina)?

For some reason, when I try to play a video that is 1536x2048 on the ipad 3, it doesn't play the video, it just skips it. I've checked that the URL for the video is correct. I'm using MPMoviePlayerController. I tried playing the same video on an ipad also and it does the same thing. It just acts like it ignored the "play" line of code.
Is there a maximum supported video resolution then?
According to MPMoviePlayerController reference I'd say that this can answer you:
Supported Formats
This class plays any movie or audio file supported in iOS. This includes both streamed content and fixed-length files. For movie files, this typically means files with the extensions .mov, .mp4, .mpv, and .3gp and using one of the following compression standards:
H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. (The Baseline profile does not support B frames.)
MPEG-4 Part 2 video (Simple Profile)
If you use this class to play audio files, it displays a white screen with a QuickTime logo while the audio plays. For audio files, this class supports AAC-LC audio at up to 48 kHz, and MP3 (MPEG-1 Audio Layer 3) up to 48 kHz, stereo audio.

Is there an equivalent for afconvert for video on the Macintosh?

afconvert can be used for audio conversions for iPhone / iPad
but what should be used for video conversions/ transcoding?
Thanks!
FFmpeg is probably the way to go (command-line):
http://www.ffmpeg.org/
Great GUI alternative:
http://handbrake.fr/
You would typically Quicktime Pro with the "iPhone" export preset. That generates a 480x320 full screen H.264 video that can also contain audio. This file will then play on an iPhone or iPad with no problems.

Resources