<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">I am trying to enable intra-refresh or IDR frame to replace keyint/I frames for all the time when new gop starts. I am giving following command -</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">ffmpeg -y -s 352x288 -r 30 -pix_fmt yuv420p -f rawvideo -i foreman_cif.yuv -vcodec libx264 -y -b 512k -r 30 -preset fast -s 352x288 -flags +loop -cmp +chroma -flags2 -fastpskip -refs 6 -x264opts slice-max-size=300:bframes=1:keyint=20:no-interlaced=1:trellis=2:intra-refresh=1:subme=10 -f h264 -mbd 1 -profile high -deblockalpha 0 -deblockbeta 0 -threads 0 out.264</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div
style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">and getting error as -</div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">[libx264 @ 0xa896320] ref > 1 + intra-refresh is not supported</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">[libx264 @ 0xa896320] intra-refresh is not compatible with open-gop</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">my gop is not open as you can see there is keyint=20, which proves that the size of gop is 20 frames. PLease help me for this. Thanks </font></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "> </div></div></body></html>