Shyam Shyam - 2 years ago 335
Java Question

How to use FFMPEG with java?

I'm using the following command to convert sequence of images to a video.

ffmpeg -r 1 -i sample%d.png -s 320x240 -aspect 4:3 output.flv

This works fine for me!

Now i'm trying to use the above command to run through java code.

How can i run the ffmpeg command using
from my java code.

Please share your thoughts..

Answer Source
Runtime.getRuntime().exec("ffmpeg -r 1 -i sample%d.png -s 320x240 -aspect 4:3 output.flv");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download