Forcing the trackID

About encoding, codec settings, muxers and filter usage
heruan
New Cone
New Cone
Posts: 4
Joined: 07 Mar 2009 18:42

Forcing the trackID

Postby heruan » 07 Mar 2009 18:52

I have an IP Camera (Vivotek 7142) which offers a RTSP stream (rtsp://camera-ip/live.sdp) in MPEG4. I can watch this stream without problems with VLC. Then, I have a Grandstream GXV-3000 phone, with an LCD screen and the possibility to watch an H.264 RTSP stream. To watch the camera stream on the phone LCD screen, I set up a server PC with this command:

Code: Select all

$ cvlc rtsp://camera-ip/live2.sdp --sout '#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=rtp{dst=server-ip,port=1234,sdp=rtsp://server-ip:8554/live.sdp}}'
From another VLC instance I can see that stream correctly on rtsp://server-ip:8554/live.sdp, but NOT from the phone. Debugging with tcpdump, I noticed the phone's request is rtsp://server-ip/live.sdp/trackID=1 while VLC offers a trackID=0, and so VLC replies with a 404 not found error.

So, how can I force VLC to offer a trackID=1 instead of 0?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Forcing the trackID

Postby Rémi Denis-Courmont » 07 Mar 2009 19:34

You can't.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

heruan
New Cone
New Cone
Posts: 4
Joined: 07 Mar 2009 18:42

Re: Forcing the trackID

Postby heruan » 07 Mar 2009 20:13

Hm... And what does that trackID stand for? Can I generate a fake trackID=0 to increase the index and place the real stream on trackID=1?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Forcing the trackID

Postby Rémi Denis-Courmont » 08 Mar 2009 08:18

trackID is an arbitrary URL that the server can set however it wants, consistent with the SDP control parameters.

Other RTSP servers don't even use that syntax at all. Anything that assumes trackID=1 is simply plain broken.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests

cron