Motion - Support Question 2014x 10x 21x 102158

RTSP motion.conf syntax

Question

I have the current trunk which supports RTSP, but I haven't been able to interface with my RSTP IP Cam. In motion.conf I'm using

netcam_url rtsp://192.168.1.32:554/user=admin&=&channel=1&stream=0.sdp?

which throws the following error (at this time the ip cam does not have a password):

[1] [CRT] [NET] netcam_start: Invalid netcam_url (rtsp://192.168.1.32:554/user=admin&=&channel=1&stream=0.sdp?)

Am I close on the syntax, or is it suppose to be something completely different?


Environment

Motion version: current trunk (10/20/14)
ffmpeg version:  
Libraries: ffmpeg, mysql, postgresql
Server OS:  
-- AliceAnder - 21 Oct 2014

Answer

That format looks like it would work so you are probably really close. Unfortunately, every camera seems to have its own particular nuances of how to grab the steam that you'll have to find in the manual, manufacturer website or other users. I've seen variations like rtsp://192.168.1.32:554/user=admin&password=&channel=1&stream=1.sdp? or rtsp://192.168.1.32:554/streaming/channels/1 If you want, you can also use VLC, avplay or ffplay. The syntax for those applications is the same as what motion wants on the config line.

-- MrDave

URL syntaxis is wrong. The "?" symbol must come prior HTTP params, like this: rtsp://server/?para1=val1&param2=val2. So the valid URL looks like this:

netcam_url rtsp://192.168.1.32:554/?user=admin&channel=1&stream=0.sdp

-- TosiaraT - 14 Mar 2015
Topic revision: r3 - 14 Mar 2015, TosiaraT
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.