Page 1 of 1

ffmpeg h265 video issues

Posted: Fri Jun 03, 2022 1:47 am
by cars4enjoying
I used ffmpeg to join GoPro hero 5 be videos into one so it could be used in LapTimer.

This required format conversion due to the size so I used libx265, hvc1 @ 1080p down from 4k in h264. I then transferred the file to my iPhone 11 selected in LapTimer by selecting add video, which is where the issues started.

First up when selecting the start point the scrub worked for a few seconds but then stopped updating the video still. Nothing would make it work again. Had to remove and retry, happens every time. In the end I found the right position using VLC and then selected the start using time as a reference.

Play seems to work but when I select export I get:

Code: Select all

Invalid master video
I tried with one of raw 4k files and this worked as expected, scrubbing and export, so it seems like there's some compatibility issue. I've tried playing the video in photos and VLC on the PC, they both work fine so I believe it's some sort of bug / compatibility issue with LapTimer.

I'm running a new join with h264 to see if that helps so will report back, but wanted to see if this is a known issue?

Re: ffmpeg h265 video issues

Posted: Fri Jun 03, 2022 8:38 am
by Harry
Which iOS and LapTimer version are you using?

- Harry

Re: ffmpeg h265 video issues

Posted: Fri Jun 03, 2022 7:14 pm
by cars4enjoying
LapTimer v24.6 and iOS 15.5

Re: ffmpeg h265 video issues

Posted: Fri Jun 03, 2022 7:31 pm
by Harry
O.k., that's fine. What results do you see for a H264 encoding?

Re: ffmpeg h265 video issues

Posted: Fri Jun 03, 2022 10:39 pm
by cars4enjoying
No problems at all when I changed from ffmpeg codec params:

Code: Select all

-c:v libx265 -vtag hvc1
to

Code: Select all

-c:v libx264

Re: ffmpeg h265 video issues

Posted: Sat Jun 04, 2022 6:57 am
by Harry
Ok, so it looks like the iOS media library doesn’t handle the H265 well.