Results 1 to 2 of 2

Thread: ffmpeg problem

  1. #1
    Ericyue is offline Member
    Join Date
    Mar 2012
    Posts
    18
    Rep Power
    0

    Exclamation 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 ..

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default 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.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. java ffmpeg
    By Ericyue in forum New To Java
    Replies: 1
    Last Post: 04-16-2012, 11:41 AM
  2. Java developer with ffmpeg knowledge needed
    By u2390j103 in forum Jobs Offered
    Replies: 0
    Last Post: 11-13-2010, 09:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •