LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Java JMF based video player. (https://www.linuxquestions.org/questions/programming-9/java-jmf-based-video-player-117859/)

lsakhvoruk 11-19-2003 12:27 PM

Java JMF based video player.
 
Hi,

I am working on an application that will play video in linux. The application is created using JMF (Java Media Framework). This program was built in Windows and works fine there. Now I have an x server installed in Linux (I'm using Gentoo 1.4) and I can start it and it comes up with the default desktop manager (I'm not sure what its called, I guess xdm?) and I can execute commands from one of the 4 terminal windows that come up.

When I try to run the java video application it starts and a new window appears, but then everything just freezes and I have to kill X.

My question is, does anyone have a clue as to what the requirements are to run java video related applications in linux, meaning do you simply need the X server running or do you also need a desktop manager as well (like kde or something else)

I would appreciate any input.

german 11-19-2003 05:59 PM

Assuming the player doesn't use KDE/GTK related UI stuff (which, since you're using Java and code originally designed on Windows, is a pretty safe assumption) then you should only need X running. For instance, I recently made a kiosk machine which ran only X and Mozilla, which didn't (afaik) need me to start any additional services. As well I have run Swing applications in such a manner. I don't know about JMF in X, though it's quite possible that it depends on external libraries.

HTH

B.

lsakhvoruk 11-20-2003 01:37 PM

German, thanks for your reply.

I guess now my question is, how do I start X without any window managers?

And is there a way to route an application (in java or just using some shell commands) to a particular X server. Basically how do I tell my program where to look for the X server (I guess which terminal).

I hope these questions make sense, please let me know if they don't.

german 11-20-2003 01:43 PM

Code:

#!/bin/sh

/usr/X11R6/bin/X :1    # start an X server on display 1
export DISPLAY=:1.0  # tell X we're starting programs on display 1

/run/your/program/here

HTH, that will start just X (so it's that ugly gray checkered background and "X" mouse cursor), and then anything you run (that requires an X server) after the "export DISPLAY" will run in that display.

B.

lsakhvoruk 11-20-2003 02:14 PM

Thanks once more german!

I'll try this out when I have a chance and let you know what happened.

nomnganga 02-08-2004 01:54 PM

linux-java project
 
Hi guys

I have a problem here! I have been given a task to design and implement an open protocol/open source alternative to the proprietary streaming done using Microsoft tools, to be used as a tool for on-demand streaming in electronic malls or as a stepping stone towards video conferencing. Also, it will be used to distribute enrichment lectures from my Insitution to surrounding rural high schools.

I have been told or asked to use Linux as a platform for doing the development ( i.e. I should use linux as Operating Systems) and I'll use Java as development or programming language.

As I being the person who is used to window operating system and has never used linux before, does this project or topic require a strong knowledge of Linx and linux commands? Or I just need to know the basic linux commands? I was thinking of using Red Hat since it has a GUI. Could you please advise me on the better approach to this topic.

Does it also require strong java programming skills? I did Introduction to java and Advanced java.

I am so keen and interested in doing this topic becuase I am standing a chance to come up with my own different thing.

There is one thing that I forgot to state .This player is going to be used to transmit / distribute live events. As the lecturer or someone on the other side talks, the other one (students) should be listening and should be able interrupt the lecturer. They should either type as message or talk (voice). Thirdly, they should both lecturer and students be seing each other during the lecture.

I have got a fear that this scope is to wide and broad..Don't you think so?

Please help

Nomnganga

lsakhvoruk 02-09-2004 09:50 PM

Nomnganga, if you can design and implement a new protocol for video conferencing other then those already out there, then I am almost positive that you will be awarded Ph. D.'s :D from several universities plus a whole load of money in a form of licensing fees from a large number of companies. ;)

Hope you don't take it as an insult, but to be able to design a new protocol for data communications, especially something that can handle video conferecing (taking into account the compression and packet synchronization), you MUST have an intricate knowledge of a wide variety of things (encryption, encoding, communication, etc., etc., etc.)

I hope this doesn't discourage you, but from what you posted I would definetly suggest starting a lot smaller and working from there.

nomnganga 02-10-2004 01:39 AM

No it is not an insult. It is a warning that has to be taken seriously.

Which part shall I do on my own and which one shall I just use the already existing ones (tools)?

KMJ2004 05-25-2004 08:20 PM

Hi everyone,

I am also using JMF in linux system for video conferencing. However, when I try to transmit to another computer, the failed transmission number will start too, which means error in sending the packets, I think.

So, anyone had this problem too or can help to solve this problem?
Thanks. : )

KMJ2004

shan0004 12-15-2004 02:11 AM

Hi Everyone,

I have been assigned to stream audio,video using JMF in Linux. Can anyone know how to capture audio from microphone using JMF?Somebody told me that there is problem with the compatibility of LINUX driver and JMF driver.Is it so? If anyone has the solution pls. let me know.

Thanks in advance.
Shan0004


All times are GMT -5. The time now is 05:47 PM.