View Single Post
Old 9th May 2019, 10:44   #3  |  Link
TEB
Registered User
 
Join Date: Feb 2003
Location: Palmcoast of Norway
Posts: 363
Quote:
Originally Posted by Blue_MiSfit View Post
-force_key_frames "expr:eq(mod(n,100),0)"

don't use this. It's a BAD idea.
OK, it was the only way i could get this to work in X264, with forced IDR at the start on each gop.. I just imagined that would work in x265..

Quote:
Originally Posted by Blue_MiSfit View Post
Just set keyint equal to min-keyint
Ok, ive done this now and removed the rest

Quote:
Originally Posted by Blue_MiSfit View Post
Also, your x265-params is likely not being parsed because you have force-cfr, which isn't a thing for x265.
Yes, trying with a clean config to see how it goes.

Fix those two things and you should get correct keyframe config.

Ok.

Updated "clean" x265 config:

Code:
./ffmpeg -loglevel verbose -i test.mov -codec:v libx265 -x265-params keyint=100:min-keyint=100:no-open-gop=1:nal-hrd=VBR -preset slow -crf 23 -maxrate 5M -bufsize 5M -c:a:0 aac -ac:a:0 2 -ab:a:0 128k -y   test.mp4
Result:

Now atleast X265 is behaving from a syntax level :

Code:
x265 [info]: Keyframe min / max / scenecut / bias: 100 / 100 / 40 / 5.00
But when analysing the ouput in Harmonic AV Analyser:

1. It starts of with an IDR frame, but then its all over..
2. At frame 100, there should be an IDR, but thats a B frame..
3. All scenecut iframes are CRA frames not regular I-frames..
4. And at frame 100,200,300,400, etc there should be an IDR..

Any idea whats going on ?

TEB

Last edited by TEB; 9th May 2019 at 10:52.
TEB is offline   Reply With Quote