rtsp with set-top-box (possible bug)

About encoding, codec settings, muxers and filter usage
keppis
New Cone
New Cone
Posts: 2
Joined: 30 Aug 2006 16:23

rtsp with set-top-box (possible bug)

Postby keppis » 30 Aug 2006 17:12

I tried to stream rtsp content into Kreatel ip-set-top-box, first I started vlc:

Code: Select all

vlc --intf telnet -vvvv
then created vod content from telnet-interface:

Code: Select all

Welcome, Master > new test vod > setup test mux mp2t input file.mpg enabled >
Then I opened rtsp://hostname/test on set-top-box, no video.
I cheched the output of vlc and noticed that rtsp-module informed me that client_port should be 4431, later on sout-module ignores that port and tries to send stream to corrent client_ip, but on port 0 and also port 1234.

Code: Select all

[00000253] vod_rtsp private debug: created RTSP url: /test [00000253] vod_rtsp private debug: media has 1 declared ES [00000253] vod_rtsp private debug: - ES mp2t (/test/trackID=0) [00000256] main http server debug: Connection from xx.xx.xx.xx [00000253] vod_rtsp private debug: RtspCallback query: type=7 [00000253] vod_rtsp private debug: RtspCallback query: type=8 [00000253] vod_rtsp private debug: HTTPD_MSG_SETUP: transport=MP2T/H2221/UDP;unicast;client_port=4431 [00000253] vod_rtsp private debug: HTTPD_MSG_SETUP: unicast ip=xx.xx.xx.xx port=4431 [00000253] vod_rtsp private debug: new session: 1804289383, connections: 0 [00000253] vod_rtsp private debug: RtspCallback query: type=9 [00000253] vod_rtsp private debug: HTTPD_MSG_PLAY for session: 1804289383 [00000308] [Media: test] main input debug: waiting for thread completion [00000309] [Media: test] main stream output debug: stream=`std' [00000310] [Media: test] main private debug: looking for sout stream module: 1 candidate [00000308] [Media: test] main input debug: thread 3009399728 (input) created at priority 0 (input/input.c:264) [00000310] [Media: test] main private debug: set sout option: sout-standard-access to udp [00000310] [Media: test] main private debug: set sout option: sout-standard-dst to xx.xx.xx.xx:0 [00000310] [Media: test] main private debug: set sout option: sout-standard-mux to ts [00000310] [Media: test] stream_out_standard private debug: creating `udp/ts://xx.xx.xx.xx:0' [00000310] [Media: test] stream_out_standard private debug: extension is 243:0 [00000310] [Media: test] stream_out_standard private debug: extension -> mux=(null) [00000310] [Media: test] stream_out_standard private debug: using `udp/ts://xx.xx.xx.xx:0' [00000312] [Media: test] main private debug: looking for sout access module: 1 candidate [00000312] [Media: test] main private debug: net: connecting to xx.xx.xx.xx port 1234 [00000314] [Media: test] main private debug: thread 2998909872 (sout write thread) created at priority 0 (udp.c:268) [00000312] [Media: test] access_output_udp private debug: udp access output opened(xx.xx.xx.xx:1234) [00000312] [Media: test] main private debug: using sout access module "access_output_udp" [00000310] [Media: test] stream_out_standard private debug: access opened [00000315] [Media: test] main private debug: looking for sout mux module: 1 candidate ... ... [00000314] [Media: test] access_output_udp private warning: send error: Connection refused [00000314] [Media: test] access_output_udp private warning: send error: Connection refused [00000314] [Media: test] access_output_udp private warning: send error: Connection refused
After this I left rtsp-client on set-top-box open and started separate vlc instanse sending the same video as raw ts-udp on the requested client port and the client correctly viewed the picture.

I am not so familiar on vlc-source that I could find the mistake. Can anyone help me on this matter.

stakado
New Cone
New Cone
Posts: 4
Joined: 08 Sep 2006 15:28
Location: Obninsk, Russian Federation
Contact:

Postby stakado » 12 Sep 2006 13:23

I have the same problem! I've tried to make vod server using vlc. Client is STB Kreatel 1510.
start cmd:
vlc -vvv --color -I telnet --telnet-password admin --rtsp-host 192.168.112.1:5554
I've made tcpdump and saw there this:
...
SETUP rtsp://192.168.112.1:5554/clip RTSP/1.0..User-Agent: Kreatel_IP-STB..Transport: MP2T/H2221/UDP;unicast;client_port=11784x-mayNotify:.CSeq: 3....
...
So, STB waits video-stream on 11784
client_port=11784
But vlc streams on 1234 and 1236 port (I saw this in logs of iptables).

Why does vlc streams on 1234/1236 port but not on 11784(like requested client) or 5554 (like is written by me in command line)?

Thanks for any answer.

stakado
New Cone
New Cone
Posts: 4
Joined: 08 Sep 2006 15:28
Location: Obninsk, Russian Federation
Contact:

Postby stakado » 12 Sep 2006 13:32

I've checked vlc log and saw there this:
...
[00000340] [Media: clip] main stream output debug: stream=`rtp'
[00000341] [Media: clip] main private debug: looking for sout stream module: 1 candidate
[00000341] [Media: clip] main private debug: set sout option: sout-rtp-dst to 192.168.113.1
[00000341] [Media: clip] main private debug: set sout option: sout-rtp-port-video to 0
[00000341] [Media: clip] main private debug: set sout option: sout-rtp-port-audio to 0
[00000341] [Media: clip] stream_out_rtp private error: audio and video port cannot be the same
[00000341] [Media: clip] main private debug: using sout stream module "stream_out_rtp"
...
Why does video-port and audio-port are the same and equals 0?
Is there some bug in "stream_out_rtp" module? Or it's just I've misconfigured vlc or Kreatel?

Please, answer...


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 18 guests