Play RTSP stream with JMF

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,
lefish

JMF 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!

Similar Messages

  • Record rtsp streams with azure media services

    Hello.
     I see that Azure media service now has rtsp streaming support, but, as I understand, it can stream videos from azure, but what about recording of incoming rtsp streams? Is it possible to record rtsp streams with Azure media Service?
    Andrey

    Quick correction for you... We support RTMP.  Not RTSP.
    You can send a live RTMP stream to us and we will record it.  You just need to enable a live Channel and start a Program on it.  It will archive the live stream to storage so that you can play it back as VOD.

  • RTP (UDP) multicast stream with JMF...?!

    Hi.
    I am quiet new in the material of jmf and its plugins. I have a network which offers me an UDP stream (mpeg2 or mpeg4 both could be available). I can watch this stream with an freewareplayer called VLC.
    When using the JMF Studio tool, I can't watch the stream ... The Player is waiting for signals and breaks after 60 seconds. So, okay ... Maybe the JMF doesn't bring the right codec with it.
    Now I've installed jffmpeg, but that doesn't help a lot. I write done the JAR File in Classpath and installed the Plugin, MimeType and Demultiplexer (as described) in the JMF Registry. The behaviour of JMF Studio is the same. Does anybody have an idea wether jffmpeg supports this kind of streaming
    and/or what I can do to get the stream?! Maybe there is an better Plugin for my solution.
    I can't suppose that nobody here ever tried to get an Mpeg2 or Mpeg4 multicast stream with JMF. There must be an solution.
    Many thanks for your help and reply!
    Jan Stanetzki

    Hi funnyjanni,
    May be I am writing this after 4 years.
    I am also in the stage when you faced the same problem. You might have found the solution to this.
    Please help me on this. I am trying to use jffmpeg to play UDP mutlicast stream.
    Thanks
    jklanka

  • Play audio file with jmf on linux?

    a simple audio player as flow:
    import javax.media.*;
    import java.io.File;
    import java.net.URL;
    public class SimpleAudioPlayer {
        private Player audioPlayer = null;
        public SimpleAudioPlayer(URL url) throws Exception {
            audioPlayer = Manager.createRealizedPlayer(url);
        public SimpleAudioPlayer(File file) throws Exception {
            this(file.toURL());
        public void play() {
            audioPlayer.start();
        public void stop() {
            audioPlayer.close();
        public static void main(String[] args) throws Exception {
            File file = new File("/usr/local/download/1.wav");
            SimpleAudioPlayer sap = new SimpleAudioPlayer(file);
            sap.play();
    }when run the program
    javac -cp jmf.jar SimpleAudioPlayer.java
    java -cp .:jmf.jar SimpleAudioPlayer
    the output as flow:
    Unable to handle format: ima4/ms, 8000.0 Hz, 4-bit, Mono, Unsigned, 4027.0 frame rate, FrameSize=4096 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@defa1a
    Error: Unable to prefetch com.sun.media.PlaybackEngine@defa1a
    How can I play wav file with jmf on linux?(OS is debian5 and jmf cross-platform pack)

    thanks for your reply.
    I tried to replace the wav file "1.wav" with the linear encoded WAV download from pscode.org,and run the code again,but
    BasicTrackControl:prefetchTrack():96 1 bm = com.sun.media.BasicRendererModule@1186fab
    BasicRendererModule.doPrefetch:155 Render : true
    Render buffer size: 32768
    BasicRenderModule.doPrefetch:159
    javax.media.ResourceUnavailableException: Cannot intialize audio device for playback
    at com.sun.media.renderer.audio.JavaSoundRenderer.open(JavaSoundRenderer.java:93)
    at com.sun.media.BasicRendererModule.doPrefetch(BasicRendererModule.java:158)
    at com.sun.media.BasicTrackControl.prefetchTrack(BasicTrackControl.java:99)
    at com.sun.media.PlaybackEngine.doPrefetch1(PlaybackEngine.java:682)
    at com.sun.media.PlaybackEngine.doPrefetch(PlaybackEngine.java:658)
    at com.sun.media.PrefetchWorkThread.process(BasicController.java:1430)
    !!!!!!!§§§§§§§§§§§ BasicTrackControl:prefetchTrack():96
    at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
    Unable to handle format: LINEAR, 16000.0 Hz, 16-bit, Mono, LittleEndian, Signed, 32000.0 frame rate, FrameSize=16 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@26e431
    Error: Unable to prefetch com.sun.media.PlaybackEngine@26e431

  • Play sdp file with JMF

    Hi,
    I have a Darwin Streaming Server(DSS) running on a machine, that reflects several broadcasts from other machines (I'm broadcasting to the DSS with JMF).
    I can see all the videos and audio without any problem with Quick Time, but I can't find a way to play the sdp files with jmf. I've searched the web for jmf and sdp, and there isn't much information, i've also tried to play with JMStudio..no luck. In the JMF solution there aren't any samples for SDP files....
    If I can't find a way to do it, I'll use Quick Qime 4 Java, the only problem is that there isn't a linux implementation :(
    Thanks in advance.
    Best regards,
    ANeto

    Hi,
    I have read all the mails on the JMF interest group regarding the Broadcaster and DSS.
    Well i too am trying to do a similar application. This is an Application
    Casting program basically to share my desktop with the other person sitting
    across the network using my client. And in order to multicast this, i am
    looking at using Darwin Streamng Server.
    The whole idea here is that i break the desktop image up into frames and
    then compress them and then send it over, protocol used here is TCP/RTP/UDP.
    I am trying to hit this stream of packets to DSS so that it can be accessed
    else where over the internet. I'm trying to under stand the basic
    authentication mechanism DSS uses, so that i can create the .sdp file and
    transfer it over to the DSS, which can further be accessed by any client
    that can understands sdp.
    As i read in the mail some of you were able to create the .sdp file with your custom built boradcaster and send it to DSS if i am not wrong.
    I have tried this with Mpegable Broad caster as you said.
    Now the problem i had was to create .sdp file with my application and push it to the DSS.
    So have you made some kind of a documentation or can you give me an idea as
    to how i can go about this. Or it will be even better if you can share the code with me.

  • PAUSE RTSP command with JMF

    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).
    Thanks

    Actually 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.

  • Playing icecast stream with flash-plugin problem

    Hello,
    i've got a problem playing an mp3 stream from a livecast
    server with the flash-plugin (version 8,0,24) on IE (version
    6.0.2900.2180.xpsp_sp2_gdr.050301-1519)
    On my pc it plays fine, on another pc (with the same
    versions) it doesn't play at all.
    Though in will play fine in firefox on both pc's.
    I can see in the icecast admin that there are listeners
    connected, so it has to be flash that's not playing the stream it's
    receiving.
    code used:
    var streamName = 'stream'
    System.security.allowDomain("
    http://www.insertserverurlhere.com");
    myRadio = new String("
    http://www.insertserverurlhere.com:8000/"+streamName);
    mySound = new Sound();
    mySound.loadSound(myRadio, true);
    mySound.start();
    Can anyone help me?
    Greetings,
    Ramon

    Anyone??

  • Capture a several streams with jmf?

    i want to capture streams from 4 USB webcams in the same times.
    it's possible with JMF? and how?
    the JMStudio know just one capture device, if i link 2 webcams i capture just one stream?????
    please if you have solution send it to me,
    think you!!

    I think you don't have problems, because you should query the JMFRegistry, and you'll obtain the list of all multimedia devices installed in your system.
    Also, I suggest you a visit to Solutions section, look at "monitor.zip", there are some interesting files, regarding query of JMFRegistry. Good luck. :)

  • Play rtpdump files with jmf

    hello,
    I am trying to play a file created with rtpdump (or etheral) directly with jmf. I don�t know, how to create valid datasource and processor objects for a file with stored rtp-packets. Is there a possibility? Do I have to write an own demultiplexer f�r this rtp-dump format? Especially this RTP packets uses the H.263 format.
    Maybe there exists a code fragment for this problem.
    thanks a lot for your help

    I still didn't get it to work as I need it, but I made some progress so far:
    Instead of jffmpeg I used the FOBS for JMF Package (http://fobs.sourceforge.net/index.html) in addition with the JMF.
    Using this package allows you to play a 3gp-Video in Swing that is stored in your filesystem (!).
    I'm still having two problems with this solution:
    - I use a Java Webstart-framework and can't acces the user's harddisk, so I need to play the 3gp-Videos directly from memory (they are stored as byte[] in a database), but the current version of FOBS is limited to 3gp-Playback only from filesystem.
    - Each user of the application has to download and install JMF and FOBS for their OS (system-specific libraries). Especially FOBS is not always very easy to install, because it needs to change some of the jmf.properites. This can not be done with the JAR-distribution-System of WebStart and I'm expecting problems, when the users try to install both packages on their own.
    If you are developing a plain Swing-Application you might be satisfied with the possibilities of FOBS and JMF.
    Good luck :-)

  • Capturing Video stream with JMF under LINUX??

    Ok, i am confused! I have read lots of info over this subject, but at some sites and forums i read that some people did not succeed in capturing ( and displaying) a live video stream with Java under Linux.
    Is it possible? and if so, can someone give me a sample code or a link to a sample code? thankz a lot!!

    Cross-posted
    http://forum.java.sun.com/post.jsp?forum=54&thread=456420&message=2083138&reply=true

  • Play .3gp-files with JMF (jffmpeg)

    Hello,
    for a MMS-Application I'm trying to show 3gp-files with Java. I heard that it should work with jffmpeg but I still couldn't get it to work.
    I added the Codec:
    String JFFMPEG_VIDEO = "net.sourceforge.jffmpeg.VideoDecoder";
    try {
        Codec video = (Codec) Class.forName(JFFMPEG_VIDEO).newInstance();
        PlugInManager.addPlugIn(JFFMPEG_VIDEO,
                video.getSupportedInputFormats(),
                video.getSupportedOutputFormats(null),
                PlugInManager.CODEC);
    } catch (Exception e) {
        e.printStackTrace();
    }and then started the player.
    It already works for mpg-Videos, but if the file-extension is .3gp the player throws a javax.media.NoPlayerException: Cannot find a Player for : file://C:/test.3gp
    When I change the file-name to test.mpg the player initializes but doen't show a picture.
    How can I register the 3gp-extension? Or is anything else missing?
    Thanks in advance for any hint :-)

    I still didn't get it to work as I need it, but I made some progress so far:
    Instead of jffmpeg I used the FOBS for JMF Package (http://fobs.sourceforge.net/index.html) in addition with the JMF.
    Using this package allows you to play a 3gp-Video in Swing that is stored in your filesystem (!).
    I'm still having two problems with this solution:
    - I use a Java Webstart-framework and can't acces the user's harddisk, so I need to play the 3gp-Videos directly from memory (they are stored as byte[] in a database), but the current version of FOBS is limited to 3gp-Playback only from filesystem.
    - Each user of the application has to download and install JMF and FOBS for their OS (system-specific libraries). Especially FOBS is not always very easy to install, because it needs to change some of the jmf.properites. This can not be done with the JAR-distribution-System of WebStart and I'm expecting problems, when the users try to install both packages on their own.
    If you are developing a plain Swing-Application you might be satisfied with the possibilities of FOBS and JMF.
    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 Info

    JMF 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!

  • Recieve http or/and rtsp stream on iphone possible?

    hi i made up a LAN at home with own server and some media on it.
    I was setting up a stream on the pc with VLC media player.
    I created a homepage on the server which is linked to the vlc streams.
    The question is: Is there a possibility to use the Link on the homepage to stream the media to the iphone.
    I tried with android and Nokia and all other stuff and it worked fine. But iphone got troubles.
    The Point is i want to open the homepage click the link and see the stream. Can i set the iphone to open the homepage with safari but when i click the link to open a specific app to recieve the link? (the other phones automatically open their mediaplayer and play the stream.)
    All in one: is it possible to recieve a http or rtsp stream with iphone via homepagelink? (also for ipod touch) 
    regards Jonas

    Welcome to the Apple Community.
    No sorry that isn't possible.

  • P2p video streaming using jmf (is it possible to "forward" the stream ?)

    Hello
    In my project a peer will start streaming captured video from the webcam to his neighbors and then his neighbors will have to display the video and forward(stream) it to their neighbors and so on . So my question is can i do this using jmf , a simple scenario will be : peer_1 streams to peeer_2 and then peer_2 to forward(stream) the video received from peer_1 to peer_3 .
    I've read the jmf2_0 guide and i've seen that it's only possible to stream from a server to a client and that's about it , but i want also the client to pass the stream forward to another client ... like for example [http://img72.imageshack.us/img72/593/p2pjmf.gif|http://img72.imageshack.us/img72/593/p2pjmf.gif]
    I want to know at least if this it's possible with jmf or should i start looking for another solution ? and do you have any examples of such projects or examples of forwarding the stream with jmf ....
    thanks for any suggestions

    _Cris_ wrote:
    I want to know at least if this it's possible with jmf or should i start looking for another solution ? and do you have any examples of such projects or examples of forwarding the stream with jmf .... You can do what with JMF. Once you receive the stream, it's just a video stream. You can do anything you want with it...display it, record it, or send it as an RTP stream.

  • RTSP stream downloads video rather than displaying...

    I've got an internet security cam that I can view on my PC as an RTSP stream with Quicktime, Windows Media Player, Real Player, etc.
    My E71x has Real Player and when I enter the same address that streams on my PC, the MediaNet app starts to download the stream, rather than displaying the video.  It will go as long as I leave it, downloading MB of data.
    Does anybody know how to get this RTSP stream to display as video rather than download?  I've tried Opera and Bolt but neither pull up Real Player like MediaNet.  I know the RTSP on the phone must be working because the YouTube app works like a champ.

    You can specify a folder on a computer (or iPhoto events etc on a Mac) though you may not get perfect control over display order.
    Use iTunes>File>Home Sharing>Choose photos to share etc
    iTunes would need to be running on teh LAN to support this.
    AC

Maybe you are looking for