[Red5] java call ffmpeg

laurent laurent at logiquefloue.org
Thu Mar 6 17:10:26 PST 2008


hm on linux gentoo I installed ffmpeg.... I don't know what is a shared 
library (yet)

Process proc = rt.exec("ffmpeg");

this looks like exec call in php, I'm looking for the same solution in 
java, like exec("ffmpeg -b blabla -blabl") //A command line for ffmpeg 
and wait for results

Apparently it seems far more complicated than I though, thinking 
everyone using red5 would need to call ffmpeg in a while.

@Prabhu, you mean I could call ffmpeg and send it parameters using 
System.loadLibrary ?

L





Prabhu Tamilarasan (omNovia) a écrit :
> If its a dll or shared library you can load it into the Java app using 
> System.loadLibrary and then use JNI to call into it's functions.
>
> Dan Rossi wrote:
>> Ive setup something before to call an externa. C# script which 
>> interfaces with the ffmpeg library to grab screenshots of recorded 
>> files when publishing is finished. Use 
>>
>>
>>  Runtime rt = Runtime.getRuntime();
>>   
>>
>>
>> Process proc = rt.exec("ffmpeg");
>>  
>> or something like that
>>
>> On 07/03/2008, at 10:28 AM, laurent wrote:
>>
>>> Hi,
>>>
>>> Is there a way to call ffmpeg library, installed on the same server as
>>> red5, using my own java application ?
>>> The goal is to encode flv audio to wav
>>>
>>> thanks
>>> Laurent
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>   
>
> -- 
> ------------------------------------------------------------------------
>   	
> next generation web conferencing
> Prabhu Tamilarasan
> Senior Software Engineer 	675 Bering Drive, Suite 290
> Houston, TX 77057 USA
> www.omnovia.com
> ptamilarasan at omnovia.com 	T +1.281.500.4065 x 731
>
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>   




More information about the Red5 mailing list