![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Jan 2006
Posts: 58
Rep Power: 3
![]() |
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. |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Oct 2006
Posts: 257
Rep Power: 2
![]() |
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. |
|
|
|
|
|
#3 |
|
Newbie
|
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 |
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Oct 2006
Posts: 257
Rep Power: 2
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |