Page 1 of 1

Chapter points on a FFmpeg encode

Posted: Wed Jul 27, 2022 7:54 am
by MJS63
What is the best way to be able to assign a chapter point on a cut with a FFmpeg UHD encode?
When picking chapter points on the Scenes window I'm limited on where the next Keyframe is on the encode,
will adding a "--scenecut " and "--rc-lookahead" to the script help?

Re: Chapter points on a FFmpeg encode

Posted: Thu Jul 28, 2022 12:10 pm
by Alexey Kolesnikov
Frankly, I didn't get a clue what you are trying to do.
If you need to re-encode video into 2 parts, I would recommend cut it first using menu Tools -> Assets Splitter in KITe (preferred) or https://dvd-logic.com/archive/hd_splitter and then re-encode.

Re: Chapter points on a FFmpeg encode

Posted: Thu Jul 28, 2022 1:25 pm
by MJS63
I need to be able to place chapter points on an exact frame and not at the nearest Keyframe.
With DVD encodes you had to add the Chapter point to the encoder so the I-frame of the GOP would be placed on your Chapter point.
With Blu-ray encodes it was never an issue as you could pic any frame to place a chapter point on, with the FFMpeg UHD encodes I can only place a chapter point at the start of the nearest Keyframe.
I believe when you encode using a Ateme Titan file encoder you have to tell the encoder exactly what frames you plan on having your Chapter points on, 90% of the time a Chapter point will happen on a Scene cut, so that is why I thought adding --scenecut to the script will force the GOP to start at the beginning of a scene cut, and --rc-lookahead should help the accuracy of the encoder.

Re: Chapter points on a FFmpeg encode

Posted: Thu Jul 28, 2022 1:40 pm
by Alexey Kolesnikov
One point - the encoder is x265. ffmpeg is used for yuv conversion.
If we are talking about chapter point in Blu-ray/UHD, it should be placed on a keyframe, otherwise verifier will fail and some players will have problem to get into this chapter.
Did I understand right, that you want to specify the exact location for some keyframe (mark some frame as key frame) to be able place a chapter here?

Re: Chapter points on a FFmpeg encode

Posted: Thu Jul 28, 2022 5:37 pm
by MJS63
Yes, I do need to specify the exact frame for some keyframes.
Normally @ 12 chapters on a 120 minute feature.

Re: Chapter points on a FFmpeg encode

Posted: Thu Jul 28, 2022 6:49 pm
by Alexey Kolesnikov
Possibly you can try to add --keyint 12 and --min-keyint 12 at the end of x265 settings https://x265.readthedocs.io/en/master/c ... ion-keyint