[FFmpeg-user] ffplay can't play RTSP stream over internet (only inside LAN)
Dâniel Fraga
fragabr at gmail.com
Mon Jan 7 21:46:29 CET 2013
I have some IP cameras and inside my network I can play the
RTSP stream fine. But if I try to do the same over internet, it doesn't
work. Both routers are configured correctly and I can access those IP cameras
using other software (like IP Cam Viewer for Android):
I asked it because I have the following setup:
COMPUTER --- LAN 1 --- INTERNET --- LAN 2 --- IP CAMERA
Here it's the log (analyzeduration and probesize option didn't help):
ffplay started on 2013-01-07 at 18:20:54
Report written to "ffplay-20130107-182054.log"
Command line:
/usr/local/bin/ffplay rtsp://user:password@xxxxxx.xxxxxx.com:5587/11 -report
ffplay version N-48068-ga85132d Copyright (c) 2003-2012 the FFmpeg developers
built on Dec 21 2012 05:11:35 with gcc 4.7.2 (GCC)
configuration: --enable-shared --extra-ldflags=-L/usr/local/lib64 --enable-gpl --enable-postproc --enable-x11grab --enable-libvpx --enable-libx264 --enable-libvorbis --enable-nonfree --enable-libfaac --enable-libmp3lame --enable-libbluray --disable-ffserver
libavutil 52. 12.100 / 52. 12.100
libavcodec 54. 81.100 / 54. 81.100
libavformat 54. 49.102 / 54. 49.102
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 29.100 / 3. 29.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[rtsp @ 0x7f3cdc000920] SDP:
v=0
o=StreamingServer 3331435948 1116907222000 IN IP4 192.168.1.125
s=\11
c=IN IP4 0.0.0.0
b=AS:2056
t=0 0
a=control:*
m=video 0 RTP/AVP 96
b=AS:2048
a=control:trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0LgH9oBQBbE,aM4wpIA=
a=framesize:96 1280-720
[rtsp @ 0x7f3cdc000920] video codec set to: h264
[NULL @ 0x7f3cdc00ae80] RTP Packetization Mode: 1
[NULL @ 0x7f3cdc00ae80] Extradata set to 0x7f3cdc0050a0 (size: 22)!
[rtsp @ 0x7f3cdc000920] hello state=0
[rtsp @ 0x7f3cdc000920] UDP timeout, retrying with TCP
[rtsp @ 0x7f3cdc000920] Could not find codec parameters for stream 0 (Video: h264, 1280x720): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[rtsp @ 0x7f3cdc000920] Estimating duration from bitrate, this may be
inaccurate
Thanks.
--
Linux 3.7.0: Terrified Chipmunk
http://www.youtube.com/DanielFragaBR
http://www.libertarios.org.br
More information about the ffmpeg-user
mailing list