I'm trying to follow this tutorial: https://www.reddit.com/r/brokenanimegifs/wiki/tutorial
Everything works perfectly. On the basis of this tutorial, I even created my own little tool. It just removes original I-frames and replaces with new one, all works fine with h264 (libx264).
Now I want to repeat this on the basis of x265, as it has a better algorithm for detecting motion and smearing the picture. But unfortunately, nothing works! I tried about such coding options:
ffmpeg -i source.avi -vcodec libx265 -an -bf 0 -x265-params no-pme:subme=1:\
no-weightp:no-constrained-intra:no-temporal-layers:no-temporal-mvp:no-open-gop:\
crf=15:bframes=0:radl=0:ctu-info=0:rc-lookahead=0:gop-lookahead=0:\
lookahead-slices=0:lookahead-threads=0:b-adapt=0:bframe-bias=0:no-b-pyramid:\
force-flush=1:frame-threads=1 -t 30 -y result.avi
But it did not help.
I learned that x265 has many types of I-frames, I suspect that it's all about this. I can replace only the first I-frame in file, it works as before. But I can not change any other I-Frames and get the error in place of replacement, errors like:
[hevc @ 0xb372940] Could not find ref with POC -60:00:09.17 bitrate=62974.5kbits/s dup=2 drop=0 speed=9.14x
[hevc @ 0xb372940] Could not find ref with POC -12:00:20.56 bitrate=62974.5kbits/s dup=2 drop=0 speed=10.2x
Do you think you can repeat this with x265? Here exists any options to force IDR-frames and disable advanced coding techniques?