Tuesday, August 19, 2008

convert swf to 3gp using Moyea SWF to Video SDK + java

Want to convert swf to 3gp,just get the sofware from http://www.swfkits.com/ and install it.

below are command to integrate it with java.(thank you moyea support)

try {
Process p = Runtime.getRuntime().exec("C:\\Program Files\\Moyea\\SWF to Video SDK\\swf2videocmd.exe jokes-music.swf -out myvideo.3g2 -f 3g2 -vcodec mpeg4 -vbr 150000 -fr 15 -size 176x144 -acodec aac -asr 8000 -ac 1 -abr 48000 -vstretch");
InputStream is=p.getInputStream();
InputStreamReader isr=new InputStreamReader(is);
BufferedReader br=new BufferedReader(isr);
String line=null;
while((line=br.readLine())!=null){
System.out.println(line);
}
}
catch (IOException e){
e.printStackTrace();
}

0 comments: