[FFmpeg-user] Is it possible to run multiple ffmpeg intances?

Etienne Buira etienne.buira.lists at free.fr
Sat May 14 12:55:28 CEST 2011


On Sat, May 14, 2011 at 06:21:57PM +0800, littlebat wrote:
> Hi,
> 
> I try to convert serveral videos using multiple ffmpeg intances
> concurrently, but it failed, only get 44 bytes result
> file. Is it possible to run multiple ffmpeg intances concurrently? or,
> there are some things wrong in my command as below?
> 
> <code>
> ffmpeg -y -i /home/mdx/pipetest/t1.mkv \
> -vcodec h263 -b 200k -r 15 -s 176x144 -aspect 11:9 \
> -acodec libopencore_amrnb \
> -ac 1 -ar 8000 -ab 10.2k -f 3gp 1.3gp & \
> ffmpeg -y -i /home/mdx/pipetest/t2.mkv \
> -vcodec h263 -b 200k -r 15 -s 176x144 -aspect 11:9 \
> -acodec libopencore_amrnb \
> -ac 1 -ar 8000 -ab 10.2k -f 3gp 2.3gp & \
> ffmpeg -y -i /home/mdx/pipetest/t3.mkv \
> -vcodec h263 -b 200k -r 15 -s 176x144 -aspect 11:9 \
> -acodec libopencore_amrnb \
> -ac 1 -ar 8000 -ab 10.2k -f 3gp 3.3gp &
> </code>
> 
> thanks.
> 
> littlebat

Hi.

There should be no problem, however, with this kind of construct, you
will miss error messages (or at least get them mixed together). You can
redirect stdin/out/err, or run each instance in a shell (I use screen
http://www.gnu.org/software/screen/ for that).


More information about the ffmpeg-user mailing list