mekmiotek
Posts: 3
Joined: Sun Jan 10, 2016 4:25 pm

Streaming problem, i cannot access stream from remote system

Sun Jan 10, 2016 4:33 pm

Hello!

First time poster so bear with me...

I have a Raspberry Pi B with the camera module.

I have set up streaming according to a post I found, like this:

raspivid -o - -t 0 -hf -w 640 -h 360 -fps 25 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554}' :demux=h264

I can see the stream playing on a monitor I have hooked up to the Pi.

My problem is I cannot access the stream from a remote computer.

I've tried using both VLC and Quicktime.

VLC I use this in open network stream:
rtsp://192.168.1.150:8554/

and get this:

Your input can't be opened:
VLC is unable to open the MRL 'rtsp://192.168.1.150:8554/'. Check the log for details.

Oddly It does not log anything either. I've played with it a bit, ONE time It logged some things, but that was it.

Anyone have any ideas?

Thanks!

mekmiotek
Posts: 3
Joined: Sun Jan 10, 2016 4:25 pm

Re: Streaming problem, i cannot access stream from remote sy

Sun Jan 10, 2016 5:13 pm

Here is the output from that command , Maybe it can help :

[email protected]:~ $ ./myscript.sh
VLC media player 2.2.0-rc2 Weatherwax (revision 2.2.0-rc1-118-g22fda39)
[002688f8] core libvlc debug: VLC media player - 2.2.0-rc2 Weatherwax
[002688f8] core libvlc debug: Copyright © 1996-2014 the VideoLAN team
[002688f8] core libvlc debug: revision 2.2.0-rc1-118-g22fda39
[002688f8] core libvlc debug: configured with ./configure '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--localstatedir=/var' '--libdir=${prefix}/lib/arm-linux-gnueabihf' '--libexecdir=${prefix}/lib/arm-linux-gnueabihf' '--disable-dependency-tracking' '--build=arm-linux-gnueabihf' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--libdir=/usr/lib' '--sysconfdir=/etc' '--with-binary-version=2+deb8u1' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-chromaprint' '--enable-dbus' '--enable-dca' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freerdp' '--enable-freetype' '--enable-fribidi' '--enable-gles1' '--enable-gles2' '--enable-glx' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shine' '--enable-shout' '--enable-skins2' '--enable-smbclient' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcdx' '--enable-vdpau' '--enable-vnc' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-decklink' '--disable-dxva2' '--disable-fdkaac' '--disable-gnomevfs' '--disable-goom' '--disable-libtar' '--disable-mfx' '--disable-opencv' '--disable-projectm' '--disable-sndio' '--disable-svgdec' '--disable-telx' '--disable-vpx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv1394' '--enable-linsys' '--enable-omxil' '--enable-udev' '--enable-v4l2' '--enable-libva' '--enable-vcd' '--disable-oss' '--disable-crystalhd' '--disable-mmx' '--disable-sse' '--disable-neon' '--disable-altivec' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security' 'build_alias=arm-linux-gnueabihf' 'OBJCFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
[002688f8] core libvlc debug: searching plug-in modules
[002688f8] core libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[002688f8] core libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[002688f8] core libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[002688f8] core libvlc debug: plug-ins loaded: 449 modules
[002688f8] core libvlc debug: opening config file (/home/pi/.config/vlc/vlcrc)
[002688f8] core libvlc debug: translation test: code is "en_GB"
[002688f8] core libvlc debug: CPU has capabilities FPU
[003d7b00] core input debug: Creating an input for 'Media Library'
[003d7b00] core input debug: Input is a meta file: disabling unneeded options
[003d7b00] core input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[003d7b00] core input debug: `file/xspf-open:///home/pi/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/pi/.local/share/vlc/ml.xspf'
[003d7b00] core input debug: creating demux: access='file' demux='xspf-open' location='/home/pi/.local/share/vlc/ml.xspf' file='/home/pi/.local/share/vlc/ml.xspf'
[0027b780] core demux debug: looking for access_demux module matching "file": 20 candidates
[0027b780] core demux debug: no access_demux modules matched
[003d7b00] core input debug: creating access 'file' location='/home/pi/.local/share/vlc/ml.xspf', path='/home/pi/.local/share/vlc/ml.xspf'
[003d8bb0] core access debug: looking for access module matching "file": 25 candidates
[003d8bb0] filesystem access debug: opening file `/home/pi/.local/share/vlc/ml.xspf'
[003d8bb0] core access debug: using access module "filesystem"
[0027b780] core stream debug: Using stream method for AStream*
[0027b780] core stream debug: starting pre-buffering
[0027b780] core stream debug: received first data after 0 ms
[0027b780] core stream debug: pre-buffering done 296 bytes in 0s - 698 KiB/s
[003d8c80] core stream debug: looking for stream_filter module matching "any": 9 candidates
[003d8c80] core stream debug: no stream_filter modules matched
[003d8c80] core stream debug: looking for stream_filter module matching "record": 9 candidates
[003d8c80] core stream debug: using stream_filter module "record"
[003d7b00] core input debug: creating demux: access='file' demux='xspf-open' location='/home/pi/.local/share/vlc/ml.xspf' file='/home/pi/.local/share/vlc/ml.xspf'
[0027dc70] core demux debug: looking for demux module matching "xspf-open": 65 candidates
[0027dc70] xspf demux debug: using XSPF playlist reader
[0027dc70] core demux debug: using demux module "playlist"
[00302f58] core demux meta debug: looking for meta reader module matching "any": 2 candidates
[00302f58] lua demux meta debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/reader
[00302f58] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[00302f58] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[00302f58] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[00302f58] core demux meta debug: no meta reader modules matched
[003d7b00] core input debug: `file/xspf-open:///home/pi/.local/share/vlc/ml.xspf' successfully opened
[002f80e8] core xml reader debug: looking for xml reader module matching "any": 1 candidates
[002f80e8] core xml reader debug: using xml reader module "xml"
[0027dc70] xspf demux debug: parsed 0 tracks successfully
[003d7b00] core input debug: EOF reached
[0027dc70] core demux debug: removing module "playlist"
[003d8c80] core stream debug: removing module "record"
[003d8bb0] core access debug: removing module "filesystem"
[003d6e70] core playlist debug: creating audio output
[002f3878] core audio output debug: looking for audio output module matching "any": 5 candidates
[002f3878] pulse audio output debug: using library version 5.0.0
[002f3878] pulse audio output debug: (compiled with version 5.0.0, protocol 29)
[002f3878] pulse audio output error: PulseAudio server connection failure: Connection refused
[002f3878] alsa audio output debug: Available ALSA PCM devices:
[002f3878] alsa audio output debug: Discard all samples (playback) or generate zero samples (capture) (null)
[002f3878] alsa audio output debug: bcm2835 ALSA, bcm2835 ALSA Default Audio Device (default:CARD=ALSA)
[002f3878] alsa audio output debug: bcm2835 ALSA, bcm2835 ALSA Default Audio Device (sysdefault:CARD=ALSA)
[002f3878] alsa audio output debug: bcm2835 ALSA, bcm2835 ALSA Direct sample mixing device (dmix:CARD=ALSA,DEV=0)
[002f3878] alsa audio output debug: bcm2835 ALSA, bcm2835 IEC958/HDMI Direct sample mixing device (dmix:CARD=ALSA,DEV=1)
[002f3878] alsa audio output debug: bcm2835 ALSA, bcm2835 ALSA Direct sample snooping device (dsnoop:CARD=ALSA,DEV=0)
[002f3878] alsa audio output debug: bcm2835 ALSA, bcm2835 IEC958/HDMI Direct sample snooping device (dsnoop:CARD=ALSA,DEV=1)
[002f3878] alsa audio output debug: bcm2835 ALSA, bcm2835 ALSA Direct hardware device without any conversions (hw:CARD=ALSA,DEV=0)
[002f3878] alsa audio output debug: bcm2835 ALSA, bcm2835 IEC958/HDMI Direct hardware device without any conversions (hw:CARD=ALSA,DEV=1)
[002f3878] alsa audio output debug: bcm2835 ALSA, bcm2835 ALSA Hardware device with all software conversions (plughw:CARD=ALSA,DEV=0)
[002f3878] alsa audio output debug: bcm2835 ALSA, bcm2835 IEC958/HDMI Hardware device with all software conversions (plughw:CARD=ALSA,DEV=1)
[002f3878] core audio output debug: using audio output module "alsa"
[003d6e70] core playlist debug: keeping audio output
[003d6e70] core playlist debug: adding item `stdin' ( stream:///dev/stdin )
[002881f8] core interface debug: looking for interface module matching "hotkeys,none": 19 candidates
[002881f8] core interface debug: using interface module "hotkeys"
[b43004f0] core input debug: Creating an input for 'stdin'
[003d6e70] core playlist debug: meta ok for (null), need to fetch art
[00301e28] core interface debug: looking for interface module matching "globalhotkeys,none": 19 candidates
[00301e28] core interface debug: no interface modules matched
[b4300ea8] core art finder debug: looking for meta fetcher module matching "any": 1 candidates
[00301e28] core interface error: no suitable interface module
[002688f8] core libvlc error: interface "globalhotkeys,none" initialization failed
[00301e28] core interface debug: looking for interface module matching "dbus,none": 19 candidates
[00301e28] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[00301e28] core interface debug: no interface modules matched
[00301e28] core interface error: no suitable interface module
[002688f8] core libvlc error: interface "dbus,none" initialization failed
[00301e28] core interface debug: looking for interface module matching "dummy": 19 candidates
[00301e28] dummy interface: using the dummy interface module...
[00301e28] core interface debug: using interface module "dummy"
[003d6e70] core playlist debug: processing request item: null, node: Playlist, skip: 0
[003d6e70] core playlist debug: rebuilding array of current - root Playlist
[003d6e70] core playlist debug: rebuild done - 1 items, index -1
[003d6e70] core playlist debug: starting playback of the new playlist item
[003d6e70] core playlist debug: resyncing on stdin
[003d6e70] core playlist debug: stdin is at 0
[003d6e70] core playlist debug: creating new input thread
[b3d00508] core input debug: Creating an input for 'stdin'
[003d6e70] core playlist debug: requesting art for stdin
[002888c8] core stream output debug: using sout chain=`rtp{sdp=rtsp://:8554}'
[002888c8] core stream output debug: stream=`rtp'
[002f60f0] core stream out debug: looking for sout stream module matching "rtp": 22 candidates
[002f60f0] core stream out debug: set config option: sout-rtp-sdp to rtsp://:8554
[b3d03e20] core art finder debug: looking for meta fetcher module matching "any": 1 candidates
[b4300ea8] lua art finder debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/fetcher
[b4300ea8] lua art finder debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/fetcher
[b4300ea8] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/fetcher/tvrage.luac
[002f60f0] stream_out_rtp stream out debug: RTSP stream at /
[002f60f0] core stream out debug: net: listening to * port 8554
[002f60f0] core stream out debug: using sout stream module "stream_out_rtp"
[b3d00508] core input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[b3d00508] core input debug: `stream:///dev/stdin' gives access `stream' demux `' path `/dev/stdin'
[b3d00508] core input debug: specified demux `h264'
[b3d00508] core input debug: creating demux: access='stream' demux='h264' location='/dev/stdin' file='/dev/stdin'
[002f99e0] core demux debug: looking for access_demux module matching "stream": 20 candidates
[002f99e0] core demux debug: no access_demux modules matched
[b3d00508] core input debug: creating access 'stream' location='/dev/stdin', path='/dev/stdin'
[002f99e0] core access debug: looking for access module matching "stream": 25 candidates
[002f99e0] filesystem access debug: opening file `/dev/stdin'
[002f99e0] core access debug: using access module "filesystem"
[002fa6b0] core stream debug: Using stream method for AStream*
[002fa6b0] core stream debug: starting pre-buffering
[002fa6b0] core stream debug: received first data after 0 ms
[002fa6b0] core stream debug: pre-buffering done 1024 bytes in 0s - 305 KiB/s
[002fa870] core stream debug: looking for stream_filter module matching "any": 9 candidates
[002fa870] core stream debug: no stream_filter modules matched
[002fa870] core stream debug: looking for stream_filter module matching "record": 9 candidates
[002fa870] core stream debug: using stream_filter module "record"
[b3d00508] core input debug: creating demux: access='stream' demux='h264' location='/dev/stdin' file='/dev/stdin'
[002fa930] core demux debug: looking for demux module matching "h264": 65 candidates
[002fa930] h264 demux debug: using 25.00 fps
[b3d03e20] lua art finder debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/fetcher
[b3d03e20] lua art finder debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/fetcher
[b3d03e20] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/fetcher/tvrage.luac
[00307dd0] core demux packetizer debug: looking for packetizer module matching "any": 22 candidates
[b4300ea8] lua art finder debug: skipping script (unmatched scope) /usr/lib/vlc/lua/meta/fetcher/tvrage.luac
[b4300ea8] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
[b4300ea8] core art finder debug: no meta fetcher modules matched
[003d6e70] core playlist debug: searching art for stdin
[b4303538] core art finder debug: looking for art finder module matching "any": 2 candidates
[00307dd0] core demux packetizer debug: using packetizer module "packetizer_h264"
[002fa930] core demux debug: using demux module "h264"
[b3d00508] core input debug: starting in async mode
[002893d8] core demux meta debug: looking for meta reader module matching "any": 2 candidates
[b3d03e20] lua art finder debug: skipping script (unmatched scope) /usr/lib/vlc/lua/meta/fetcher/tvrage.luac
[b3d03e20] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
[b3d03e20] core art finder debug: no meta fetcher modules matched
[002688f8] core libvlc debug: searching art for stdin
[b3d06c30] core art finder debug: looking for art finder module matching "any": 2 candidates
[b4303538] lua art finder debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/art
[b4303538] lua art finder debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/art
[b4303538] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac
[002893d8] lua demux meta debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/reader
[002893d8] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[002893d8] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[b3d06c30] lua art finder debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/art
[b3d06c30] lua art finder debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/art
[b3d06c30] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac
[b4303538] lua art finder debug: skipping script (unmatched scope) /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac
[b4303538] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/01_googleimage.luac
[002893d8] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[002893d8] core demux meta debug: no meta reader modules matched
[b3d00508] core input debug: `stream:///dev/stdin' successfully opened
[00307dd0] packetizer_h264 demux packetizer debug: found NAL_SPS (sps_id=0)
[00307dd0] packetizer_h264 demux packetizer debug: found NAL_PPS (pps_id=0 sps_id=0)
[b3d06c30] lua art finder debug: skipping script (unmatched scope) /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac
[b3d06c30] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/01_googleimage.luac
[b4303538] lua art finder debug: skipping script (unmatched scope) /usr/lib/vlc/lua/meta/art/01_googleimage.luac
[b4303538] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/02_frenchtv.luac
[b3d00508] core input debug: selecting program id=0
[002f7380] core decoder debug: looking for packetizer module matching "any": 22 candidates
[002f7380] core decoder debug: using packetizer module "packetizer_h264"
[b3d00508] core input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
[b3d00508] core input debug: switching to sync mode
[002f7380] packetizer_h264 decoder debug: found NAL_SPS (sps_id=0)
[002f7380] packetizer_h264 decoder debug: found NAL_PPS (pps_id=0 sps_id=0)
[b3d06c30] lua art finder debug: skipping script (unmatched scope) /usr/lib/vlc/lua/meta/art/01_googleimage.luac
[b3d00508] core input debug: Buffering 0%
[b3d00508] core input debug: Buffering 13%
[002888c8] core stream output debug: adding a new sout input (sout_input:0xb4305f68)
[002f60f0] stream_out_rtp stream out debug: maximum RTP packet size: 1400 bytes
[002f60f0] stream_out_rtp stream out debug: RTSP: adding /trackID=0
[002f60f0] stream_out_rtp stream out debug: sdp=
v=0
o=- 15725710242188333846 15725710242188333846 IN IP4 raspberrypi
s=Unnamed
i=N/A
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 2.2.0-rc2
a=recvonly
a=type:broadcast
a=charset:UTF-8
m=video 0 RTP/AVP 96
b=RR:0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1

