ffmpeg h265 video issues

Help on issues you run into with LapTimer; in case you have a question on how to use LapTimer, use the forum "Using LapTimer" instead
Post Reply
cars4enjoying
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 29
Joined: Wed Jun 01, 2022 2:00 pm

ffmpeg h265 video issues

Post 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?
User avatar
Harry
Site Admin
Site Admin
Posts: 10524
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: ffmpeg h265 video issues

Post by Harry »

Which iOS and LapTimer version are you using?

- Harry
Image Image Image Image
cars4enjoying
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 29
Joined: Wed Jun 01, 2022 2:00 pm

Re: ffmpeg h265 video issues

Post by cars4enjoying »

LapTimer v24.6 and iOS 15.5
User avatar
Harry
Site Admin
Site Admin
Posts: 10524
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: ffmpeg h265 video issues

Post by Harry »

O.k., that's fine. What results do you see for a H264 encoding?
Image Image Image Image
cars4enjoying
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 29
Joined: Wed Jun 01, 2022 2:00 pm

Re: ffmpeg h265 video issues

Post 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
User avatar
Harry
Site Admin
Site Admin
Posts: 10524
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: ffmpeg h265 video issues

Post by Harry »

Ok, so it looks like the iOS media library doesn’t handle the H265 well.
Image Image Image Image
Post Reply