I use the below command for making video out of 5 different bmp images:<div><br><div><div>ffmpeg -f image2 -r 0.1 -i C:\test%1d.bmp -an -vcodec libx264 -threads 0  -f h264 -r 0.5 -force_key_frames 0.1 -s 360x240 C:\5frameTest.264</div>
</div><div><br></div><div>I used 
-force_key_frames  instead if -g to inforce the ffmpeg to generate i-frames. BTW with -g i did not get even the correct video.</div><div>The generated video shows the images but not in same interval distance but shows all 5 images in the video.</div>
<div><br></div><div>then i use JM decoder and tried to get the frames with s-type=2 nad the result was just 3 , not 5.</div><div>Question is why 5 i-frame in ffmpeg can not be detected in JM?</div><div><br><br><div class="gmail_quote">
On 22 May 2012 20:02, Alex Cohn <span dir="ltr"><<a href="mailto:alexcohn@netvision.net.il" target="_blank">alexcohn@netvision.net.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tue, May 22, 2012 at 11:47 AM,  <<a href="mailto:amir.rouhi@rmit.edu.au">amir.rouhi@rmit.edu.au</a>> wrote:<br>
><br>
> I have noticed that the I-Frames in a pure h264 video created by ffmpeg is<br>
> not same as what JM detect as I-Frame in the same video.<br>
> In JM software s_type=2 means I_Frame. the number of s_types frames are<br>
> always lower than what ffmpeg shows.<br>
>  What is your advice?<br>
> Amir<br>
<br>
</div></div>Would you like to upload an example?<br>
<br>
Alex<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Amir H. Rouhi</div>
<div>PhD Student/ CSIT RMIT University</div>
Room: 14-09-04<br><a href="http://raws.adc.rmit.edu.au/%7Es3288736/blog2/" target="_blank">http://raws.adc.rmit.edu.au/~s3288736/blog2/</a><br>
</div></div>