Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Problem while calling mPlayer from Java application

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Location
    Bangalore
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Problem while calling mPlayer from Java application

    Hi,

    I'm calling mPlayer from JAVA application to show the video/picture on GUI. I'm using MVC architecture and awt/swings.
    Video is coming from camera when i will send ip/url of camera, but the problem is its not embedding onto the GUI(GUI will have some other controls like buttons, panels etc. For GUI implementation i'm using Page Description Language and every widget as seperate image). Either it will come above the GUI or behind the GUI.

    Please suggest me the solutions.

    Thank You

    Regards,
    Bhavani


  2. #2
    Junior Member
    Join Date
    Jul 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Problem while calling mPlayer from Java application


  3. #3
    Junior Member
    Join Date
    Jul 2011
    Location
    Bangalore
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Re: Problem while calling mPlayer from Java application

    Hi,

    Thank you for your reply.

    But i can't use any other except mPlayer. Thats the requirement.

    Kindly let me know how to embed the video with GUI.

    Thanks

  4. #4
    Junior Member
    Join Date
    Jul 2011
    Location
    Bangalore
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Re: Problem while calling mPlayer from Java application

    hi,

    I'm calling mplayer from java using
    process = Runtime.getRuntime().exec("mplayer -vo xv -slave -quiet -idle -wid "+this.widId+" video file path"+intValue+"video file");
    Displaying the video in a hardware where the OS is LINUX. Its displaying the video but the problem is its not embedding with the GUI.

    I'm using the code for running thr mplayer from the link:
    JMPlayer – Embedding MPlayer in Java adrian's blog

    Please suggest me how can i proceed without using JMF.

    Thanks,
    Bhavani

Similar Threads

  1. calling c code from java
    By sara in forum Java Native Interface
    Replies: 3
    Last Post: April 6th, 2013, 09:53 PM
  2. how to run any installed application through my java application??
    By sgsamanthjain in forum Java Theory & Questions
    Replies: 1
    Last Post: April 1st, 2011, 08:17 AM
  3. Calling exe files from Java
    By linuxrockers in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 26th, 2010, 04:20 AM
  4. Replies: 0
    Last Post: December 3rd, 2009, 04:43 PM
  5. [SOLVED] How to call string in another class in java?
    By tazjaime in forum What's Wrong With My Code?
    Replies: 4
    Last Post: April 23rd, 2009, 09:31 AM