LINUX.ORG.RU

VLC. Получение rtsp потока

 , , , ,


0

1

день добрый. centos 6.5, vlc 1.1.13 Пытаюсь заставить его ретранслировать rtsp поток с ip-камеры dlink DCS2103, но получаю в ответ...

sudo -u vlcuser cvlc -Idummy -vvv rtsp://192.168.0.202/live1.sdp --rtsp-user=admin --rtsp-pwd=admin0 --sout "#transcode {vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=192.168.0.2, port=1554,sdp=rtsp://192.168.0.2:1554/test}"
VLC media player 1.1.13 The Luggage (revision exported)
[0x89e98fc] main libvlc debug: VLC media player - 1.1.13 The Luggage
[0x89e98fc] main libvlc debug: Copyright © 1996-2011 the VideoLAN team
[0x89e98fc] main libvlc debug: revision exported
[0x89e98fc] main libvlc debug: configured with ./configure  '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--target=i686-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-rpath' '--disable-nls' '--disable-mozilla' '--disable-static' '--enable-aa' '--enable-alsa' '--enable-caca' '--enable-dirac' '--enable-dvbpsi' '--without-dvdcss' '--enable-dvdread' '--enable-faad' '--enable-fbosd' '--enable-ffmpeg' '--with-ffmpeg-a52' '--with-ffmpeg-faac' '--with-ffmpeg-mp3lame' '--enable-libamr-nb' '--enable-libamr-wb' '--with-ffmpeg-ogg' '--with-ffmpeg-theora' '--with-ffmpeg-vorbis' '--with--ffmpeg-zlib' '--enable-flac' '--enable-gnomevfs' '--enable-live555' '--enable-loader' '--enable-mozilla' '--enable-ncurses' '--enable-opencv' '--enable-portaudio' '--enable-pulse' '--enable-pvr' '--enable-real' '--enable-realrtsp' '--enable-shout' '--enable-snapshot' '--enable-svg' '--enable-svgalib' '--enable-switcher' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-v4l' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'target_alias=i686-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' 'LDFLAGS=-L/usr/X11R6/lib' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig'
[0x89e98fc] main libvlc debug: translation test: code is "C"
[0x89e98fc] main libvlc debug: checking plugin modules
[0x89e98fc] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04041e-1e8.dat
[0x89e98fc] main libvlc warning: cannot read /usr/lib/vlc/plugins/plugins-04041e-1e8.dat (No such file or directory)
[0x89e98fc] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x89e98fc] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04041e-1e8.dat
[0x89e98fc] main libvlc debug: module bank initialized (409 modules)
[0x89e98fc] main libvlc debug: opening config file (/home/vlcuser/.config/vlc/vlcrc)
[0x89e98fc] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 FPU
[0x89e98fc] main libvlc debug: looking for memcpy module: 3 candidates
[0x89e98fc] main libvlc debug: using memcpy module "memcpymmxext"
[0x8b2e464] main input debug: Creating an input for 'Media Library'
[0x8b2e464] main input debug: Input is a meta file: disabling unneeded options
[0x8b2e464] main input debug: using timeshift granularity of 50 MiB
[0x8b2e464] main input debug: using timeshift path '/tmp'
[0x8b2e464] main input debug: `file/xspf-open:///home/vlcuser/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/vlcuser/.local/share/vlc/ml.xspf'
[0x8b2e464] main input debug: creating demux: access='file' demux='xspf-open' path='/home/vlcuser/.local/share/vlc/ml.xspf'
[0x8b2d07c] main demux debug: looking for access_demux module: 2 candidates
[0x8b2d07c] main demux debug: no access_demux module matching "file" could be loaded
[0x8b2d07c] main demux debug: TIMER module_need() : 0.159 ms - Total 0.159 ms / 1 intvls (Avg 0.159 ms)
[0x8b2e464] main input debug: creating access 'file' path='/home/vlcuser/.local/share/vlc/ml.xspf'
[0x8b2d05c] main access debug: looking for access module: 2 candidates
[0x8b2d05c] filesystem access debug: opening file `/home/vlcuser/.local/share/vlc/ml.xspf'
[0x8b2d05c] main access debug: using access module "filesystem"
[0x8b2d05c] main access debug: TIMER module_need() : 0.163 ms - Total 0.163 ms / 1 intvls (Avg 0.163 ms)
[0x8b2d4bc] main stream debug: Using AStream*Stream
[0x8b2d4bc] main stream debug: pre buffering
[0x8b2d4bc] main stream debug: received first data after 0 ms
[0x8b2d4bc] main stream debug: pre-buffering done 296 bytes in 0s - 6569 KiB/s
[0x8b2d664] main stream debug: looking for stream_filter module: 5 candidates
[0x8b2d664] main stream debug: no stream_filter module matching "any" could be loaded
[0x8b2d664] main stream debug: TIMER module_need() : 0.113 ms - Total 0.113 ms / 1 intvls (Avg 0.113 ms)
[0x8b2d664] main stream debug: looking for stream_filter module: 1 candidate
[0x8b2d664] main stream debug: using stream_filter module "stream_filter_record"
[0x8b2d664] main stream debug: TIMER module_need() : 0.107 ms - Total 0.107 ms / 1 intvls (Avg 0.107 ms)
[0x8b2e464] main input debug: creating demux: access='file' demux='xspf-open' path='/home/vlcuser/.local/share/vlc/ml.xspf'
[0x8b2d884] main demux debug: looking for demux module: 1 candidate
[0x8b2d884] playlist demux debug: using XSPF playlist reader
[0x8b2d884] main demux debug: using demux module "playlist"
[0x8b2d884] main demux debug: TIMER module_need() : 0.180 ms - Total 0.180 ms / 1 intvls (Avg 0.180 ms)
[0x8b288fc] main demux meta debug: looking for meta reader module: 2 candidates
[0x8b288fc] lua demux meta debug: Trying Lua scripts in /home/vlcuser/.local/share/vlc/lua/meta/reader
[0x8b288fc] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x8b288fc] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x8b288fc] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x8b288fc] main demux meta debug: no meta reader module matching "any" could be loaded
[0x8b288fc] main demux meta debug: TIMER module_need() : 0.979 ms - Total 0.979 ms / 1 intvls (Avg 0.979 ms)
[0x8b2e464] main input debug: `file/xspf-open:///home/vlcuser/.local/share/vlc/ml.xspf' successfully opened
[0x8a0ed7c] main xml debug: looking for xml module: 2 candidates
[0x8a0ed7c] main xml debug: using xml module "xml"
[0x8a0ed7c] main xml debug: TIMER module_need() : 0.207 ms - Total 0.207 ms / 1 intvls (Avg 0.207 ms)
Warning: call to srand(1417545003)
Warning: call to rand()
[0x8b2d884] playlist demux debug: parsed 0 tracks successfully
[0x8a0ed7c] main xml debug: removing module "xml"
[0x8b2e464] main input debug: EOF reached
[0x8b2d884] main demux debug: removing module "playlist"
[0x8b2d664] main stream debug: removing module "stream_filter_record"
[0x8b2d05c] main access debug: removing module "filesystem"
[0x8b2e464] main input debug: TIMER input launching for 'Media Library' : 2.515 ms - Total 2.515 ms / 1 intvls (Avg 2.515 ms)
[0x8b2d884] main interface debug: looking for interface module: 1 candidate
[0x8b2d884] main interface debug: using interface module "hotkeys"
[0x8b2d884] main interface debug: TIMER module_need() : 0.138 ms - Total 0.138 ms / 1 intvls (Avg 0.138 ms)
[0x8b2cccc] main interface debug: looking for interface module: 1 candidate
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x8b2cccc] inhibit interface error: Failed to connect to the D-Bus session daemon: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

[0x8b2cccc] main interface debug: no interface module matching "inhibit,none" could be loaded
[0x8b2cccc] main interface debug: TIMER module_need() : 6.910 ms - Total 6.910 ms / 1 intvls (Avg 6.910 ms)
[0x8b2cccc] main interface error: no suitable interface module
[0x8b7b6fc] main playlist debug: Activated
[0x8b7b6fc] main playlist debug: adding item `rtsp://192.168.0.202/live1.sdp' ( rtsp://192.168.0.202/live1.sdp )
[0x8b7b6fc] main playlist debug: rebuilding array of current - root Playlist
[0x8b7b6fc] main playlist debug: rebuild done - 0 items, index -1
[0x8b2f2cc] main interface debug: looking for interface module: 1 candidate
[0x8b2f2cc] main interface debug: using interface module "signals"
[0x8b2f2cc] main interface debug: TIMER module_need() : 0.682 ms - Total 0.682 ms / 1 intvls (Avg 0.682 ms)
[0x8b30774] main interface debug: looking for interface module: 1 candidate
[0x8b30774] main interface debug: no interface module matching "globalhotkeys,none" could be loaded
[0x8b30774] main interface debug: TIMER module_need() : 0.152 ms - Total 0.152 ms / 1 intvls (Avg 0.152 ms)
[0x8b30774] main interface error: no suitable interface module
[0x89e98fc] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x8b30774] main interface debug: looking for interface module: 1 candidate
[0x8b30774] dummy interface: using the dummy interface module...
[0x8b30774] main interface debug: using interface module "dummy"
[0x8b30774] main interface debug: TIMER module_need() : 0.141 ms - Total 0.141 ms / 1 intvls (Avg 0.141 ms)
[0x8b7b6fc] main playlist debug: processing request item null node Playlist skip 0
[0x8b7b6fc] main playlist debug: rebuilding array of current - root Playlist
[0x8b7b6fc] main playlist debug: rebuild done - 1 items, index -1
[0x8b7b6fc] main playlist debug: starting new item
[0x8b7b6fc] main playlist debug: creating new input thread
[0xb5e00604] main input debug: Creating an input for 'rtsp://192.168.0.202/live1.sdp'
[0xb5e00604] main input debug: thread (input) created at priority 10 (input/input.c:220)
[0xb5e00604] main input debug: thread started
[0xb5c008f4] main stream output debug: using sout chain=`transcode {vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=192.168.0.2, port=1554,sdp=rtsp://192.168.0.2:1554/test}'
[0xb5c008f4] main stream output debug: stream=`rtp'
[0xb5c00ce4] main stream out debug: looking for sout stream module: 1 candidate
[0xb5c00ce4] main stream out debug: set config option: sout-rtp-dst to 192.168.0.2
[0xb5c00ce4] main stream out debug: set config option: sout-rtp-port to 1554
[0xb5c00ce4] main stream out debug: set config option: sout-rtp-sdp to rtsp://192.168.0.2:1554/test
[0xb5c00ce4] stream_out_rtp stream out debug: RTSP stream: host 192.168.0.2 port 1554 at /test
[0xb5c00ce4] main stream out: creating httpd
[0xb5c00ce4] main stream out debug: net: listening to 192.168.0.2 port 1554
[0xb5c00ce4] main stream out debug: using sout stream module "stream_out_rtp"
[0xb5c00ce4] main stream out debug: TIMER module_need() : 0.679 ms - Total 0.679 ms / 1 intvls (Avg 0.679 ms)
[0xb5c008f4] main stream output debug: stream=`transcode'
[0xb5c014cc] main stream out debug: looking for sout stream module: 1 candidate
[0xb5c014cc] main stream out debug: set config option: sout-transcode-vcodec to h264
[0xb5c014cc] main stream out debug: set config option: sout-transcode-acodec to mpga
[0xb5c014cc] main stream out debug: set config option: sout-transcode-ab to 128
[0xb5c014cc] main stream out debug: set config option: sout-transcode-channels to 2
[0xb5c014cc] main stream out debug: set config option: sout-transcode-samplerate to 44100
[0xb5c014cc] stream_out_transcode stream out debug: codec audio=mpga 44100Hz 2 channels 128Kb/s
[0xb5c014cc] stream_out_transcode stream out debug: codec video=h264 0x0 scaling: 0.000000 0kb/s
[0xb5c014cc] main stream out debug: using sout stream module "stream_out_transcode"
[0xb5c014cc] main stream out debug: TIMER module_need() : 0.451 ms - Total 0.451 ms / 1 intvls (Avg 0.451 ms)
[0xb5e00604] main input debug: using timeshift granularity of 50 MiB
[0xb5e00604] main input debug: using timeshift path '/tmp'
[0xb5e00604] main input debug: `rtsp://192.168.0.202/live1.sdp' gives access `rtsp' demux `' path `192.168.0.202/live1.sdp'
[0xb5e00604] main input debug: creating demux: access='rtsp' demux='' path='192.168.0.202/live1.sdp'
[0xb5c02e34] main demux debug: looking for access_demux module: 1 candidate
Opening connection to 192.168.0.202, port 554...
...remote connection opened
Sending request: OPTIONS rtsp://192.168.0.202/live1.sdp RTSP/1.0
CSeq: 2
User-Agent: LibVLC/1.1.13 (LIVE555 Streaming Media v2012.02.04)


Received 152 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Date: Tue, Dec 02 2014 19:31:02 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER


Sending request: DESCRIBE rtsp://192.168.0.202/live1.sdp RTSP/1.0
CSeq: 3
User-Agent: LibVLC/1.1.13 (LIVE555 Streaming Media v2012.02.04)
Accept: application/sdp


Received 160 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 401 Unauthorized
CSeq: 3
Date: Tue, Dec 02 2014 19:31:02 GMT
WWW-Authenticate: Digest realm="DCS-2103", nonce="ecfa7a63250f6cae936d3b1bcbddf7f5"


Resending...
Sending request: DESCRIBE rtsp://192.168.0.202/live1.sdp RTSP/1.0
CSeq: 4
Authorization: Digest username="admin", realm="DCS-2103", nonce="ecfa7a63250f6cae936d3b1bcbddf7f5", uri="rtsp://192.168.0.202/live1.sdp", response="d6a2bc5e1d632ea1347c8d5a37d32bac"
User-Agent: LibVLC/1.1.13 (LIVE555 Streaming Media v2012.02.04)
Accept: application/sdp


Received 831 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 4
Date: Tue, Dec 02 2014 19:31:02 GMT
Content-Base: rtsp://192.168.0.202/live1.sdp/
Content-Type: application/sdp
Content-Length: 667

