I'm trying to set up a http server on the Raspberry PI, and trying to browse what I can stream (both PI Cam and video files) from Raspberry PI server on my client desktop with Ubuntu OS.
The following command is what I'm using. I'm trying to broadcase a h264 file:
pi@raspberrypi ~ $ cvlc -vvv testvideo.h264 --sout '#standard{access=http,mux=h264,url=192.168.1.60:8090}'
VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
[0x6f5150] main libvlc debug: VLC media player - 2.1.4 Rincewind
[0x6f5150] main libvlc debug: Copyright © 1996-2014 the VideoLAN team
[0x6f5150] main libvlc debug: revision 2.1.4-0-g2a072be
[0x6f5150] main libvlc debug: configured with ./configure '--prefix=/usr'
[0x6f5150] main libvlc debug: searching plug-in modules
[0x6f5150] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x6f5150] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x6f5150] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0x6f5150] main libvlc debug: plug-ins loaded: 399 modules
[0x6f5150] main libvlc debug: opening config file (/home/pi/.config/vlc/vlcrc)
[0x6f5150] main libvlc debug: translation test: code is "C"
[0x6f5150] main libvlc debug: CPU has capabilities FPU
[0x785bb0] main input debug: Creating an input for 'Media Library'
[0x785bb0] main input debug: Input is a meta file: disabling unneeded options
[0x785bb0] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x785bb0] main 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'
[0x785bb0] main 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'
[0x708870] main demux debug: looking for access_demux module matching "file": 18 candidates
[0x708870] main demux debug: no access_demux modules matched
[0x785bb0] main input debug: creating access 'file' location='/home/pi/.local/share/vlc/ml.xspf', path='/home/pi/.local/share/vlc/ml.xspf'
[0x709b70] main access debug: looking for access module matching "file": 21 candidates
[0x709b70] filesystem access debug: opening file `/home/pi/.local/share/vlc/ml.xspf'
[0x709b70] main access debug: using access module "filesystem"
[0x708870] main stream debug: Using stream method for AStream*
[0x708870] main stream debug: starting pre-buffering
[0x708870] main stream debug: received first data after 0 ms
[0x708870] main stream debug: pre-buffering done 296 bytes in 0s - 147 KiB/s
[0x70aae8] main stream debug: looking for stream_filter module matching "any": 9 candidates
[0x70aae8] main stream debug: no stream_filter modules matched
[0x70aae8] main stream debug: looking for stream_filter module matching "record": 9 candidates
[0x70aae8] main stream debug: using stream_filter module "record"
[0x785bb0] main 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'
[0x70a7e8] main demux debug: looking for demux module matching "xspf-open": 61 candidates
[0x70a7e8] playlist demux debug: using XSPF playlist reader
[0x70a7e8] main demux debug: using demux module "playlist"
[0x786f48] main demux meta debug: looking for meta reader module matching "any": 2 candidates
[0x786f48] lua demux meta debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/reader
[0x786f48] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x786f48] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x786f48] lua demux meta warning: Error loading script /usr/lib/vlc/lua/meta/reader/filename.luac: /usr/lib/vlc/lua/meta/reader/filename.luac: version mismatch in precompiled chunk
[0x786f48] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x786f48] main demux meta debug: no meta reader modules matched
[0x785bb0] main input debug: `file/xspf-open:///home/pi/.local/share/vlc/ml.xspf' successfully opened
[0x77b0f8] main xml reader debug: looking for xml reader module matching "any": 1 candidates
[0x77b0f8] main xml reader debug: using xml reader module "xml"
[0x70a7e8] playlist demux debug: parsed 0 tracks successfully
[0x785bb0] main input debug: EOF reached
[0x70a7e8] main demux debug: removing module "playlist"
[0x70aae8] main stream debug: removing module "record"
[0x709b70] main access debug: removing module "filesystem"
[0x8354d8] main playlist debug: creating audio output
[0x77a5b0] main audio output debug: looking for audio output module matching "any": 6 candidates
[0x77a5b0] pulse audio output debug: using library version 2.0.0
[0x77a5b0] pulse audio output debug: (compiled with version 2.0.0, protocol 26)
[0x77a5b0] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x77a5b0] alsa audio output debug: Available ALSA PCM devices:
[0x77a5b0] alsa audio output debug: Discard all samples (playback) or generate zero samples (capture) (null)
[0x77a5b0] alsa audio output debug: bcm2835 ALSA, bcm2835 ALSA Default Audio Device (default:CARD=ALSA)
[0x77a5b0] alsa audio output debug: bcm2835 ALSA, bcm2835 ALSA Default Audio Device (sysdefault:CARD=ALSA)
[0x77a5b0] main audio output debug: using audio output module "alsa"
[0x8354d8] main playlist debug: keeping audio output
[0x8354d8] main playlist debug: adding item `testvideo.h264' ( file:///home/pi/testvideo.h264 )
[0x841fb8] main interface debug: looking for interface module matching "hotkeys,none": 14 candidates
[0x841fb8] main interface debug: using interface module "hotkeys"
[0x70a8f0] main input debug: Creating an input for 'testvideo.h264'
[0x843038] main interface debug: looking for interface module matching "globalhotkeys,none": 14 candidates
[0x843038] main interface debug: no interface modules matched
[0x843038] main interface error: no suitable interface module
[0x6f5150] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x844610] main interface debug: looking for interface module matching "dbus,none": 14 candidates
[0x844610] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x844610] main interface debug: no interface modules matched
[0x844610] main interface error: no suitable interface module
[0x6f5150] main libvlc error: interface "dbus,none" initialization failed
[0x8445e8] main interface debug: looking for interface module matching "dummy": 14 candidates
[0x8445e8] dummy interface: using the dummy interface module...
[0x8445e8] main interface debug: using interface module "dummy"
[0x8354d8] main playlist debug: processing request item: null, node: Playlist, skip: 0
[0x8354d8] main playlist debug: rebuilding array of current - root Playlist
[0x8354d8] main playlist debug: rebuild done - 1 items, index -1
[0x8354d8] main playlist debug: starting playback of the new playlist item
[0x8354d8] main playlist debug: resyncing on testvideo.h264
[0x8354d8] main playlist debug: testvideo.h264 is at 0
[0x8354d8] main playlist debug: creating new input thread
[0x846ca0] main input debug: Creating an input for 'testvideo.h264'
[0x84a610] main stream output debug: using sout chain=`standard{access=http,mux=h264,url=192.168.1.60:8090}'
[0x84a610] main stream output debug: stream=`standard'
[0x84a890] main stream out debug: looking for sout stream module matching "standard": 20 candidates
[0x84a890] main stream out debug: set config option: sout-standard-access to http
[0x84a890] main stream out debug: set config option: sout-standard-mux to h264
[0x84a890] main stream out debug: set config option: sout-standard-url to 192.168.1.60:8090
[0x723388] main access out debug: looking for sout access module matching "http": 8 candidates
[0x723388] main access out debug: net: listening to * port 8080
[0x723388] main access out error: socket bind error (Permission denied)
[0x723388] main access out debug: socket error: Address family not supported by protocol
[0x723388] main access out error: cannot create socket(s) for HTTP host
[0x723388] access_output_http access out error: cannot start HTTP server
[0x723388] main access out debug: no sout access modules matched
[0x84a890] stream_out_standard stream out error: no suitable sout access module for `http/h264://(null)'
[0x84a890] main stream out debug: no sout stream modules matched
[0x84a890] main stream out debug: destroying chain... (name=(null))
[0x84a890] main stream out debug: destroying chain done
[0x84a610] main stream output error: stream chain failed for `standard{access=http,mux=h264,url=192.168.1.60:8090}'
[0x846ca0] main input error: cannot start stream output instance, aborting
[0x8354d8] main playlist debug: finished input
[0x8354d8] main playlist debug: dead input
[0x8354d8] main playlist debug: changing item without a request (current 0/1)
[0x8354d8] main playlist debug: nothing to play
[h264 @ 0x72de80] Stream #0: not enough frames to estimate rate; consider increasing probesize
[0x8354d8] main playlist debug: no fetch required for (null) (art currently (null))
It seems the first block of errors (with bold characters) are related to whether I would like to show the video on my display? I'm not going to show anything on the Raspberry PI server, so, I can bear with those errors. But how about the second block of errors (with bold characters) ?
Any suggestions please??????
Thank you ...
cheers
Pei