Jmf streaming from ip camera using rtsp

hello everybody
i'm trying to create a player that reads rtsp video from an ip camera using jmf , and i'm facing problems doing this.
- Using a processor i have this erreor:
Received event javax.media.TransitionEvent[source=com.sun.media.processor.rtsp.Handler@f47396,previous=Unrealized,current=Configuring,target=Configured]
Exception in thread "JMF thread: com.sun.media.processor.rtsp.Handler@f47396[ com.sun.media.processor.rtsp.Handler@f47396 ] ( configureThread)" java.lang.NullPointerException
     at com.sun.media.processor.rtsp.Handler.closeSessions(Handler.java:266)
     at com.sun.media.processor.rtsp.Handler.doFailedConfigure(Handler.java:259)
     at com.sun.media.ConfigureWorkThread.failed(BasicController.java:1382)
     at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1346)
- And Using a Player without medialocator:
javax.media.ResourceUnavailableEvent[source=com.sun.media.content.rtsp.Handler@1a116c9,message=Failed to realize: Message from RTSP Server - Not found]
- And Using a Player with medialocator:
Received event javax.media.TransitionEvent[source=com.sun.media.content.rtsp.Handler@1e2ca7,previous=Unrealized,current=Realizing,target=Started]
bandwidth info: AS:0
bandwidth info: AS:13
Exception in thread "JMF thread: com.sun.media.content.rtsp.Handler@1e2ca7[ com.sun.media.content.rtsp.Handler@1e2ca7 ] ( realizeThread)" java.lang.NumberFormatException: empty String
     at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
     at java.lang.Double.valueOf(Unknown Source)
     at java.lang.Double.<init>(Unknown Source)
     at com.sun.media.content.rtsp.RtspUtil.setDuration(RtspUtil.java:521)
     at com.sun.media.content.rtsp.RtspUtil.rtspSetup(RtspUtil.java:168)
     at com.sun.media.content.rtsp.Handler.initRtspSession(Handler.java:117)
     at com.sun.media.content.rtsp.Handler.doRealize(Handler.java:84)
     at com.sun.media.RealizeWorkThread.process(BasicController.java:1400)
     at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
Please help,
Edited by: 865261 on 11 juin 2011 10:15

865261 wrote:
but for rtsp i really have no idea how to do it. so please if you have a link or a first step to do it.I don't have any clue how you'd go about doing that. I'd recommend you read my response on the other thread before you worry about it, and I'd also recommend not posting 2 threads about the same issue in the future.

Similar Messages

  • Must i have FMS to publish a stream from my camera ?

    hello
    i am building an live streaming website and i am use
    1- FMS
    2- Apache webserver
    i have made the subcriber and i works well .
    but i need to build the publisher to allow users to broadcast thier stream from thier cameras.
    i have tested a publisher which was build using actionscript and it didn't work untill i have installed the fms on my localhost , but i need a publisher which any user can use in his web browser .

    Are you asking whether each publisher needs to have FMS on its machine in order to publish stream - then answer is NO. There is absolutely no need for someone have FMS insalled on its machine to publish stream - what he needs is microphone and camera.
    Probably your publisher code was wrong and hence it did not work - may be you just need to put correct URI of your FMS machine in your connection URI instead of "localhost"

  • Cannot open stream from Axis camera

    I'm a newbie in JMF, I'm using JMStudio trying to open a stream from an Axis IP camera.
    I get the following error code:
    UNABLE_CREATE_PLAYERjavax.media.NoPlayerException: Cannot find a Player for :http://192.168.52..../axis-cgi/mjpg/video.cgi?resolution=640x480*
    I can open from the player only mp3 files, if I try to open standard avi files (like clock.avi under windows directory) I can hear only sound but no videos.
    I think I've a sort of codec problem
    Can someone help me?
    Thanks

    pignattino wrote:
    My goal is to save stream from camera to a file.
    I thought that open url could retrieve a mjpeg streamYou can only open URLs if JMF has a DataSource associated with the protocol prefix.
    Protocol prefix means "http", "https", "file", "ftp", etc... the stuff you see before "://" normally.
    JMF can open URLs that use rtp, rtsp, and file by default. It does not do http streaming.
    I tryed also with rtp session but I cannot establish any connection (I can do that with a software like VLC)
    Is that possible? What am I doing wrong?How the hell should I know know what you're doing wrong? All you said was you tried to do something, didn't explain what you did! What you did wrong was not suceeding, that's the advise I can give you based on the information you've given me!
    If your camera supports RTP streaming, and its RTP implementation is compatible with JMF's implementation... and it streams a format JMF can understand, and its format implementation is compatible with JMF's format implementation, then JMF should be able to receive the RTP stream.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html]
    JMF supports opening MJPEG files, but doesn't list MJPEG_RTP as a supported format. It supports JPEG_RTP, but those aren't the same thing.
    So maybe you can receive an MJPEG_RTP stream with JMF, but, it isn't listed as being supported by JMF...

  • How to control and display video from IP camera using ActiveX control over Internet.

    Hello,
    I need to control my IP cameras over the internet. I need to log into the cameras and then display the video.  There's an ActiveX control registered on the computer and works fine with IE to access and control the cameras. Controlling the cameras using IE works fairly well, but there are some quirks that I'd like to eliminate by using my own custom code.
    Has anyone created a vi that controls a Foscam FI8905W over the Internet? I’ve attempted, but I keep getting a catastrophic failure when I try to call ManagementConnect Method in the DVM_IPCam2 ActiveX Control Module V1.0. I'm not sure whether I need to establish an IP connection with the cameras first, or allow the ActiveX control to establish it for me.
    Some example code would be greatly appreciated. Running LabVIEW 2011 on a Win7 32bit.  Even some code used to control a similar device using ActiveX over Internet would be helpful.

    I have an example vi for interfacing to the foscam activex.
    I plan on using mouse click events within the activex window to trigger the PT function.
    I only have the basic up/down/right/left directions and not the down-right/down-left/up-right/up-left in the enum.  You can load the camera's web page and view the source to see the Java script code that uses the activex control.  There are definitions for the other directions.
    I had to mark the control as "Disabled" to keep click events from going to the activex control.  If I double click the control, it goes full screen.  If I then click on it to get out of full screen mode the video never returns or returns to the wrong spot in the VI.
    Attachments:
    Foscam Demo.vi ‏24 KB

  • Can you stream from BBCi Player using Apple TV?

    Hi All,
    Looking into getting the apple TV for my dad but want to know if it will actually come in handy so please tell me ...
    Can you stream from BBCi Player/ITV Player from laptop to TV via the Apple TV?
    Many Thanks

    I thought that members of this forum may like to see the latest, 10th August 1013,  respons from the BBC -
    Thank you for contacting the BBC iPlayer support team.
    I understand that a previous response from us didn’t resolve an issue you have with the BBC iPlayer, via your Apple TV device.
    Streaming programmes should be able to play using airplay but downloaded programmes are not currently supported on the Apple TV.
    However, we aim to resolve this in a future update to the BBC iPlayer.
    We do appreciate the time taken to report this issue as all feedback received helps us to develop and improve the service.
    Your comments have been used to inform a daily report which is sent to the BBC iPlayer team, including the head of BBC iPlayer.
    Seems we are keeping our fingers crossed that Apple and the BBC will have the same common aim in getting AppleTV to incorporate the iPlayer.

  • How do I take a picture from usb camera using the Windows Image Acquisition Automation activex control in LabWindows?

    Hy!
    I have a faculty project in wich I
    have to acquire image from a webcam in Labwindows
    8.1 and to take a picture and save it in a file and to display it.I managed to acquire
    image from the webcam using the WIA automation activex controll but I
    haven't been able to take a picture and save it and display it .So i ask of you to
    post a tutorial or something that would help me to take a picture and save it and display it using the WIA automation activex controll in
    LabWindows.
    OS: Windows XP Professional X86
    Please help me!!

    Unfortunetly I do not have any experience with Activex.This is one of the codes I tried so far:#include "wiaaut.h"
    #include <cvirte.h>        
    #include <userint.h>
    #include "camm.h"
    static int panelHandle;
       int cid,eroare;
       CAObjHandle objh;
       WIAObj_IImageFile result;
       ERRORINFO eror;
    int main (int argc, char *argv[])
        if (InitCVIRTE (0, argv, 0) == 0)
            return -1;    /* out of memory */
        if ((panelHandle = LoadPanel (0, "camm.uir", PANEL)) < 0)
            return -1;
        DisplayPanel (panelHandle);
        RunUserInterface ();
        DiscardPanel (panelHandle);
        return 0;
    int CVICALLBACK OkCallback (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
               WIA_NewIVideoPreview(panelHandle,"Video",45,45,&cid,&eroare);
               GetObjHandleFromActiveXCtrl(panelHandle,cid,&objh) ;
                break;
        return 0;
    int CVICALLBACK QuitCallback (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
                QuitUserInterface (0);
                break;
        return 0;
    int CVICALLBACK pozaCallback (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
               WIA_NewICommonDialog(panelHandle,"poza",45,400,&cid,&eroare);
               WIA_ICommonDialogShowAcquireImage(objh,&eror,2,1,131072,"{B96B3CAB-0728-11D3-9D7B-0000F81EF32E}",VTRUE,VTRUE,VTRUE,&result);
                break;
        return 0;

  • QT Streaming from Network Camera?

    Hi everyone!
    We were wondering if we could do QT streaming via network cameras? We purchased a few AXIS 206W network cameras. We realised that they only produce MJPEG movies. Is it possible to do QT streaming with these cameras? Could you recommend some tools/documentations regarding this issue? Thank you.
    Ning
      Mac OS X (10.4)  

    As your trial has proved the start/stall playback means you've reached the bandwidth limits of your device. Lots of reasons why.

  • How can I see images from my camera using the HDMI cable? Is there an app to transfer jpgs?

    I want to preview images from my Nikon DSLR on my ipad2. It would also be nice to see the same video when the camera is in live mode. I bought the Apple ipad-to-HDMI connector and an hdmi (camera to connector) cable. Everything hooks up but nothing happens when I take a picture or view a pictures on the camera.
    Do I need an app for this?
    I know there is a USB based camera connection kit too - however I was hoping to have the HDMI also for outputing to a projector

    That cable set up you have is probably not going to work.  The iOS devices seem a little sensitive to having the right connector for the right job.  I have the USB connector (and the HDMI one too) which is in 2 parts: mini USB link and SD. My older Nikon D70s does not use SD cards, so I use the cable. When connected any images on the card (in the camera) are displayed in the built-in Photo app in an Imports album.  Just touch the Import button and all are brought in.  I use RAW and have found that the RAW images are transferred to the computer (MacBook Pro + Aperture) when I get home.  A comparison (I kept the images on the card and imported from that too) shows that the resolution/size is identical.  As an additional note as you mentioned this, video clips work the same.
    With all the connectors, I carry a small bag for the devices I work with.

  • Can you stream from Amazon Prime using ATV?

    I want to stream video from Amazon using my Prime account. Can that be done using most recent Apple TV?

    Not on AppleTV itself.
    If thyere's any kind of iPhone/iPad app for th eservice you might be able to Airplay it to AppleTV, but AppleTV by itself won't access Amazon stuff.

  • Synchronization of multiple clips from two cameras using TIMECODE

    Hi there and greetings everyone,
    I'm new to the adobe forum, but I'm quite familiar with premiere pro and generally with filming and editing.
    My question is simple, yet complicated:
    I have 2x 5D mark III synched via timecode to the second and I have an event of about 30 minutes, where each camera recorded individual clips in an alternating way (so there are gaps between clips from the same camera, but almost 100% coverage with the 2 cameras together - we used this method for a more creative / interesting end result)
    HOW DO I import the clips from the 2 cameras in such a way that there will be two different video tracks (so for exemple track 1 for cam 1 and track 2 for cam 2) yet I will be able to sync them via timecode in my timeline ?
    Aditional info:
    - the only thing I managed was to select all the clips, create a multi-camera sequence and open that in a timeline format (everything is synced up, but each individual clip is on a different track, so I have 61 video layers basically instead of 2)
    I've asked lots of people, red tens of topics, watched lots of tutorial videos, none seemed to answare my question
    - I know there is the Multi Camera Monitor, but that option is designe for editing and synching clips when there is 1 long clip / camera, and where you actually watch the entire recording and do the editing real time, which is not my case.
    - Some sugested me to use plural eyes, but I don't see any point in using andio based synchronization if I have excelent timecode.
    - I also need it done the way I described because for me it;s more manageble that way, I can edit it faster, and I already know what to look for, so it;s again nonesence to use the multicam feature.
    The bottom line is that I am looking for something similar to pluraleyes (when you import everything in one timeline) and use the audio info to sync it, but in this case I would use the embeded timecode.
    I've red a post where someone mentioned that in other editors its just select all / sync / done, so I can't believe it;s that complicated in Premiere.

    There are currently better sync features in the works!
    I know your frustration. For a similar and more in-depth discussion, see another thread I posted in here: Batch syncing audio and video using timecode
    Unfortunately in CS6 (what I currently use)  it creates a separate track for each clip, which can be a mess if you have hundreds of clips. The best way I have found to make things easier is to create a separate TC synced multi-cam sequence for each individual cameras footage.  For example, I follow the same steps you did for each of my cameras footage independently so that I have a TC synced sequence for camera A, a TC sequence for camera B, etc. Then you can select all the footage of each sequence, nest it, and copy each nest into a master sequence to work with. What you end up with is a single clip for each camera. MUCH easier to work with!  To keep track of where clips start and/or end in the nested sequences you can go into your original sequence and place a marker (shortcut "M") at each clip. These markers then show up in your Mastertimeline clips for reference.
    I know things could be easier, but this is currently the best option I know of. I already put in a feature request and was told by the Engineering Manager of Premiere Pro that new sync features were in the works. (see thread link above)
    Hope that helps!
    ...and for the record, here is my TC sync process:
    SELECT ALL clips you wish to sync from your Project Tab/Window.
    RIGHT-CLICK and SELECT "Create Multi-camera Source Sequence..." In CS6 it is the next-to-last option in your popup window.
    A dialogue box will appear. For the Synchronize Point, SELECT the box that says "Timecode" and UN-CHECK "Ignore Hours"
    You will now see a new multi-cam sequence in your Project Tab/Window.
    RIGHT-CLICKyour new multi-cam sequence and SELECT "Open in Timeline"

  • I can,t open raw files in Bridge/Photoshop CS5 from my Canon Eos 6D. I succeeded in transfering from my camera using Bidge

    I need help

    Which version of Camera Raw do you use (Photoshop > About Plug-In > Camera Raw) and which one is needed for that camera?
    Camera Raw plug-in | Supported cameras

  • Video Streaming from multiple camera to cell phone.

    I have about 5 webcams on a network in a different city.  One of these webcams I have been successful at setting up live video streaming to my cell phone. However when I tried to setup and view a second camera (same model), but  I cannot get it to successfully load and view. The second camera has a different access code also.
    Any Suggestions?

    Hi,
    Camera are WVC54GCA
    Router is a WRT300N.
    Like I stated earlier, one of these cams I can stream fine to my backberry storm,(Port 554 is forward to the ip address of the camera) but can't seem to configure the other for cell phone viewing.
    All cameras can be viewed via http via computers.

  • Image from a camera using a video converter to USB

    I tring to capture in my LabView app the alive image of a camera that is transmitted to a Tv tuner. I´m using a video  converter to USB (PC) I don´t need to process the image I just want to see the image of the camera alive.
    When I use a Microsoft LifeCam (usb) conected directely to the usb port I can see the image in my app.
    When I use Windows Movie Maker to see the image of my remote camera I can see the image alive.
    But, when I use my app with the remote camera it doesn´t work. I can´t see the image.
    My app is is attached bellow. As you can see I´m usig Imaqdx and LabView Fall 2011.
    Someone could help me?
    Thanks in a advance.
    Celia
    Attachments:
    CamTuner.vi ‏43 KB

    Dear Christian,
    I don´t know if my device is directshow compatible. May be not, because I tried to see the image using NI Measurement & Automation and I couldn't, besides the device appears in NI-Imaq devices list.
    But before this Labview app I made the one that is attached, using labview 8.6 and Imaq for USB. It woked right but because of the property page object every time the app ran a window was open and no matter was checked ok or cancel it worked in the same way. I thought using Imaqdx objects I didn't have this undesirable window. Do you know why it worked using Imaq for USB objects and it didn't using Imaqdx objects?
    Thanks in advance.
    Celia
    Attachments:
    CamImaqUSB.vi ‏43 KB

  • Can i take photo from wireless camera using labview?

    my project is fire fighting robot it detect fire using camera so can i use wireless camera when using labview or not?and if yes, how can i do that?

    Hi khaledyr,
    yes it's possible, but the effort to realize it depends on the camera model. Do you already know the camera type you will use for it?
    Mike

  • How to acess a PTC camera video stream from DVR card/PCI-slot

    I have a security camera which i connected to PC using PCISLOT/DVR Card.
    My requirement is to get the video stream from this camera and show in my program using java
    if it is possible using java and how to do this.
    Thanks in advance

    Believe it or not, this isn't really a Java question. You should begin by looking around your camera manufacturer's website for Java APIs, then their forums if they have any, contacting support and so on. Hoping that a general Java community will know exactly what is required here is a bit pie-in-the-sky.

Maybe you are looking for

  • Socket puzzle...

    1. Socket sock = new Socket(); InputStream in = sock.getInputStream(); byte[] b = new byte[1024]; int getLen = in.read(b); Why the getLen had never return -1 when the end of the stream is reached as Java 1.3 API said.Instead of that, the program is b

  • Named Query problem

    Hi, I have a new Query proplem: Following named Query doesn't work. <?xml version="1.0"?> <jdoquery> <query name="findByArticleId"> select from salt.domain.orderservice.entity.TestOrder where testOrderPositions.contains(testOrderPosition) && testOrde

  • Custom header reading of bounce mail

    Hi, When I send a mail to invalid mail address on gmail server, form the bounce mail able to read the custom headers using javax.mail api. But when I send mail to invalid user on MS Exchange server, from the bounce mail I got, not able to read the cu

  • I am unable to open Logic Pro because it keeps quiting

    This is the message that I keep getting. Logic files were opening yesterday. I haven't changed a thing. Any ideas

  • User manual SAP integration with BO

    Hi Can i get user manual with SAP-BI with BO for web intelligence query as web servive xcelsius voyager crystal reports? authorizations