iPhone movie playback

Hi all,

Got an iPhone SE recording vids into 1080p 60, however when they playback on the Vero 2, the audio loses sync on some videos (more often the larger ones).

Will upload logs and media info shortly, however will not be able to upload a sample due to file sizes involved. Wanting to know if anyone else has seen this issue?

Cheers

Make sure you have adjust refresh rate on.

If I do a 1080p60 recording, how long will I have to record for (on average) to get these problems. I have an iPhone 6S.

Sam

Adjust display refresh rate is on.

The clips in question are all in excess of 2 minutes 30 seconds.

Thanks!!

Hi Martin

Do you notice that pausing the video quickly, and then pressing resume resolves the issue after you start to get stuttering?

Sam

Just tried now, it makes no difference I’m afraid.

1080p 30 and 720p 30 have no issues playing back at all.

Mediainfo:

osmc@osmc:~$ mediainfo /media/240GB/photos/2016/07/2016-07-21_16-11-38.MOV
General
Complete name                            : /media/240GB/photos/2016/07/2016-07-21_16-11-38.MOV
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt
File size                                : 521 MiB
Duration                                 : 2mn 48s
Overall bit rate mode                    : Variable
Overall bit rate                         : 26.0 Mbps
Encoded date                             : UTC 2016-07-21 15:11:38
Tagged date                              : UTC 2016-07-21 15:14:27
Writing library                          : Apple QuickTime
com.apple.quicktime.location.ISO6709     : +53.3936-001.2446+105.174/
com.apple.quicktime.make                 : Apple
com.apple.quicktime.model                : iPhone SE
com.apple.quicktime.software             : 9.3.2
com.apple.quicktime.creationdate         : 2016-07-21T16:11:38+0100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.2
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=60
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2mn 48s
Bit rate                                 : 25.9 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Rotation                                 : 180°
Frame rate mode                          : Variable
Frame rate                               : 59.940 fps
Minimum frame rate                       : 54.545 fps
Maximum frame rate                       : 60.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.208
Stream size                              : 519 MiB (100%)
Title                                    : Core Media Video
Encoded date                             : UTC 2016-07-21 15:11:38
Tagged date                              : UTC 2016-07-21 15:14:27
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                                 : 2mn 48s
Source duration                          : 2mn 48s
Bit rate mode                            : Variable
Bit rate                                 : 92.6 Kbps
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 1.85 MiB (0%)
Source stream size                       : 1.86 MiB (0%)
Title                                    : Core Media Audio
Encoded date                             : UTC 2016-07-21 15:11:38
Tagged date                              : UTC 2016-07-21 15:14:27

Other #1
Type                                     : meta
Duration                                 : 2mn 48s
Bit rate mode                            : VBR

Other #2
Type                                     : meta
Duration                                 : 2mn 48s
Bit rate mode                            : CBR

Most hardware H.264 decoders as found in arm based SoC systems are only guaranteed to play up to Blu-ray spec, which is a L4.1 profile, which is a maximum of 1920x1080 at 30fps.

Your file is 1920x1080 at 60fps which requires Profile L4.2 so it is technically out of spec for the hardware to be able to play this when it only supports L4.1. That’s not to say its impossible and couldn’t be achieved with the right software tweaks, but only that it can’t be expected to play it. I notice that the file uses a variable framerate as well - this can be troublesome for some hardware decoders.

You’ll find difficulty playing this file on many other hardware decoders too.

That’s a great explanation thanks, wish I’d have known this before recording loads of videos.

Odd thing is, Sam has tested it on his Vero (1080p 60fps) and reports no issues!

Any suggestions on linux software to recode the video at 30fps?

The Vero 2 can play back H264 up to L5.1. It can handle 1080p60 at L4.1/4.2 and can handle 1080p30 at L5.1. The datasheet claims 1080p60 support at L5.1, but real world testing doesn’t suggest this to be the case.

I think the variable frame rate is the reason for the problematic playback. I grabbed Martin’s today and do have problems with it. My testing on an iPhone 6S was rather crude: I filmed Beeb news for three minutes and played it back, so may have not exhibited the same symptoms.

@DBMandrake will know more about iPhones than me, but does the normal 1080p mode offer a constant frame rate? If so, it will be more reliable when being decoded by hardware.

Will keep you posted with my findings and if we improve on this.

Cheers Sam, any news on this?

Looking in to a few problematic clips I’ve been sent by users. I’ll let you know when we have made some headway (either on blog or this post). Variable framerate is a git, and most HW decoders don’t like it.

Hi Martin

I sent you a PM discussing some of the changes in the Kodi Krypton builds. I am hoping to publish Kodi Krypton Beta 5 (with a few fixes) in a few hours, around midday.

It would be great if you can try it again with some iPhone clips @ 1080p60. I deleted the one you sent me a while back, but it would be interesting to know how things behave now.

Sam

Hi Sam no change I’m afraid with regards to the iPhone playback.

Hi Martin

I haven’t published the updated B5 builds yet. Will come this afternoon. Check PM first re. Krypton improvements and this message might make a bit more sense

Cheers

Sam

Hi Sam,

Still having this issue on the latest Krypton.

Cheers

Is the issue the same as before?
Is it as bad as before?

Identical as far as I can tell, do you still have the sample clip?

Somewhere – but if you have a Dropbox link that will be handy.