Oh, Thanks Alex, In the FFMPEG DOCUMENTATION says the format of usage should be:<div><span style="font-size:13.5pt;font-family:'Times New Roman'">‘</span><samp><span style="font-size:13.5pt">-force_key_frames[:</span></samp><var><span style="font-size:13.5pt">stream_specifier</span></var><samp><span style="font-size:13.5pt">]</span></samp><span class="apple-converted-space"><span style="font-size:13.5pt;font-family:'Courier New'"> </span></span><var><span style="font-size:13.5pt">time</span></var><samp><span style="font-size:13.5pt">[,</span></samp><var><span style="font-size:13.5pt">time</span></var><samp><span style="font-size:13.5pt">...] (</span></samp><em><span style="font-size:13.5pt;font-family:'Courier New'">output,per-stream</span></em><samp><span style="font-size:13.5pt">)</span></samp><br>
so for example i should write:</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 time[0,5,10,15,20] -s 360x240 C:\5frameTest.264 </div><div>Is that correct? </div><div>BTW, if the time stamps are long , i.e every 5 second from start of the video, is there any other simplified form to use in time stamp?</div>
<div>and would you please let me know whats the difference of
-force_key_frames time and -g ?</div><div><br></div><div>Thanks</div><div>Amir</div><div><br><div class="gmail_quote">On 24 May 2012 16:24, 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="im">On Thu, May 24, 2012 at 4:28 AM, <<a href="mailto:amir.rouhi@rmit.edu.au">amir.rouhi@rmit.edu.au</a>> wrote:<br>
> I use the below command for making video out of 5 different bmp images:<br>
><br>
> ffmpeg -f image2 -r 0.1 -i C:\test%1d.bmp -an -vcodec libx264 -threads 0 -f<br>
> h264 -r 0.5 -force_key_frames 0.1 -s 360x240 C:\5frameTest.264<br>
<br>
</div>-force_key_frames expects a comma separated list of timestamps, not a<br>
"step" or something<br>
<br>
BR,<br>
Alex<br>
<div class="im HOEnZb"><br>
> I used -force_key_frames instead if -g to inforce the ffmpeg to generate<br>
> i-frames. BTW with -g i did not get even the correct video.<br>
> The generated video shows the images but not in same interval distance but<br>
> shows all 5 images in the video.<br>
><br>
> then i use JM decoder and tried to get the frames with s-type=2 nad the<br>
> result was just 3 , not 5.<br>
> Question is why 5 i-frame in ffmpeg can not be detected in JM?<br>
><br>
> On 22 May 2012 20:02, Alex Cohn <<a href="mailto:alexcohn@netvision.net.il">alexcohn@netvision.net.il</a>> wrote:<br>
>><br>
>> 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<br>
>> > 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>
>> Would you like to upload an example?<br>
>><br>
>> Alex<br>
</div><div class="HOEnZb"><div class="h5">> --<br>
> Amir H. Rouhi<br>
> PhD Student/ CSIT RMIT University<br>
> Room: 14-09-04<br>
> <a href="http://raws.adc.rmit.edu.au/~s3288736/blog2/" target="_blank">http://raws.adc.rmit.edu.au/~s3288736/blog2/</a><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>
</div></div></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>