How to use FFMPEG with java?

I use the following command to convert a sequence of images to video.

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

This works great for me!

Now I am trying to use the above command to run Java code.

How can I run the ffmpeg command using Runtime.getRuntime()from my java code.

Share your thoughts ..

+5
source share
1 answer
Runtime.getRuntime().exec("ffmpeg -r 1 -i sample%d.png -s 320x240 -aspect 4:3 output.flv");
+7
source

All Articles