Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 6th, 2008, 9:49 PM   #1
sackarias
Programmer
 
sackarias's Avatar
 
Join Date: Jan 2006
Posts: 58
Rep Power: 3 sackarias is on a distinguished road
video in java

I'm looking into writing a program that requires using video. Not across the Internet, and I would either like to use an already stored video file or live streaming video. I looked into the JMF (java media framework), and read about the potential of bugs becoming an issue. Also https://media4j.dev.java.net/ which is a framework on top of the JMF which simplifies the use of JMF but also has bugs due to the JMF bugs. I read this about the bugs on a different forum so how reliable the information could be is out of my realm. I was wondering if anyone worked with the JMF, how was it? buggy? what did you make?

I was also wondering if their are alternatives to the JMF to work with video in Java.

Ultimately I want to write a program that can read in video data, modify and read out specific aspects of the video data. I just am not sure where to place my footing.

Can anyone point me in some direction?

Thanks.
sackarias is offline   Reply With Quote
Old May 12th, 2008, 12:04 AM   #2
Fall Back Son
Professional Programmer
 
Join Date: Oct 2006
Posts: 257
Rep Power: 2 Fall Back Son is on a distinguished road
Re: video in java

Its actually not very complicated. Look into the Desktop class. Google: Java Sun Desktop.

For example

Desktop.getDesktop().open( new File("c:/somewhere/aFile.txt") );
// opens the file that was passed as a String.

I'm positive that it works because I have used it. The idea is that the Desktop class allows you to use whatever default applications exist (WMP, Word, etc) in order to open certain file types. I'm pretty sure it works for video as well as text files etc.
Fall Back Son is offline   Reply With Quote
Old Jul 17th, 2008, 4:18 PM   #3
balazar
Newbie
 
Join Date: Jul 2008
Location: Portugal
Posts: 3
Rep Power: 0 balazar is on a distinguished road
Send a message via MSN to balazar
Re: video in java

i'm not using java se 6 which is the first with Desktop available. i have already programed video loading, but i can't see anything. with some videos i get the sound only, with others i get an error message like: no media player found and with others i get another error message like: Unable to handle format: XVID, 640x368, FrameRate=23.9, Length=1413120 0 extra bytes
Unable to handle format: mpeglayer3, 48000.0 Hz, 0-bit, Stereo, Unsigned, 18063.0 frame rate, FrameSize=9216 bits
Failed to realize: com.sun.media.PlaybackEngine@ac8e09
Error: Unable to realize com.sun.media.PlaybackEngine@ac8e09
Could not realize media player.

any ideas?

cumps
balazar is offline   Reply With Quote
Old Jul 29th, 2008, 10:11 AM   #4
Fall Back Son
Professional Programmer
 
Join Date: Oct 2006
Posts: 257
Rep Power: 2 Fall Back Son is on a distinguished road
Re: video in java

Suggestion: Use Java Se 6

Otherwise, you'll have to look outside of Java and probably at the OS in order to get anywhere with this.
Fall Back Son is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming with Java: Tutorial ReggaetonKing Java 7 May 20th, 2008 10:58 AM
Special browser in Java (Project) stalefish Java 3 Feb 9th, 2008 4:22 PM
First Java Program duale2005 Java 3 May 22nd, 2006 5:17 PM
Java programmers, game developers, artists, be ware! RPG game team is recruiting! atcomputers.us Paid Job Offers 7 Sep 25th, 2005 7:25 PM
Checking source codes of image, audio and video files on_auc C++ 3 Feb 21st, 2005 8:36 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:22 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC