RTSP Bug in JMF?
Hi Forum,
I try to display a streamed video using JMStudio and RTSP.
The streaming-server first sends a SDP-Packet in response of my request:
## outgoing msg:
## DESCRIBE rtsp://10.128.19.26/input1 RTSP/1.0
CSeq: 113
Accept: application/sdp
User-Agent: JMF RTSP Player Version 2.1.1e
## incoming msg:
## RTSP/1.0 200 OK
CSeq: 113
Date: Fri, Jan 13 2006 13:08:24 GMT
Content-Base: rtsp://10.128.19.26:7070/input1/
Content-Type: application/sdp
Content-Length: 406
v=0
o=- 1137084335764232 1 IN IP4 10.128.19.26
s=Streamed by SISTORE_SXCX
i=info
t=0 0
a=tool:LIVE555 Streaming Media v2006.01.04
a=type:broadcast
a=control:*
a=source-filter: incl IN IP4 * 10.128.19.26
a=rtcp:unicast reflection
a=range:npt=0-
a=x-qt-text-nam:Streamed by SISTORE_SXCX
a=x-qt-text-inf:info
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 H263-1998/90000
a=control:track1In debugging mode i can see, that the range-attribute makes trouble in JMF.
The parser expects something like this:
a=range:npt=0-XSince the X is missing in the response of the server JMF crashes.
But the X is not nessecary according to the specification of RTSP.
Has anyone a workaround or an alternative to JMF?
I could fix the problem in source code of my own, but we need this for a commercial product
and SUN's licence doesn't accept changes of the library.
thanks
I don't think its a bug.
Don't forget, JMF is only a "Reference
Implementation".
You need to implement your own RTSP code.
You can use suns jmf RTSP as interfaces.
I have done lots of debugging, at the point you are
at.
The only thing from what I remember, is that the
stream is not passed to the player, so it does not
play.Hi, mercury.
Could you share your experience about your own RTSP code.
Thanks.
Similar Messages
-
hello, all, i tried to play RTSP stream with JMF, but i always get error:
connection info: IN IP4 0.0.0.0
connection info: IN IP4 0.0.0.0
Failed to realize: Server is not responding
But when i play RTSP stream with VLC, everything is well.
Anybody can help me?
Regards,
lefishJMF does not. JMF only plays RTP-protocol streams.I doubt it.....though I have never tried to play RTSP streams using JMF but seeing following links I do think client side RTSP is supported by JMF:
[http://java.sun.com/javase/technologies/desktop/media/jmf/reference/faqs/index.html#jmf2-rtsp-features]
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/support-rtsp.html]
Thanks! -
Hello !
How can I manage a PAUSE command with my client code to address a remote streaming server (using RTSP protocol given with JMF 2.1.1e).
ThanksActually there is a whole body of code dedicated to RTSP... the only problem is that it is undocumented. There is an RtspManager, RtspPort, MessageProcessor, even a Server and more all hidden away in com.sun.media.rtsp. Download the source code and look it up.
However if you are not willing to make that much of an effort you could just tell me exactly what you need and I'll dredge it up. -
Com.sun.media.rtsp.RtspManager and JMF bundle
Following my first thread,
I'm looking for any code that uses[b] com.sun.media.rtsp.RtspManager that run sequence like DESCRIBE->SETUP>PLAY>PAUSE.
Is there a possible link beetwen RtspManager and Player/Processor well documented in JMF ?
I am looking for com.sun.media package JavaDoc too.
Thanks
ArnoLike I told you in the other thread com.sun packages are not fully supported, technically the could be considered "betas" and are only included to aid developers. Because they are no supported no javadocs exist for them at this time. Like I said you are just going to have downlad the source code and do alot of poking around. From what I can tell, however, the com.sun.media.rtsp package intergrates seemlessly with JMF.
-
JPEG Grabber - bug in JMF???
Dear all.
I am trying to use a FrameGrabbingControl to grab JPEG images from a webcam.
Every so often, the BufferToImage.createImage(buf) <see below> fails, giving a null image. After it fails once, it never recovers, it will always fail - almost like the Player gets itself into an invalid state???
FrameGrabberException is an exception class I have defined. It never gets thrown!
Many thanks, I'm really stuck with this one.
Iain A. Mcleod
import javax.media.*;
import javax.media.control.*;
import javax.media.protocol.*;
import javax.media.util.*;
import javax.media.format.*;
public class FrameGrabber extends Thread {
private Player player;
public FrameGrabber(CaptureDeviceInfo cdi, Format format){
connectToPlayer(cdi,format);
start();
private void connectToPlayer(CaptureDeviceInfo cdi, Format format) throws FrameGrabberException{
/* To use this device we need a MediaLocator */
MediaLocator loc = cdi.getLocator();
if (loc == null) {
throw new FrameGrabberException("Unable to get MediaLocator for video device");
try{
player = Manager.createRealizedPlayer(loc);
}catch (Exception e){
throw new FrameGrabberException("Could not get realized player for webcam: "+e.getMessage());
player.start();
public void run(){
while(true){
FrameGrabbingControl fgc = (FrameGrabbingControl)player.getControl("javax.media.control.FrameGrabbingControl");
Buffer buf = fgc.grabFrame();
// Convert it to an image
BufferToImage btoi = new BufferToImage((VideoFormat)buf.getFormat());
Image img = btoi.createImage(buf);
//FOR SOME REASON, IMG IS NULL HERE SOMETIMES???
processImage(img);
try{Thread.sleep(1000);}
catch(InterruptedException ie) {ie.printStackTrace();}
public void processImage (Image img){
//STUB
}As nobody answered to your question yet, I am just telling about another possibility to connect to a camera from a java application. The Morena Image Acquisition Frame is a commmercial package (with a trial version) http://www.gnome.sk, which enables you to connect to a camera or scanner from a java application in a very intuitive way. It can help much if you do not need to display live video or get many images in a short time interval.
If you just want to see how Morena works with your scanner or camera:
- java (1.2 or higher for Windows, 1.3 or higher for Mac OS X) has to be installed on your computer
- a scanner or camera has to be installed on your computer
- download the trial package from http://www.gnome.sk
- unzipp it
- go to the examples directory of the unzipped package
- in Windows: doubleclick the runExampleShow.bat
- in MacOS:
- open the Terminal window
- change the working directory to the examples
- run .sh file (type ExampleShow.sh or sh ExampleShow.sh)
This will pop up the Twain Source Selection user interface. There, all your scanners and cameras which do have a twain driver should be listed. (About 90% of scanners and cameras on the market do have a twain driver for Windows, only a few do have a twain driver for MacOS.) Select one of them. The user interface of the selected scanner (camera) will appear. Confirm the scanning (you can set the scanning parameters first). The scanned image will be displayed in a separate window. To end the application, close that window.
Running different examples, you can test scanning with hidden UI, saving the scanned image, using ADF, taking images at regular intervals (ExampleCamera) ...
If there is any problem, do not hesitate to inquire about it at the technical support, email: [email protected] . -
VLC player RTSP server - JMF client
Hello,
I want to write application which can capture RTSP stream from VLC player. I am just beginner and don`t know where is problem. Can anybody help me, please? Here is my code, console output and log file.
import javax.media.ControllerEvent;
import javax.media.ControllerListener;
import javax.media.Manager;
import javax.media.MediaLocator;
import javax.media.NoPlayerException;
import javax.media.RealizeCompleteEvent;
import javax.media.StartEvent;
import javax.swing.SwingUtilities;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.Rectangle;
import java.io.IOException;
import javax.media.Player;
public class prehravacRTP extends JFrame implements ControllerListener {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JPanel jPanel_Video = null;
Player player = null;
String url = null;
MediaLocator mrl = null;
Component visualComp = null;
private JPanel getJPanel_Video() {
if (jPanel_Video == null) {
jPanel_Video = new JPanel();
jPanel_Video.setLayout(new BorderLayout());
jPanel_Video.setBounds(new Rectangle(4, 3, 448, 333));
return jPanel_Video;
void setLocation(){
url= "rtsp://192.168.1.100:5544/video.mov";
mrl= new MediaLocator(url);
if (mrl == null) {
System.err.println("Can't build MRL");
System.exit(1);
void realizeRTSP(){
try {
player = Manager.createPlayer(mrl);
} catch (NoPlayerException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
player.addControllerListener(this);
player.realize();
public synchronized void controllerUpdate(ControllerEvent evt){
System.out.println(evt.toString());
if(evt instanceof StartEvent){
Player p = (Player) evt.getSourceController();
visualComp = p.getVisualComponent();
if (visualComp != null){
Dimension d = visualComp.getPreferredSize();
jPanel_Video.setSize(d);
jPanel_Video.add("North", p.getVisualComponent());
jPanel_Video.setVisible(true);
validate();
if(evt instanceof RealizeCompleteEvent){
player.start();
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
prehravacRTP thisClass = new prehravacRTP();
thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
thisClass.setVisible(true);
public prehravacRTP() {
super();
initialize();
private void initialize() {
this.setSize(465, 369);
this.setContentPane(getJContentPane());
this.setTitle("RTSP Player");
setLocation();
realizeRTSP();
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.add(getJPanel_Video(), null);
return jContentPane;
Open log file: C:\Program Files\JMF2.1.1e\bin\\jmf.log
javax.media.TransitionEvent[source=com.sun.media.content.rtsp.Handler@1c0ec97,previous=Unrealized,current=Realizing,target=Realized]
bandwidth info: RR:0
javax.media.ResourceUnavailableEvent[source=com.sun.media.content.rtsp.Handler@1c0ec97,message=Failed to realize: Message from RTSP Server - Not found]
javax.media.ControllerClosedEvent[source=com.sun.media.content.rtsp.Handler@1c0ec97]
# JMF Version 2.1.1e
## Platform: Windows XP, x86, 5.1
## Java VM: Sun Microsystems Inc., 1.5.0_12
## Player created: com.sun.media.content.rtsp.Handler@1c0ec97
## using DataSource: com.sun.media.protocol.rtsp.DataSource@1bb60c3
## outgoing msg:
## DESCRIBE rtsp://192.168.1.100/video.mov RTSP/1.0
CSeq: 928
Accept: application/sdp
User-Agent: JMF RTSP Player Version 2.1.1e
## incoming msg:
## RTSP/1.0 200 OK
Server: VLC/1.1.4
Date: Tue, 23 Nov 2010 15:35:49 GMT
Content-Type: application/sdp
Content-Base: rtsp://192.168.1.100:5544/video.mov
Content-Length: 344
Cache-Control: no-cache
Cseq: 928
v=0
o=- 15030303979736870809 15030303979736870809 IN IP4 fonzzy-laptop
s=Unnamed
i=N/A
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 1.1.4
a=recvonly
a=type:broadcast
a=charset:UTF-8
a=control:rtsp://192.168.1.100:5544/video.mov
m=video 0 RTP/AVP 96
b=RR:0
a=rtpmap:96 H263-1998/90000
a=control:rtsp://192.168.1.100:5544/video.mov/trackID=8
## Add RTP dynamic payload for video: 96 : h263-1998/rtp
## outgoing msg:
## SETUP rtsp://192.168.1.100:5544/video.movrtsp://192.168.1.100:5544/video.mov/trackID=8 RTSP/1.0
CSeq: 929
Transport: RTP/AVP;unicast;client_port=38658-38659
User-Agent: JMF RTSP Player Version 2.1.1e
## incoming msg:
## RTSP/1.0 404 Not found
Content-Length: 366
Content-Type: text/html
<?xml version="1.0" encoding="ascii" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml10/DTD/xhtml10strict.dtd">
<html lang="en">
<head>
<title>Not found</title>
</head>
<body>
<h1>404 Not found (/video.movrtsp://192.168.1.100:5544/video.mov/trackID=8)</h1>
<hr />
<a href="http://www.videolan.org">VideoLAN</a>
</body>
</html>
!! [SDP Parser] Token missing: v=Every help will by appreciated. Thank you.Thank you for responce captfoss,
I have also option to stream HTTP with VLC. I tried stream mp3 and it`s working. My application start caching than start player and keep caching. With video I have problem. Application starts caching than start player, but only shows one frame and than again prefetched state.
javax.media.TransitionEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,previous=Unrealized,current=Realizing,target=Realized]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=103737]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=204912]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=307848]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=409609]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=513394]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=614423]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=717655]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=819369]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=923076]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=1024742]
javax.media.RealizeCompleteEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,previous=Realizing,current=Realized,target=Realized]
javax.media.TransitionEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,previous=Realized,current=Prefetching,target=Prefetched]
javax.media.PrefetchCompleteEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,previous=Prefetching,current=Prefetched,target=Prefetched]
javax.media.StartEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,previous=Prefetched,current=Started,target=Started,mediaTime=javax.media.Time@14e8cee,timeBaseTime=javax.media.Time@67064]
javax.media.EndOfMediaEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,previous=Started,current=Prefetched,target=Prefetched,mediaTime=javax.media.Time@3c9217]
javax.media.DurationUpdateEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,duration=javax.media.Time@9b42e6
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=1126585]
javax.media.CachingControlEvent[source=com.sun.media.content.video.mpeg.Handler@170888e,cachingControl=com.sun.media.protocol.DataSource$CachingControl@b9e45a,progress=1229673]I also tried add this to event controller without success.
if(evt instanceof PrefetchCompleteEvent){
player.start();
}Any suggestion? Thank you.
Edited by: 814939 on Nov 24, 2010 5:02 AM -
Does jmf support rtsp protocol?
i wanna know does jmf support rtsp protocol? now, i play an video(rtsp://localhost/test.avi) by JMStudio, but failed(Controller Error: Failed to realize).
Anybody can give me some suggestion on how to solve this problem?
I also know whether i can implement rtsp protocol by jmf? thanks in advance!Hi,
From what I understand optomux is a standard that determines the syntax of the command sent. The commands are sent through serial or Ethernet. You can use LabVIEW (the VISA VIs) to communicate with a device using serial or Ethernet. However, there are no VIs that will build the optomux commands.
I'm not familiar with them, but you can check out the optomux VIs included with the Fieldpoint explorer. That should give you an idea of how to use the VISA to implement optomux communication.
DiegoF
National Instruments. -
JMF RTSP Client features: Recording & Playing?
Hello all,
we hace decided to use RTSP to use in our video surveillance application. We will have a central server with a RTSP server (DSS or other, we haven't decided yet) and users will connect to it with the JMF Client.
Our doubt is to know what is implemented in JMF RTSP Client, it can receive video from the server (PLAY) and send it to the server (RECORD) or one of the features is not implemented? In this case, has someone implemented it? Is easy to realise?
About the server we suppose that is better to use the of a commercial one (DSS) and program the interaction with the rest of the central server that design a RTSP Server in JMF. What do you think?
Thanks in Advance :)if you download the source code for jmf, there is RTSP code there.
It will give you guidence on how it works.
http://wwws.sun.com/software/communitysource/jmf/download.html
Using DSS will work, but there are brick walls, you will hit.There are posts about dss4 and dss5.
I do not know if anyone has succeeded in what you want, but I know that a lot of work will get the job done.
good luck ;) -
IOS RTSP incompatibility with VLC server
Hi,
I'm trying to use VLC server as a media streaming server for callers in queue with CVP. However, the gateway (running 15.3(3)M) doesn't like something about the format of the SDP in the RTSP it gets from VLC (says "Invalid Stream Info"). Here is a snippet from the log. Can anyone see what IOS doesn't like here?
Thanks,
Janet
Apr 13 21:43:44.042: ########################################
Apr 13 21:43:44.042: Mesg_line :RTSP/1.0 200 OK
Apr 13 21:43:44.042: Content_length :334
Apr 13 21:43:44.042: Header list
Apr 13 21:43:44.042: Cseq: 0
Apr 13 21:43:44.042: Cache-Control: no-cache
Apr 13 21:43:44.042: Content-Length: 334
Apr 13 21:43:44.042: Content-Base: rtsp://192.168.222.100:8554/test.sdp
Apr 13 21:43:44.042: Content-Type: application/sdp
Apr 13 21:43:44.042: Date: Sun, 13 Apr 2014 21:43:43 GMT
Apr 13 21:43:44.042: Server: VLC/2.1.3
Apr 13 21:43:44.042: Message Body
Apr 13 21:43:44.042: v=0
o=- 15489431146197729671 15489431146197729671 IN IP4 BYRONW7LT
s=Unnamed
i=N/A
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 2.1.3
a=recvonly
a=type:broadcast
a=charset:UTF-8
a=control:rtsp://192.168.222.100:8554/test.sdp
m=audio 0 RTP/AVP 0
b=RR:0
a=rtpmap:0 PCMU/8000
a=control:rtsp://192.168.222.100:8554/test.sdp/trackID=0
Apr 13 21:43:44.042: ########################################
Apr 13 21:43:44.042: //-1//RTSP:/rtsp_process_single_svr_resp: RESP received OK
Apr 13 21:43:44.042: //-1//RTSP:/rtsp_process_resp_headers:
Apr 13 21:43:44.042: //-1//RTSP:/rtsp_update_resp_status:
Apr 13 21:43:44.042: //-1//RTSP:/rtsp_update_resp_status: Control Not active
Apr 13 21:43:44.042: //-1//RTSP:/rtsp_process_resp_headers: Response URL: rtsp://192.168.222.100:8554/test.sdp/trackID=0
Apr 13 21:43:44.042: //-1//RTSP:/rtsp_pmh_parse_mesg_body:
Apr 13 21:43:44.042: //26061//RTSP:/rtsp_session_cleanup:
Apr 13 21:43:44.042: //26061//RTSP:/rtsp_server_closed:
Apr 13 21:43:44.042: //26061//RTSP:/rtsp_send_resp_to_api:
Apr 13 21:43:44.042: //26061//RTSP:/rtsp_send_resp_to_api: sending RESP=RTSP_STATUS_SERVER_SESSION_IDLE
Apr 13 21:43:44.042: //-1//RTSP:RS635:/rtsp_api_free_msg_buffer: msg=0x3D99F7C4
Apr 13 21:43:44.042: //-1//RTSP:/rtsplib_update_stream_stats:
Apr 13 21:43:44.042: rtsplib_update_stream_stats: Invalid Stream InfoJMF does not. JMF only plays RTP-protocol streams.I doubt it.....though I have never tried to play RTSP streams using JMF but seeing following links I do think client side RTSP is supported by JMF:
[http://java.sun.com/javase/technologies/desktop/media/jmf/reference/faqs/index.html#jmf2-rtsp-features]
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/support-rtsp.html]
Thanks! -
I am trying to stream a .mov file stored on a Darwin Streaming Server running on Linux from the JM Player via opening an rtsp url. I receive the following error.
Controller error. Failed to realize. Server not responding.
HOwever the Darwin server is sending out rtp packets. It also works fine with quicktime.
Would anyone anyone know if rtsp with Darwin is supported? Any help would be very much appreciated..
AldaHello
Thanks but i was looking for help with coding RTSP without the JMF when i posted that,i have now implemented RTSP myself without the JMF
I will now move on to impementing RTCP/RTP,i will probably use JMF for this,did you have much trouble creating the custom payload
regards
Conor Fitzgerald -
code:
stream = ((NewReceiveStreamEvent) evt).getReceiveStream();
tmp_ds = stream.getDataSource();
Player player = Manager.createRealizedPlayer(tmp_ds); //here exception
FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
javax.media.Buffer buffer = fgc.grabFrame();
BufferToImage bufferToImage=new BufferToImage((VideoFormat)buffer.getFormat());
Image image=bufferToImage.createImage(buffer);
error message:
javax.media.NoPlayerException: Error instantiating class: com.sun.media.content.unknown.Handler : java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at javax.media.Manager.createPlayerForSource(Manager.java:1502)
at javax.media.Manager.createPlayer(Manager.java:500)
at javax.media.Manager.createRealizedPlayer(Manager.java:579)
at MulServerProcess.createTransmitter(MulServerProcess.java:374)
at MulServerProcess.update(MulServerProcess.java:286)
at com.sun.media.rtp.RTPEventHandler.processEvent(RTPEventHandler.java:62)
at com.sun.media.rtp.RTPEventHandler.dispatchEvents(RTPEventHandler.java:96)
at com.sun.media.rtp.RTPEventHandler.run(RTPEventHandler.java:115)
add "export DISPLAY=localhost:0" to file " /etc/profile" ,but nothing happen!System.setProperty("java.awt.headless", "true"); add code
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
System.out.println("Headless mode: " + ge.isHeadless()); the answer is true;
error message:
javax.media.NoPlayerException: Error instantiating class: com.sun.media.content.unknown.Handler : java.awt.HeadlessException
at javax.media.Manager.createPlayerForSource(Manager.java:1502)
at javax.media.Manager.createPlayer(Manager.java:500)
at MulServerProcess.createTransmitter(MulServerProcess.java:393)
at MulServerProcess.update(MulServerProcess.java:292)
at com.sun.media.rtp.RTPEventHandler.processEvent(RTPEventHandler.java:62)
at com.sun.media.rtp.RTPEventHandler.dispatchEvents(RTPEventHandler.java:96)
at com.sun.media.rtp.RTPEventHandler.run(RTPEventHandler.java:115)
Re: Headless exception in AIX using JMF2.1.1
This question is the same as me. But it is still not solved.
Is this a bug of JMF in Linux ? -
Hi,
I have been working on opening an RTSP URL using JMF, everytime the error i get says protocol is not supported. I even tried using quicktime api and real player api. I would appreciate if someone can post a working code snippet as how to open and play an RTSP protocol using the Manager.createPlayer() method.
Thanks,
gourav.Hi,
I have been working on opening an RTSP URL using JMF, everytime the error i get says protocol is not supported. I even tried using quicktime api and real player api. I would appreciate if someone can post a working code snippet as how to open and play an RTSP protocol using the Manager.createPlayer() method.
Thanks,
gourav. -
Windows Media Player & Video Streaming
Hi, there!
Is it possible to send Video Streaming (using JMF) to
Windows Media Player? If so, how could I do that???
Thank You very much!!
CesarHi Jupiter,
Yes, JMF supports streaming media using the public standard RTP and RTSP protocols.
JMF supports both transmission and reception of media over RTP for a variety of media formats. For a list of the default formats supported, check:
http://java.sun.com/products/java-media/jmf/2.1.1/support-rtp.html
It also fully supports RTCP. Besides, JMF implements the "RTP Profile for Audio and Video Conferences with Minamal Control", RTP/AVP.
The front end GUI application, JMStudio can be used as a standalone application to transmit and receive RTP streams. To implement custom RTP applications using JMF as a framework, check out the RTP samples
on the solutions page: http://java.sun.com/products/java-media/jmf/2.1.1/solutions/index.html
OR you can refer this URL.
http://java.sun.com/products/java-media/jmf/2.1.1/faq-jmf.html#jmf2-rtp-features
I hope this will help you.
Thanks
Bakrudeen
Technical Support Engineer
Sun MicroSystems Inc, India -
Where is the audio in TV / Video Cards???
Hello boyz!
I am developing a little framework over jmf to make life easier to java developers who want to use media in their apps.
Now i am developing a Capturer class that is configured with an audio and video device and their capture formats.
To a webcam and the soundcard works fine. I get a datasource from each device, if i have both, i make a merged datasource...
But how works a videocard or tvcard? In the config of my class the video_device and audio_device will be the same, but later, how works the audio? Will i get a only datasource from the device with 2 streams? or how?
Thanks in advance!
jcpa1As for TV capture sound, should be same principle as your webcam or soundcard.In my machine i have a webcam (video_device), a soundcard(audio_device) and a microphone in the webcam.
For the audio, capturemanager only shows: javasound and directsound (i suppose because i am in windows) and both are only for the soundcard, i cant select the microphone of the webcam :-(
So i would like hear the experience of a user who has a tv or video card.
How much easier can jmf get? if you know java, your sure be easily able to pick up jmf.To domine jmf you need to know about media formats, events, concurrency, and networking (if you want to send/receive) and later fight against the poor documentation and bugs of jmf.
So, i suppose if you only need to incorpore simple media tasks in your app you wont to study all previous topics.
Greetings. -
How to avoid bandwith information when hinting a file
Hi, I wanted to create an rtsp client using JMF. I created teh file and in order to use it with Darwin when I hinted my .mov file using quicktime pro, Darwin sends "Bandwidth info" parameter (optional field) inside the sdp of teh video. And JMF gets confused when it gets this field and couldn't retrieve the track information from teh sdp. This doens't happen when I use VLC. But there is anotehr problem with VLC. So, now I know the problem relates to this parameter, which I think is created by quicktime pro. So, I want to know if I can create and hint a video file (mov or 3gp) without this information (Bandwidth information). Please help me. I spend the whole week to figureout this thing.
Thank you.
ZelalemHi, I wanted to create an rtsp client using JMF. I created teh file and in order to use it with Darwin when I hinted my .mov file using quicktime pro, Darwin sends "Bandwidth info" parameter (optional field) inside the sdp of teh video. And JMF gets confused when it gets this field and couldn't retrieve the track information from teh sdp. This doens't happen when I use VLC. But there is anotehr problem with VLC. So, now I know the problem relates to this parameter, which I think is created by quicktime pro. So, I want to know if I can create and hint a video file (mov or 3gp) without this information (Bandwidth information). Please help me. I spend the whole week to figureout this thing.
Thank you.
Zelalem
Maybe you are looking for
-
How can I tell if my problem is with iPhoto or if the SD card ?
I'm trying to import photos from an SD card, and when I attach my camera (or insert the SD card - I've tried both ways), iPhoto shows me thumbnails of the pictures, and tells me they are already imported. But when I disconnect my camera, the photos
-
Help!! I'm in Belize (not a good place to be with an Apple, as international as you may claim to be!) and my computer decided to "quit" thusly: White screen with a crossed out circle which flickers to the Apple logo sometimes, but won't open. What c
-
I know that this packager is designed for the iphone, but in effect, the IPad is just a larger IPhone. However, when I deploy my app it shows as an IPhone in this emulator style window that I can expand and contract. Is there a way to set my applicat
-
HI All, Can you help me on this issue? I have one requirement after create billing documents and Accounting documents ,system should create IDOC for those documents to transfer to other system. So can you guide me how can be this configuration Ishi
-
IPhone 4S stopped pairing with my 2007 Mini Cooper 4S
I'm an IT guy of 15 years. I have been on several deployment teams for PDA, then Smart Phones. Recently my iPhone 4S stopped pairing with my 2007 Mini Cooper 4S. I went through the gauntlet trying to get this issue solved including but not limited to