Questions tagged [jmf]

JMF stands for the Java Media Framework.

JMF stands for the Java Media Framework. It was proposed by Sun as a means to handle media content through Java applications in a platform independent manner. It has moved on from just the PC and is now seen in DTV standards like OCAP and even Bluray. A good starting point will be the sun documentation at http://www.oracle.com/technetwork/java/javase/index-142695.html

390 questions
0
votes
1 answer

How to stream from java browser applet to applet

I want two applets.. Transmitter applet which transmit the user's screen+audio from mic to getParameter("IP") and getParameter("PORT"). transmition is done after user's click on a "transmit" button and approval. Receiver applet which receives the…
Ronak Shah
  • 1,539
  • 2
  • 13
  • 20
0
votes
1 answer

Split and fade an MP3 file with JLayer

I want to extract some music (from second x to y) from an MP3 file and add some fade-in and fade-out effects. Can I do this with JLayer? So far I only know how to play a song with this library.
501 - not implemented
  • 2,638
  • 4
  • 39
  • 74
0
votes
3 answers

Play/load mp3 using Java APIs and JMF, error unsupported format

I am trying to load a MP3 file. I have jmf.jar (windows version) in my classpath and am trying to run my class through Eclipse. But I get this error when trying to run. I downloaded and set this version of JMF from the oracle site: JMF2.1.1e\lib I…
Berlin Brown
  • 11,504
  • 37
  • 135
  • 203
0
votes
1 answer

Java com.sun.media.codec.video.jmpx.Jmpx@1751a9e Error

I have downloaded the following code from internet and previously it was running well but now it shows an error: import com.sun.media.codec.video.jmpx.*; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import…
user1673627
  • 271
  • 3
  • 6
  • 13
0
votes
2 answers

I can not use JMF

Now I am trying with another sound file with mp3 codec. But I am encounterring problem to start the player. I have downloaded the file from http://www.mediacollege.com/audio/tone/download/ The output from Netbeans is: run: Error: Unable to realize…
Alex
  • 75
  • 1
  • 9
0
votes
2 answers

I can not start the player in my code

I am trying to launch my my code and start the player. But I can not do that. import javax.media.*; import java.io.*; public class MP3Player { public static void main(String[] args) throws Exception { File file = new…
Alex
  • 75
  • 1
  • 9
0
votes
2 answers

Reading and writing on webcam stream

Is it possible to use java to write into a webcam stream? I've tried JMF and got it to capture the image but couldn't find a possibility to write into the stream.
Alexander Stolz
  • 7,454
  • 12
  • 57
  • 64
0
votes
0 answers

Get device info with jmf

I want to get information from my webcam using jmf. I'm using this code: CaptureDeviceInfo deviceInfo = CaptureDeviceManager.getDevice("USB2.0 UVC1.3M Webcam"); System.out.println(deviceInfo); Why is the result null?
Theodore
  • 3
  • 1
  • 3
0
votes
1 answer

JMF broadcasting ability?

I'm using JMF in making a live stream from a webcam at server to an applet. That when any client open the applet, he 'll be able to watch live stream from the webcam at the server. Till now, i'm just able to make a unicasting streaming at local…
Ali Zein
  • 113
  • 2
  • 9
0
votes
0 answers

Local Data Address Does not belong to any of this hosts local interfaces

byte[] ip = new byte[4]; ip[0] = (byte) 192; ip[1] = (byte) 168; ip[2] = (byte) 1; ip[3] = (byte) 8; SessionAddress localSessionAddr = new SessionAddress( InetAddress.getByAddress(ip),…
alkber
  • 1,426
  • 2
  • 20
  • 26
0
votes
1 answer

Resize video with JMF

Im trying to play a video in my java application using JMF. The video is playing fine but im trying to make the video larger. the code below is being placed inside another jpanel with a gridbag layout. I currently have it being added with no…
Brandon
  • 581
  • 2
  • 6
  • 9
0
votes
1 answer

Playing a Sound Effect (mp3)

Does anyone know how to play an mp3 file in Java? I have a little sound effect that I want to play. Here's what I have import java.io.*; import java.media.*; File mp3Correct; Player correct; /* Load mp3 files */ mp3Correct = new File…
AndroidDev
  • 20,466
  • 42
  • 148
  • 239
0
votes
0 answers

Why Java's JMF doesn't work in Linux?

I have to do some image processing in Linux. I chose to use the JMF for my camera (a webcam). But my program is not able to access the camera, I get the error: javax.media.NoPlayerException: Cannot find a Player for :/dev/video0. I tried the same…
Visruth
  • 3,430
  • 35
  • 48
0
votes
1 answer

Audio Player using MediaPlayer class in JMF

JMF provides a class MediaPlayer which can be used as a full-featured player. However, I can't find a way to play an audio file. Some snippets of the code used. import javax.media.bean.playerbean.MediaPlayer; // .... MediaPlayer mp = new…
Chandi Gorom
  • 189
  • 2
  • 9
0
votes
1 answer

JMF: Cannot set media time on an unrealized controller

I'm trying to use JMF to play a sound every time I hit a button. This is what I have to contruct the media player: MediaPlayer mp = new…
Zaery
  • 1
  • 1
1 2 3
25
26