Discussion:
[MPlayer-users] Trying to use -rtsp-stream-over-tcp
Steve
2011-09-12 13:31:01 UTC
Permalink
Hi All,

I'm doing some tests to be able to stream RTSP through my firewall.

Right now, my firewall is Off.

The typical command works "mplayer
rtsp://192.168.1.200/nphMpeg4/nil-640x480 -user
user -passwd password -cache 8192 -fps 30"

But, if I try to add the option "-rtsp -stream-over-tcp" to the above, the
stream does not play and I get this:

=================================================
MPlayer dev-SVN-r33996-4.5-openSUSE Linux 11.4 (i686)-Packman (C)
2000-2011 MPlayer Team

Playing rtsp://192.168.1.200/nphMpeg4/nil-640x480.
Resolving 192.168.1.200 for AF_INET6...

Couldn't resolve name for AF_INET6: 192.168.1.200
Connecting to server 192.168.1.200[192.168.1.200]: 554...

librtsp: server responds: 'RTSP/1.0 400 Bad Request'
STREAM_LIVE555, URL: rtsp://192.168.1.200/nphMpeg4/nil-640x480
This stream is non-cacheable

Stream not seekable!
file format detected.
Initiated "video/MP4V-ES" RTP subsession on port 33238

Exiting... (End of file)
========================================

I don't quite understand, since the firewall is Off, why would streaming
over tcp option not work?
All ports opened... What could be causing this?

Any suggestions?

Cheers,
Steve
Steve
2011-09-12 13:42:23 UTC
Permalink
Hi All,

Actually, using the "-rtsp-stream-over-tcp" or not, gives the same message,
the difference is, at the end, where it says:
==================
Initiated "video/MP4V-ES" RTP subsession on port 33238
==================

If not using the "-rtsp-stream-over-tcp", then the stream starts to play
after this line.
If using the "-rtsp-stream-over-tcp", then the stream does not start to play
after this line.

Cheers,
Steve
Post by Steve
Hi All,
I'm doing some tests to be able to stream RTSP through my firewall.
Right now, my firewall is Off.
The typical command works "mplayer rtsp://
192.168.1.200/nphMpeg4/nil-640x480 -user user -passwd password -cache 8192
-fps 30"
But, if I try to add the option "-rtsp -stream-over-tcp" to the above, the
=================================================
MPlayer dev-SVN-r33996-4.5-openSUSE Linux 11.4 (i686)-Packman (C)
2000-2011 MPlayer Team
Playing rtsp://192.168.1.200/nphMpeg4/nil-640x480.
Resolving 192.168.1.200 for AF_INET6...
Couldn't resolve name for AF_INET6: 192.168.1.200
Connecting to server 192.168.1.200[192.168.1.200]: 554...
librtsp: server responds: 'RTSP/1.0 400 Bad Request'
STREAM_LIVE555, URL: rtsp://192.168.1.200/nphMpeg4/nil-640x480
This stream is non-cacheable
Stream not seekable!
file format detected.
Initiated "video/MP4V-ES" RTP subsession on port 33238
Exiting... (End of file)
========================================
I don't quite understand, since the firewall is Off, why would streaming
over tcp option not work?
All ports opened... What could be causing this?
Any suggestions?
Cheers,
Steve
Steve
2011-09-12 16:11:50 UTC
Permalink
Hi All,

Found a better way to make it work. Used the magical "-rtsp-port" to always
stream to a specific UDP Port that I can then leave open through firewall.

Firewall Ports Needed to Open:
- UDP Port 30000 (use option "-rtsp-port 30000" to force MPlayer to always
use this port)
- UDP Port 15947 (no idea why)

This was for a Panasonic IP Camera RTSP Stream through a firewall, in case
anyone is in the same boat.
Example:
mplayer rtsp://192.168.1.200/nphMpeg4/nil-640x480 -user user -passwd
password -cache 8192 -fps 30 -rtsp-port 30000

Cheers,
Steve
Post by Steve
Hi All,
I'm doing some tests to be able to stream RTSP through my firewall.
Right now, my firewall is Off.
The typical command works "mplayer rtsp://
192.168.1.200/nphMpeg4/nil-640x480 -user user -passwd password -cache 8192
-fps 30"
But, if I try to add the option "-rtsp -stream-over-tcp" to the above, the
=================================================
MPlayer dev-SVN-r33996-4.5-openSUSE Linux 11.4 (i686)-Packman (C)
2000-2011 MPlayer Team
Playing rtsp://192.168.1.200/nphMpeg4/nil-640x480.
Resolving 192.168.1.200 for AF_INET6...
Couldn't resolve name for AF_INET6: 192.168.1.200
Connecting to server 192.168.1.200[192.168.1.200]: 554...
librtsp: server responds: 'RTSP/1.0 400 Bad Request'
STREAM_LIVE555, URL: rtsp://192.168.1.200/nphMpeg4/nil-640x480
This stream is non-cacheable
Stream not seekable!
file format detected.
Initiated "video/MP4V-ES" RTP subsession on port 33238
Exiting... (End of file)
========================================
I don't quite understand, since the firewall is Off, why would streaming
over tcp option not work?
All ports opened... What could be causing this?
Any suggestions?
Cheers,
Steve
Loading...