v=0
o=- 1408123617681700 1 IN IP4 192.168.0.202
s=RTSP/RTP stream 1 from DCS-2103
i=live1.sdp with v2.0
t=0 0
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:RTSP/RTP stream 1 from DCS-2103
a=x-qt-text-inf:live1.sdp
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:1500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgDLSpAAAAwHgAAAu4YEAABfXhAAAvrwr3vheEQjU,aO48sA==
a=control:track1
m=audio 0 RTP/AVP 97
c=IN IP4 0.0.0.0
b=AS:64
a=rtpmap:97 G726-32/8000
a=control:track2

[0xb5c02e34] live555 demux debug: setup start: 0.000000 stop:0.000000
[0xb5c02e34] live555 demux error: Nothing to play for rtsp://192.168.0.202/live1.sdp
[0xb5c02e34] main demux debug: no access_demux module matching "rtsp" could be loaded
[0xb5c02e34] main demux debug: TIMER module_need() : 17.684 ms - Total 17.684 ms / 1 intvls (Avg 17.684 ms)
[0xb5e00604] main input debug: creating access 'rtsp' path='192.168.0.202/live1.sdp'
[0xb5c0ac2c] main access debug: looking for access module: 1 candidate
[0xb5c0ac2c] main access debug: net: connecting to 192.168.0.202 port 554
[0xb5c0ac2c] main access debug: connection succeeded (socket = 9)
[0xb5c0ac2c] access_realrtsp access debug: rtsp connected
[0xb5c0ac2c] access_realrtsp access warning: only real/helix rtsp servers supported for now
[0xb5c0ac2c] main access debug: no access module matching "rtsp" could be loaded
[0xb5c0ac2c] main access debug: TIMER module_need() : 9.288 ms - Total 9.288 ms / 1 intvls (Avg 9.288 ms)
[0xb5c0ac2c] main access debug: waitpipe: object killed
[0xb5e00604] main input error: open of `rtsp://192.168.0.202/live1.sdp' failed: (null)
[0xb5e00604] main input error: Your input can't be opened
[0xb5e00604] main input error: VLC is unable to open the MRL 'rtsp://192.168.0.202/live1.sdp'. Check the log for details.
[0x8b7b6fc] main playlist debug: finished input
[0x8b7b6fc] main playlist debug: dead input
[0xb5e00604] main input debug: thread ended
[0xb5c008f4] main stream output debug: destroying useless sout
[0xb5c014cc] main stream out debug: destroying chain... (name=transcode)
[0xb5c014cc] main stream out debug: removing module "stream_out_transcode"
[0xb5c014cc] main stream out debug: destroying chain done
[0xb5c00ce4] main stream out debug: destroying chain... (name=rtp)
[0xb5c02934] main http server debug: waitpipe: object killed
[0xb5c02934] main http server debug: HTTP host removed
[0xb5c02894] main http server debug: no hosts left, stopping httpd
[0xb5c00ce4] main stream out debug: removing module "stream_out_rtp"
[0xb5c00ce4] main stream out debug: destroying chain done
[0xb5e00604] main input debug: TIMER input launching for 'rtsp://192.168.0.202/live1.sdp' : 29.806 ms - Total 29.806 ms / 1 intvls (Avg 29.806 ms)
[0x8b7b6fc] main playlist debug: changing item without a request (current 0/1)
[0x8b7b6fc] main playlist debug: nothing to play

sudo -u vlcuser cvlc --list|grep 555
VLC media player 1.1.13 The Luggage (revision exported)
  live555                RTP/RTSP/SDP demuxer (using Live555)
  live555                RTSP/RTP access and demux

http поток принимает нормально, из файла транслирует тоже. Не пойму почему уперся в rtsp(( Может кто сталкивался?



Последнее исправление: CYB3R (всего исправлений: 1)

VLC media player 1.1.13 The Luggage
Copyright © 1996-2011
2011

да вы батенька некромант знатный. Оно уже 2014-2011=3 года как упокоилось, но исскуство некромантии не утеряно! Стабильная версия 2.1.5 Rincewind, у меня cvlc уже 2.2(или 3.0.0) кажет, может в этом дело

stevejobs ★★★★☆
()
Ответ на: комментарий от stevejobs

Вроде эти версии также должны работать. Более новые версии пока не удалось скомпилить. пока застрял на internal compiler error: in memory_address, at explow.c:493 пробую gcc обновить

nebel
() автор топика
Ответ на: комментарий от stevejobs

Спасибо, порылся еще, взял 2.0 с RPMfusion, завелось сразу. Правда только с локалки показывает, хотя порт наружу открыл. Если у меня sout=rtsp://x.x.x.x:1554/test", то только 1554 порт в input открывать?

nebel
() автор топика
Ответ на: комментарий от stevejobs

centos 6.5
более новую версию
из репозитория

ха-ха :-(

ei-grad ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.