[b3d06c30] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/02_frenchtv.luac
[b3d00508] core input debug: Buffering 26%
[b3d00508] core input debug: Buffering 40%
[b3d00508] core input debug: Buffering 53%
[b3d00508] core input debug: Buffering 66%
[b4303538] lua art finder debug: skipping script (unmatched scope) /usr/lib/vlc/lua/meta/art/02_frenchtv.luac
[b4303538] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/03_lastfm.luac
[b3d00508] core input debug: Buffering 80%
[b3d00508] core input debug: Buffering 93%
[b3d00508] core input debug: Stream buffering done (320 ms in 78 ms)
[b3d00508] core input debug: Decoder wait done in 0 ms
[b3d06c30] lua art finder debug: skipping script (unmatched scope) /usr/lib/vlc/lua/meta/art/02_frenchtv.luac
[b3d06c30] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/03_lastfm.luac
[b4303538] lua art finder debug: skipping script (unmatched scope) /usr/lib/vlc/lua/meta/art/03_lastfm.luac
[b4303538] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
[b4303538] core art finder debug: no art finder modules matched
[003d6e70] core playlist debug: art not found for stdin
[b3d06c30] lua art finder debug: skipping script (unmatched scope) /usr/lib/vlc/lua/meta/art/03_lastfm.luac
[b3d06c30] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
[b3d06c30] core art finder debug: no art finder modules matched
[002688f8] core libvlc debug: art not found for stdin

mekmiotek
Posts: 3
Joined: Sun Jan 10, 2016 4:25 pm

Re: Streaming problem, i cannot access stream from remote sy

Sun Jan 10, 2016 5:53 pm

I got it, I'll post how.

I saw in the man page you need a stream name:

rtsp://<server address>[:<server port>]/<stream name>
RTSP Video On Demand stream

so I added /x

raspivid -o - -t 0 -hf -w 640 -h 360 -fps 25 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/x}' :demux=h264

and in vlc I add that to the url and bingo it works.

rtsp://192.168.1.150:8554/x

-mekmiotek

kyengineer
Posts: 1
Joined: Fri Aug 04, 2017 4:32 pm

Re: Streaming problem, i cannot access stream from remote system

Sat Aug 05, 2017 4:34 pm

I had the same problem and adding solve it for me also.

thanks

Return to “Camera board”