<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Hi Carl,</p>
<p>Thanks for quick reply... I am running below command on linux server</p>
<p>"ffmpeg -framerate 1/5 -pattern_type glob -i '<folder>/*.jpg' -i '<audio_file>'  -c:v libx264 -vf 'scale=trunc(iw/2)*2:trunc(ih/2)*2' -pix_fmt yuv420p -c:a aac -strict experimental -shortest test.mp4";</p>
<p> </p>
<p>so if folder has 4 image the video must be 20 secs but right now it is creating 16 seconds first image is only displaying only 1 sec.</p>
<p>Please let me know if any other requirement of details.</p>
<p> </p>
<p>Regards,</p>
<p>Pratik</p>
<p> </p>
<p>On 2016-01-27 15:58, Carl Eugen Hoyos wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre><pratik@...> writes:</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">I am facing problem creating video from images with audio and duration of 5 seconds each frame. First/Last image skipped and not staying for 5 seconds.   Can you please let me know how you can help me and what you need?</blockquote>
<pre>Please provide your source code / a test case.

Carl Eugen
_______________________________________________
Libav-user mailing list
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
</blockquote>
<p> </p>
<div> </div>
</body></html>