Results 1 to 2 of 2
Thread: ffmpeg problem
- 04-17-2012, 06:03 AM #1
Member
- Join Date
- Mar 2012
- Posts
- 18
- Rep Power
- 0
ffmpeg problem
hi there ,
i am trying to split a video into image and below is my code
import java.utils.*;
import java.awt.*;
import java.lang.*;
import java.io.*;
public class ConvertVideoToImage
{
private SingletonServer ss = null;
public ConvertVideoToImage(SingletonServer ss)
{
this.ss = ss;
}
public void run()
{
convertVideo();
}
public native void display()
{
System.LoadLibrary("/ffmpeg/libavcodec");
}
public void convertVideo()
{
try
{
Runtime rt = Runtime.getRunTime();
Process p = rt.exec(ffmpeg -i display.wmv image%d.jpg) ;
}
catch(Exception e){}
}
}
when i compile the file , it give me error as shown below
pc3@pc3-desktop:~/Desktop$ javac ConvertVideoToImage.java
ConvertVideoToImage.java:31: ')' expected
Process p = rt.exec(ffmpeg -i display.wmv image%d.jpg);
^
ConvertVideoToImage.java:31: illegal start of expression
Process p = rt.exec(ffmpeg -i display.wmv image%d.jpg);
^
ConvertVideoToImage.java:31: ';' expected
Process p = rt.exec(ffmpeg -i display.wmv image%d.jpg);
^
ConvertVideoToImage.java:31: not a statement
Process p = rt.exec(ffmpeg -i display.wmv image%d.jpg);
^
ConvertVideoToImage.java:31: ';' expected
Process p = rt.exec(ffmpeg -i display.wmv image%d.jpg);
^
5 errors
is anyone know what is the error about ? i a totally lost in this things ... thanks in advance ..
- 04-17-2012, 06:20 AM #2
Re: ffmpeg problem
cannot find symbol
jLabel update
read text data and store to array
java ffmpeg
All threads you started. All threads you didn't bother to return to, not even to acknowledge the responses. Which you probably didn't read, since I advised you about the code tags in the first one listed.
Nope. Not worthy of further help.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
java ffmpeg
By Ericyue in forum New To JavaReplies: 1Last Post: 04-16-2012, 11:41 AM -
Java developer with ffmpeg knowledge needed
By u2390j103 in forum Jobs OfferedReplies: 0Last Post: 11-13-2010, 09:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks