How do I stream Video?

I have a D_DigitalSecurityCamera IP camera, by what it says from the device_file.
Camera came from a ADT Pulse system.
How do I set it up to stream video,dont care about recording at this point.
As of right now it just clicks a picture now and then.

I suppose you have UI5. In this case streaming won’t work unless the camera is detected by Vera and installed automatically. If you see the VideoURL variable on the Advanced tab, then streaming is very likely to work. Otherwise it won’t work. The VideoURL variable is created only if the camera is installed automatically by Vera.

There’s also the case in which the camera is installed automatically but the VideoURL variable is not created, which means that the camera doesn’t support RTSP. Cameras must support RTSP for streaming to work on UI5.

Is this working with Foscam camera?

I do have a VideoURL,vera automaticly found the camera the (directstreamURL) says( /img/video.mjpeg) and the URL says (img/snapshot.cgi?size=640x480)…of course means it takes a snapshot but it still will not stream?

Do a backup of the current VideoURLs value, then replace it with this value:

rtsp,0,mpeg4,,m,640,480,qai:img/media.sav:http,0,mjpeg,,m,640,480,w:img/video.mjpeg:

Hello mcvflorin,
I have in the advanced tab "DirectStreamingURL"field, so my Vera should support an address like: rtsp://ipmycam:554/11 ? I tried, but no success. Any idea how to proceed? In VLC 2 it works.

Thanks, chris

Hello Chris,

For streaming to work you need the VideoURLs variable. This variable has this structure:

Info1:URL1:Info2:URL2:

The Info parameters are:

[ol][li]The protocol: can be rtsp or http[/li]
[li]HTTP authentication required: 1 = yes, send the username and password in the request, 0 = no, don’t send the username and password[/li]
[li]Video codec: mpeg4 | mjpeg | etc.[/li]
[li]Audio codec: blank = no audio[/li]
[li]Resolution: t = thumbnail, s = small, m = medium, l = large[/li]
[li]Width: 640[/li]
[li]Height: 480[/li]
[li]Players: q|a|i|w, a string of characters indicating known good players. q = Quicktime plugin, a = Android, i = iPhone, w = normal web browser.[/li][/ol]

The URL is the streaming URL compatible with the players specified in Info.

Currently only the protocol, players and URL parameters are used. The rest of the parameters are ignored.

VideoURLs example for VistaCam:

rtsp,0,mpeg4,,m,640,480,qai:img/media.sav:http,0,mjpeg,,m,640,480,w:img/video.mjpeg:

my logitech video camera supports streaming via rtsp, but the camera wasn’t automatically detected and added by vera in ui5. I manually added the camera using the workaround. is there anyway that i can the video urls parameter to the camera. I am using the generic ip camera plugin.

Yes, in the camera’s Advanced tab scroll down until you find the New service field and add the following:

[ul][li]In the New service field enter urn:micasaverde-com:serviceId:Camera1[/li]
[li]In the New variable field enter VideoURLs[/li]
[li]In the New value field enter the value of the variable.[/li][/ul]

Click Add then reload Luup.

thanks mcvflorin. i was able to input the parameters and i cut and pasted the example that you provided for vistacam but i did not get an image. can you tell me what the different options there are for the info values. i know the camera is streaming and working fine because I can see the image in the webcommander software. i attached screen shots of the advanced tab.

according to logitech the rtsp player is configured for mpeg4 and the port is 554 the url should be /HighResolutionVideo. This works with players like quicktime and vlc.

The options are explained in my 27th April post. Please let me know what’s not clear so I can try to improve the explanation.

Sorry for not being more specific. I am looking for information on what are the parameters or syntax in terms of options that you can specify for the video urls variable. I tried putting the url in the direct streaming variable for the path to the camera. That doesn’t seem to work. I tried also modifying the syntax of the videourls to be specific to my camera. the only documentation that I have for the camera states that url for streaming is /HighResolutionVideo and the port is 554.

this is what i have.

VideoURLs
rtsp,0,mpeg4,m,640,480,qai:LowResolutionVideo:http,0,mjpeg,m,640,480,w:LowResolutionVideo

DirectStreamingURL
LowResolutionVideo?Resolution=640x480&Quality=Clarity

According to your VideoURLs variable it means that I could view the video from your camera using 2 URLs:

  1. [tt]rtsp://<Camera_IP>/LowResolutionVideo[/tt]
    The video returned using this URL would be in mpeg4 format.

  2. [tt]http://<Camera_Ip>/LowResolutionVideo[/tt]
    The video returned using this URL would be in mjpeg format.

Is this correct?

i don’t believe you can use http. the camera has two urls for video only supported via rtsp.

rtsp://<Camera_IP>/LowResolutionVideo
The video returned using this URL would be in mpeg4 format.

rtsp://<Camera_IP>/HighResolutionVideo
The video returned using this URL would be in mpeg4 format.

I don’t think the camera supports mjpeg only mpeg4

It this case the VideoURLs variable would look like this:

rtsp,0,mpeg4,,m,640,480,qai:LowResolutionVideo:rtsp,0,mpeg4,,m,640,480,w:LowResolutionVideo:

But I don’t think you will be able to see the image in the web browser (at least on Windows), because they don’t support the RTSP protocol.

i tried that syntax as well. the camera doesn’t support connecting to it via web browser. it only supports rtsp for streaming over port 554. if quicktime is supported shouldn’t it support viewing when i click the alternate browser?

I think the UI selects the parameters based on the platform, and not on the player, so even if the player is QuickTime, if it’s running inside a web browser on Windows/Mac/Linux, it selects the URL and parameters associated with w. To be sure, I’ll ask the developer about this tomorrow.

florin. should i try deleting and loading the foscam plugin 2.2 that you developed.

I am getting an error message from vera stating failed to configure camera. when Lua starts. I’ve also attached the error message the camera displays when I click the stream button.