[FFmpeg-devel] how to enable intra-refresh?
lou at lrcd.com
Fri Sep 30 22:06:05 CEST 2011
On Thu, 29 Sep 2011 15:56:39 -0700 (PDT)
Hardik Sharma <hardik.sharma22 at yahoo.com> wrote:
> 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 -
> 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
> -f h264 -mbd 1 -profile high -deblockalpha 0 -deblockbeta 0 -threads
> 0 out.264
> and getting error as -
> [libx264 @ 0xa896320] ref > 1 + intra-refresh is not supported
> [libx264 @ 0xa896320] intra-refresh is not compatible with open-gop
libx264 is telling you what is wrong. Try changing -refs 6 to -refs 1.
> 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
In addition to what Michael already mentioned please remember that
ffmpeg-devel is strictly for FFmpeg development discussion. Usage
questions should be directed to ffmpeg-user (I see you asked your
question there as well and at x264-devel mailing list).
More information about the ffmpeg-devel