Video encoding by servlet with MEncoder

Posted by Andrey on Stack Overflow See other posts from Stack Overflow or by Andrey
Published on 2011-01-04T22:32:11Z Indexed on 2011/01/04 23:53 UTC
Read the original article Hit count: 233

Hello. I was developing an application for video encoding on the server and got a problem with encoding video with MEncoder. This decoder doesn't work correctly when runned by a command line with

Runtime.getRuntime().exec(“D:\mencoder\mnc\mencoder.exe  video1.avi -o outvideo1.flv -of lavf -oac mp3lame -lameopts abr:br=64 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=300:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=320:240,harddup -quiet”) ;

The decoder launches and works in windows console with my parameters, but when it's run from a servlet it just hangs in process list and doesn't do anything before the web-server is stopped. When trying to use decoder from a simple java applcation, it runs correctly. Thanks for help.

© Stack Overflow or respective owner

Related posts about java

Related posts about servlets