LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-19-2003, 12:27 PM   #1
lsakhvoruk
LQ Newbie
 
Registered: Apr 2002
Distribution: Slackware
Posts: 26

Rep: Reputation: 15
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.
 
Old 11-19-2003, 05:59 PM   #2
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
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.
 
Old 11-20-2003, 01:37 PM   #3
lsakhvoruk
LQ Newbie
 
Registered: Apr 2002
Distribution: Slackware
Posts: 26

Original Poster
Rep: Reputation: 15
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.
 
Old 11-20-2003, 01:43 PM   #4
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
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.
 
Old 11-20-2003, 02:14 PM   #5
lsakhvoruk
LQ Newbie
 
Registered: Apr 2002
Distribution: Slackware
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks once more german!

I'll try this out when I have a chance and let you know what happened.
 
Old 02-08-2004, 01:54 PM   #6
nomnganga
LQ Newbie
 
Registered: Feb 2004
Location: Eastern Cape, South Africa
Posts: 2

Rep: Reputation: 0
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
 
Old 02-09-2004, 09:50 PM   #7
lsakhvoruk
LQ Newbie
 
Registered: Apr 2002
Distribution: Slackware
Posts: 26

Original Poster
Rep: Reputation: 15
Post

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 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.
 
Old 02-10-2004, 01:39 AM   #8
nomnganga
LQ Newbie
 
Registered: Feb 2004
Location: Eastern Cape, South Africa
Posts: 2

Rep: Reputation: 0
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)?
 
Old 05-25-2004, 08:20 PM   #9
KMJ2004
LQ Newbie
 
Registered: May 2004
Posts: 12

Rep: Reputation: 0
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
 
Old 12-15-2004, 02:11 AM   #10
shan0004
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What program use to receive RTP audio or video that compatible with JMF vanhelsing Programming 0 08-05-2004 10:58 AM
help me register JMF (Java Media Framework) vanhelsing Programming 0 08-02-2004 12:22 PM
Linux and Java + Java Media Framework (JMF) perry Programming 0 11-03-2003 10:08 AM
where can I download the nice RH 9 gnome Mpeg player or video player Egyptian_Isis Linux - Newbie 1 10-30-2003 04:53 AM
Installing java Machine from Sun (JMF-2.2.1) coltranefawz Linux - Software 1 06-22-2003 08:15 AM


All times are GMT -5. The time now is 03:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration