[FFmpeg-user] Programmatically convert a sequence of jpeg files and a wav file into a video file
pierrick at wakatoon.com
Thu Mar 12 17:13:14 CET 2015
Thank you Moritz,
Thank uou for the "script". So, to achieve the "prgramatically" part of my
request, is there a way to write a c program ( thatlink it to ffmpefg
libav* libs) that executes that script (not in command line mode) ?
Le jeudi 12 mars 2015, Moritz Barsnick <barsnick at gmx.net> a écrit :
> On Thu, Mar 12, 2015 at 16:04:00 +0100, Pierrick Chabi wrote:
> > Is there a recent sample that illustrates how to programmatically
> convert a
> > sequence of jpeg files and a wav file into a video file ?
> Something like this for video only, and dropping the slideshow effect:
> $ ffmpeg -i img%03d.jpg -c:v libx264 -pix_fmt yuv420p out.mp4
> See particularily the section "Adding audio", but note that it's for a
> still image, so you want to add something like:
> $ [...] -i audio.wav -c:a aac -strict experimental -b:a 192k -shortest
> Resulting in:
> $ ffmpeg -i img%03d.jpg -i audio.wav -c:v libx264 -pix_fmt yuv420p -c:a
> aac -strict experimental -b:a 192k -shortest out.mp4
> (with 25 fps).
> Just an example.
> ffmpeg-user mailing list
More information about the ffmpeg-user