<div dir="ltr"><div class="gmail_quote">On Fri, May 11, 2012 at 7:09 AM, <span dir="ltr"><<a href="mailto:amir.rouhi@rmit.edu.au" target="_blank">amir.rouhi@rmit.edu.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi to ffmpeg seniors and experts<br><div>I am using windows platform and I have created a series of video in pure format of *.264 from raw format by the below command:</div><div><br></div><div><font size="4">ffmpeg -f rawvideo -pix_fmt yuv420p -s 360x240 -i C:\1.yuv -an -vcodec libx264 -threads 0 -s 360x240 -f h264 C:\1.264</font></div>
<div><br></div><div>I want to extract I-Frames which are created in adaptive mode in encoding phase. i use the below command:</div><div><p style="background:white"><font size="4">ffmpeg
-i
C:\ 1.264 -vsync 0 -vf select="eq(pict_type\, PICT_TYPE_I)"
C:\ Test\IFrames\I-Frm-%03d.jpeg </font></p><div>Its a short video and i just get 4 images but the images does not looks correct images, They are not sharp and clear images. BTW, adaptive I-Frame are expected t be located at the start of a new group of pictures, after any big changes in the scene, but these extracted image are not showing this. do you know whats my mistake or whats wrong?</div>
<span class="HOEnZb"><font color="#888888">
-- <br><div>Amir</div></font></span></div></blockquote><div><br>Hi,<br><br>Adaptive GOP is not the default for x264 encoder. See <a href="http://mewiki.project357.com/wiki/X264_Settings">http://mewiki.project357.com/wiki/X264_Settings</a> for all options. The relevant command line arguments are also discussed at <a href="http://www.digital-digest.com/articles/x264_options_page5.html">http://www.digital-digest.com/articles/x264_options_page5.html</a>.<br>
<br>This said, you should also learn the way to specify x264 parameters via ffmpeg command line. A good guide can be found here: <a href="http://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping">http://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping</a><br>
<br>Regarding sharpness of the I-frames, it really does happen that key frames display lower quality than the rest of the video. The reason is that when the encoder tries to maintain certain bitrate, it prefers to apply more lossy compression to the I-frames, because otherwise they get very big. Again, this bias can be controlled with x264 parameters.<br>
<br>BR,<br>Alex Cohn<br></div></div></div>