texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 5:32 pm

LeoWhite wrote:
texy wrote: I can't seem to get this working :(
Does the (very long) raspivid command actually generate the stream as a file on the pi at /var/www/streaming/ ? Or do you need to create something there before runnig the command? Because I only have the default index.html file there generated by apache. I have an no-ip.org website that I can see fine from my laptop, so should this command work :

Code: Select all

/opt/vc/bin/raspivid -o -  -w 920 -h 540 -t 9999999 |  vlc -v -I "dummy" stream:///dev/stdin  :sout="#std{access=livehttp{seglen=10,delsegs=true,numsegs=5, index=/var/www/streaming/stream.m3u8, index-url=http://texyuk.no-ip.org/streaming/stream-########.ts}, mux=ts{use-key-frames}, dst=/var/www/streaming/stream-########.ts}" :demux=h264
It should generate multiple .ts files in /var/www/streaming as well as a .m3u8 playlist file that it will update as more .ts files are generated.

Things you may need to do is manually create the /var/www/streaming directory, and you may need to give your user write access to them (I took the lazy way out and did a 'chmod -R a+rw /var/www' so everyone can add to it). cvlc should have complained if it couldn't access the output directory. Did you get any error output?

At some point I was going to retry this from a fresh OS install to make sure I had all the steps covered.
OK. I'm getting closer, but not there yet!
On the Pi I use

Code: Select all

/opt/vc/bin/raspivid -o -  -w 920 -h 540 -t 9999999 |  vlc -v -I "dummy" stream:///dev/stdin  :sout="#std{access=livehttp{seglen=10,delsegs=true,numsegs=5, index=/var/www/streaming/stream.m3u8, index-url=http://192.168.0.8/streaming/stream-########.ts}, mux=ts{use-key-frames}, dst=/var/www/streaming/stream-########.ts}" :demux=h264
Then, from my laptop, I can browse with chrome to the pi at 192.168.0.8 and I can now see the m3u8 and ts files being generated, so I know they are there.
If I run vlc (version 2.0.0 Twoflower), select Open Network Stream, choose

Code: Select all

http://192.168.0.8/streaming/stream.m3u8
I get the following error :

Connection failed:
VLC could not connect to "192.168.0.8:554".
Your input can't be opened:
VLC is unable to open the MRL 'rtsp://192.168.0.8/streaming/stream.m3u8'. Check the log for details.

Any idea's where I,m going wrong?
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

LeoWhite
Posts: 131
Joined: Mon Apr 08, 2013 9:20 am
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 6:10 pm

texy wrote:
OK. I'm getting closer, but not there yet!
On the Pi I use

Code: Select all

/opt/vc/bin/raspivid -o -  -w 920 -h 540 -t 9999999 |  vlc -v -I "dummy" stream:///dev/stdin  :sout="#std{access=livehttp{seglen=10,delsegs=true,numsegs=5, index=/var/www/streaming/stream.m3u8, index-url=http://192.168.0.8/streaming/stream-########.ts}, mux=ts{use-key-frames}, dst=/var/www/streaming/stream-########.ts}" :demux=h264
Then, from my laptop, I can browse with chrome to the pi at 192.168.0.8 and I can now see the m3u8 and ts files being generated, so I know they are there.
If I run vlc (version 2.0.0 Twoflower), select Open Network Stream, choose

Code: Select all

http://192.168.0.8/streaming/stream.m3u8
I get the following error :

Connection failed:
VLC could not connect to "192.168.0.8:554".
Your input can't be opened:
VLC is unable to open the MRL 'rtsp://192.168.0.8/streaming/stream.m3u8'. Check the log for details.

Any idea's where I,m going wrong?
That looks like VLC is trying to open an rtsp address and not a http address, which seems a little odd. I'm running VLC 2.0.6 here so I don't know if that is a bug in your version or not...

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 7:10 pm

Hi,
thanks for sticking with me on this. I updated to v2.0.6, but still no joy. Just to check though, on the Pi, when first starting the streaming, there are some error/warning messages :

Code: Select all

pi@raspberrypi /var/www/streaming $ /opt/vc/bin/raspivid -o -  -w 920 -h 540 -t 9999999 |  vlc -v -I "dummy" stream:///dev/stdin  :sout="#std{access=livehttp{seglen=10,delsegs=true,numsegs=5, index=/var/www/streaming/stream.m3u8, index-url=http://192.168.0.8/streaming/stream-########.ts}, mux=ts{use-key-frames}, dst=/var/www/streaming/stream-########.ts}" :demux=h264
VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
[0x1bff818] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x1bff818] main interface error: no suitable interface module
[0x1c0cb88] main interface error: no suitable interface module
[0x1beb8f0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x1c0cb78] dummy interface: using the dummy interface module...
[0x1c0c968] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
[0x1c7db78] mux_ts mux warning: packet with too strange dts (dts=8397222934,old=8397332293,pcr=8397332293)
[0x1c7db78] mux_ts mux warning: packet with too strange dts (dts=8397443889,old=8397662934,pcr=8397662934)
[0x1c7db78] mux_ts mux warning: packet with too strange dts (dts=8397653981,old=8397683889,pcr=8397683889)
[0x1c7db78] mux_ts mux warning: packet with too strange dts (dts=8397881372,old=8398093981,pcr=8398093981)
[0x1c7db78] mux_ts mux warning: packet with too strange dts (dts=8397919296,old=8398121372,pcr=8398121372)
^C[0x1c7db78] main mux warning: no more input streams for this mux
[0x1c7bf00] access_output_livehttp access out: LiveHttpSegmentComplete: /var/www/streaming/stream-00000001.ts (1)
[0x1c7bf00] access_output_livehttp access out: LiveHttpIndexComplete: /var/www/streaming/stream.m3u8
Is there a way I can check on the pi that the video stream is being generated correctly?

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

LeoWhite
Posts: 131
Joined: Mon Apr 08, 2013 9:20 am
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 7:22 pm

texy wrote:(dts=8397222934,old=8397332293,pcr=8397332293)
[0x1c7db78] mux_ts mux warning: packet with too strange dts
These sorts of errors seem to get generated when doing http streaming, but the stream should be valid to view
texy wrote: [0x1c7bf00] access_output_livehttp access out: LiveHttpSegmentComplete: /var/www/streaming/stream-00000001.ts (1)
[0x1c7bf00] access_output_livehttp access out: LiveHttpIndexComplete: /var/www/streaming/stream.m3u8
and this indicated that the output is starting to be generated.
texy wrote: Is there a way I can check on the pi that the video stream is being generated correctly?
You could try playing one of the .ts files in VLC directly as a normal HTTP stream to validate the video is okay.

Otherwise you may want to look at the contents of the stream.m3u8 file to make sure that the links it contains are valid. Mine currently looks like

Code: Select all

#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:701
#EXTINF:10,
http://109.145.254.207:8091/streaming/stream-00000701.ts
#EXTINF:10,
http://109.145.254.207:8091/streaming/stream-00000702.ts
#EXTINF:10,
http://109.145.254.207:8091/streaming/stream-00000703.ts
#EXTINF:10,
http://109.145.254.207:8091/streaming/stream-00000704.ts
#EXTINF:10,
http://109.145.254.207:8091/streaming/stream-00000705.ts
and it should be possible to copy/paste the links to the file and play them in VLC.

Leo

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 7:41 pm

Is your camera running at the moment?
If so should I be able to use vlc on my laptop to see your stream pointing it to http://109.145.254.207:8091/streaming/stream.m3u8 ?
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2869
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 7:47 pm

texy wrote:Is your camera running at the moment?
If so should I be able to use vlc on my laptop to see your stream pointing it to http://109.145.254.207:8091/streaming/stream.m3u8 ?
Try mine Texy. I'll leave it on for the next 10 minutes
Just point VLC at http://82.28.149.163:8090
Alex Eames RasPi.TV, RasP.iO

LeoWhite
Posts: 131
Joined: Mon Apr 08, 2013 9:20 am
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 7:48 pm

texy wrote:Is your camera running at the moment?
If so should I be able to use vlc on my laptop to see your stream pointing it to http://109.145.254.207:8091/streaming/stream.m3u8 ?
Yep, that stream is active at the moment. Starting to get dark out but can still see the outside (and a big glowing red LED...)

Leo

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2869
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:05 pm

LeoWhite wrote:
texy wrote:Is your camera running at the moment?
If so should I be able to use vlc on my laptop to see your stream pointing it to http://109.145.254.207:8091/streaming/stream.m3u8 ?
Yep, that stream is active at the moment. Starting to get dark out but can still see the outside (and a big glowing red LED...)

Leo
Why don't you switch it off? Once disabled in config.txt you can use GPIO5 to switch it on and off at will. :D
Alex Eames RasPi.TV, RasP.iO

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:11 pm

alexeames wrote:
texy wrote:Is your camera running at the moment?
If so should I be able to use vlc on my laptop to see your stream pointing it to http://109.145.254.207:8091/streaming/stream.m3u8 ?
Try mine Texy. I'll leave it on for the next 10 minutes
Just point VLC at http://82.28.149.163:8090

...thanks the video is very broken up, but I do see things at times - proves that vlc is a least able to pick up something, even if not from my own pi.

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

LeoWhite
Posts: 131
Joined: Mon Apr 08, 2013 9:20 am
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:13 pm

alexeames wrote:
LeoWhite wrote:
texy wrote:Is your camera running at the moment?
If so should I be able to use vlc on my laptop to see your stream pointing it to http://109.145.254.207:8091/streaming/stream.m3u8 ?
Yep, that stream is active at the moment. Starting to get dark out but can still see the outside (and a big glowing red LED...)

Leo
Why don't you switch it off? Once disabled in config.txt you can use GPIO5 to switch it on and off at will. :D
Mostly because I haven't rebooted that RPi since I got streaming working on Saturday!

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2869
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:19 pm

texy wrote: ...thanks the video is very broken up, but I do see things at times - proves that vlc is a least able to pick up something, even if not from my own pi.
That was 720p. Want to try something a bit lower res?
Alex Eames RasPi.TV, RasP.iO

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:24 pm

Thanks Alex - I need to test some displays tonight before bed. So I'll give this another go tomorrow.
Cheers
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2869
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:27 pm

texy wrote:Thanks Alex - I need to test some displays tonight before bed. So I'll give this another go tomorrow.
Cheers
Texy
Go on have another quick look. I rigged up a plasma ball so you could see something in the dark. Same URL as before. should be up for about 10 minutes

That's 640 x 360 res
Alex Eames RasPi.TV, RasP.iO

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:45 pm

alexeames wrote:
texy wrote:Thanks Alex - I need to test some displays tonight before bed. So I'll give this another go tomorrow.
Cheers
Texy
Go on have another quick look. I rigged up a plasma ball so you could see something in the dark. Same URL as before. should be up for about 10 minutes

That's 640 x 360 res

Nothing this end :o

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2869
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:47 pm

It just finished. I've restarted it. :lol:
Alex Eames RasPi.TV, RasP.iO

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:50 pm

Yeah - that works !
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Steve888
Posts: 1
Joined: Mon May 20, 2013 8:36 pm

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:56 pm

Hi, Im getting as far as Texy but noticed the port number is not in the command, how is this set-up ? Also when running netstat -l no new connection was opened when command was run so tried the http port no:

http://[IP_OF_PI]:80/streaming/stream.m3u8 (connected ok on an android VLC client, but there seems to be a delay of about a minute)

I have apache installed, if i stop the apache service the connection is lost.

Steve.

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2869
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 8:59 pm

texy wrote:Yeah - that works !
Texy
Nice.
Capture.JPG
Capture.JPG (26.08 KiB) Viewed 15460 times
Alex Eames RasPi.TV, RasP.iO

User avatar
wallarug
Posts: 460
Joined: Mon May 14, 2012 8:21 am
Location: Sydney, Australia

Re: Using VLC to stream from the camera - Help needed

Mon May 20, 2013 11:35 pm

texy wrote:Yeah - that works !
Texy
Could you publish some clear instructions on what you did?

I am very interested in vlc streaming from Pi.

User avatar
recantha2
Posts: 286
Joined: Wed Nov 14, 2012 9:34 am
Location: Potton, Bedfordshire
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Tue May 21, 2013 3:43 am

wallarug wrote:
texy wrote:Yeah - that works !
Texy
Could you publish some clear instructions on what you did?

I am very interested in vlc streaming from Pi.
Try the instructions from Leo White that I've blogged about:
http://www.recantha.co.uk/blog/?p=4162
--
Michael Horne - @recantha
Raspberry Pi blog - http://www.recantha.co.uk/blog

Cambridge Raspberry Jam
Website: http://camjam.me
Facebook: https://www.facebook.com/cambridgeraspberryjam
Follow the Cambridge Raspberry Jam on Twitter - @cambridgejam

LeoWhite
Posts: 131
Joined: Mon Apr 08, 2013 9:20 am
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Tue May 21, 2013 5:47 am

Steve888 wrote:Hi, Im getting as far as Texy but noticed the port number is not in the command, how is this set-up ?
You can configure a different port number by adding it to the end of the URI specified in the command line. So to output on port 8080 you could pass in

Code: Select all

index-url=http://192.168.0.8:8080/streaming/stream-########.ts
Steve888 wrote: Also when running netstat -l no new connection was opened when command was run
When running in HLS output mode vlc just writes the video files to disc and the files are fetched using the webserver installed on the RPi (Which would already have its port open). If you use VLC to stream via RTP or directly via HTTP then it should open a new port to listen on.
Steve888 wrote: so tried the http port no:

http://[IP_OF_PI]:80/streaming/stream.m3u8 (connected ok on an android VLC client, but there seems to be a delay of about a minute)
That sounds about right. The settings being used here ask VLC to create 5 files with lengths of 10 seconds so when you playback the video it will be around 50 seconds behind live.
Steve888 wrote: I have apache installed, if i stop the apache service the connection is lost.
HLS support requires a web server to accept connections (i.e. Apache). You can try and use the RTP or HTTP outputs of VLC to remove the requirement of needing a web server, and to reduce the delay between the live input and the playback.

Have a look on recantha's blog post or my own page at http://www.mybigideas.co.uk/RPi/RPiCamera/ for the commands to use.

Note: Unless you have a specific use case I wouldn't recommend HLS streaming as it puts the most load on the Raspberry Pi (higher CPU and memory usage, constantly writing to the SD card)
Leo

User avatar
wallarug
Posts: 460
Joined: Mon May 14, 2012 8:21 am
Location: Sydney, Australia

Re: Using VLC to stream from the camera - Help needed

Wed May 22, 2013 7:47 am

no luck here :(

Here is the ouput from the console.

Code: Select all


[0x310ff0] main stream debug: no stream_filter module matching "any" could be loaded
[0x310ff0] main stream debug: TIMER module_need() : 28.675 ms - Total 28.675 ms / 1 intvls (Avg 28.675 ms)
[0x310ff0] main stream debug: looking for stream_filter module: 1 candidate
[0x310ff0] main stream debug: using stream_filter module "stream_filter_record"
[0x310ff0] main stream debug: TIMER module_need() : 8.151 ms - Total 8.151 ms / 1 intvls (Avg 8.151 ms)
[0x297438] main input debug: creating demux: access='fd' demux='' location='0' file='(null)'
[0x30d330] main demux debug: looking for demux module: 54 candidates
[0x30d330] es demux error: cannot peek
[0x30d330] mod demux debug: MOD validation failed (ext=)
[0x30d330] avformat demux debug: trying url: fd://0
[0x30d330] avformat demux debug: couldn't guess format
[0x30d330] lua demux debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/playlist
[0x30d330] lua demux debug: Trying Lua scripts in /usr/lib/vlc/lua/playlist
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/anevia_streams.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/anevia_xml.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/appletrailers.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/bbc_co_uk.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/break.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/canalplus.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/cue.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/dailymotion.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/extreme.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/france2.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/googlevideo.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/jamendo.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/joox.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/katsomo.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/koreus.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/lelombrik.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/metacafe.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/metachannels.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/mpora.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/pinkbike.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/pluzz.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/rockbox_fm_presets.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/soundcloud.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/vimeo.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/youtube.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/youtube_homepage.luac
[0x30d330] lua demux debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/zapiks.luac
[0x30d330] lua demux debug: Trying Lua scripts in /usr/share/vlc/lua/playlist
[0x30d330] ps demux warning: this does not look like an MPEG PS stream, continuing anyway
[0x30d330] main demux debug: using demux module "ps"
[0x30d330] main demux debug: TIMER module_need() : 768.568 ms - Total 768.568 ms / 1 intvls (Avg 768.568 ms)
[0x297438] main input debug: looking for a subtitle file in /dev/
[0x297438] main input debug: starting in async mode
[0x3001b8] main demux meta debug: looking for meta reader module: 2 candidates
[0x3001b8] lua demux meta debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/reader
[0x3001b8] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x3001b8] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x3001b8] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x3001b8] main demux meta debug: no meta reader module matching "any" could be loaded
[0x3001b8] main demux meta debug: TIMER module_need() : 79.713 ms - Total 79.713 ms / 1 intvls (Avg 79.713 ms)
[0x297438] main input debug: `fd://0' successfully opened
[0x30d330] ps demux warning: garbage at input, trying to resync...
[0x297438] main input debug: EOF reached
[0x285a08] main playlist debug: finished input
[0x310c08] main access debug: waitpipe: object killed
[0x30d330] main demux debug: removing module "ps"
[0x310ff0] main stream debug: removing module "stream_filter_record"
[0x310c08] main access debug: removing module "filesystem"
[0x285a08] main playlist debug: dead input
[0x309968] main stream output debug: destroying useless sout
[0x309b68] main stream out debug: destroying chain... (name=standard)
[0x309b68] main stream out debug: removing module "stream_out_standard"
[0x30c1b8] main mux debug: removing module "mux_ts"
[0x30b2e0] main access out debug: removing module "access_output_http"
[0x30bbe0] main http host debug: waitpipe: object killed
[0x30bbe0] main http host debug: HTTP host removed
[0x30b2e0] access_output_http access out debug: Close
[0x309b68] main stream out debug: destroying chain done
[0x297438] main input debug: TIMER input launching for 'fd://0' : 1022.242 ms - Total 1022.242 ms / 1 intvls (Avg 1022.242 ms)
[0x285a08] main playlist debug: changing item without a request (current 0/1)
[0x285a08] main playlist debug: nothing to play
^C[0x2768f0] main libvlc debug: deactivating the playlist
[0x285a08] main playlist debug: deactivating the playlist
[0x285a08] main playlist warning: could not create /home/pi/.local: Permission denied
[0x285a08] main playlist warning: could not create /home/pi/.local/share: Permission denied
[0x285a08] main playlist warning: could not create /home/pi/.local/share/vlc: Permission denied
[0x285a08] main playlist debug: playlist correctly deactivated
[0x2768f0] main libvlc debug: removing all services discovery tasks
[0x2768f0] main libvlc debug: removing all interfaces
[0x2768f0] main libvlc debug: exiting
[0x296978] main interface debug: removing module "dummy"
[0x3df158] main interface debug: removing module "hotkeys"
[0x285a08] main playlist debug: destroying
[0x2768f0] main libvlc debug: TIMER Items array build : Total 12.446 ms / 1 intvls (Avg 12.446 ms)
[0x2768f0] main libvlc debug: removing stats
[0x2768f0] main libvlc debug: removing module "memcpy"
pi@pwnpi:~$
pi@pwnpi:~$ raspivid -o - -t 99999 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264
VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
[0x1d548f0] main libvlc debug: VLC media player - 2.0.3 Twoflower
[0x1d548f0] main libvlc debug: Copyright © 1996-2012 VLC authors and VideoLAN
[0x1d548f0] main libvlc debug: revision 2.0.2-93-g77aa89e
[0x1d548f0] main libvlc debug: configured with ./configure  '--enable-static' '--build=arm-linux-gnueabihf' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' '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' '--sysconfdir=/etc' '--with-binary-version=5' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--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-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-fbosd' '--enable-libva' '--enable-linsys' '--enable-omxil' '--enable-pvr' '--enable-udev' '--enable-v4l2' '--disable-crystalhd' '--disable-mmx' '--disable-sse' '--disable-neon' '--disable-altivec' 'build_alias=arm-linux-gnueabihf'
[0x1d548f0] main libvlc debug: searching plug-in modules
[0x1d548f0] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x1d548f0] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x1d548f0] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0x1d548f0] main libvlc debug: plug-ins loaded: 410 modules
[0x1d548f0] main libvlc debug: opening config file (/home/pi/.config/vlc/vlcrc)
[0x1d548f0] main libvlc debug: translation test: code is "en_GB"
[0x1d548f0] main libvlc debug: CPU has capabilities FPU
[0x1d548f0] main libvlc debug: looking for memcpy module: 1 candidate
[0x1d548f0] main libvlc debug: using memcpy module "memcpy"
[0x1ebd028] main interface debug: looking for interface module: 1 candidate
[0x1ebd028] main interface debug: using interface module "hotkeys"
[0x1ebd028] main interface debug: TIMER module_need() : 10.516 ms - Total 10.516 ms / 1 intvls (Avg 10.516 ms)
[0x1d75c28] main interface debug: looking for interface module: 1 candidate
[0x1d75c28] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x1d75c28] main interface debug: no interface module matching "inhibit,none" could be loaded
[0x1d75c28] main interface debug: TIMER module_need() : 11.108 ms - Total 11.108 ms / 1 intvls (Avg 11.108 ms)
[0x1d75c28] main interface error: no suitable interface module
[0x1d63a08] main playlist debug: playlist threads correctly activated
[0x1d63a08] main playlist debug: adding item `stdin' ( stream:///dev/stdin )
[0x1d74900] main interface debug: looking for interface module: 1 candidate
[0x1d63a08] main playlist debug: rebuilding array of current - root Playlist
[0x1d63a08] main playlist debug: rebuild done - 1 items, index -1
[0x1d74ac0] main input debug: Creating an input for 'stdin'
[0x1d63a08] main playlist debug: no fetch required for (null) (art currently (null))
[0x1d74900] main interface debug: no interface module matching "globalhotkeys,none" could be loaded
[0x1d74900] main interface debug: TIMER module_need() : 26.783 ms - Total 26.783 ms / 1 intvls (Avg 26.783 ms)
[0x1d74900] main interface error: no suitable interface module
[0x1d548f0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x1d74ac0] main interface debug: looking for interface module: 1 candidate
[0x1d74ac0] dummy interface: using the dummy interface module...
[0x1d74ac0] main interface debug: using interface module "dummy"
[0x1d74ac0] main interface debug: TIMER module_need() : 9.065 ms - Total 9.065 ms / 1 intvls (Avg 9.065 ms)
[0x1d63a08] main playlist debug: processing request item: null, node: Playlist, skip: 0
[0x1d63a08] main playlist debug: starting playback of the new playlist item
[0x1d63a08] main playlist debug: resyncing on stdin
[0x1d63a08] main playlist debug: stdin is at 0
[0x1d63a08] main playlist debug: creating new input thread
[0x1d74980] main input debug: Creating an input for 'stdin'
[0x1de7920] main stream output debug: using sout chain=`standard{access=http,mux=ts,dst=:8090}'
[0x1de7920] main stream output debug: stream=`standard'
[0x1de7b08] main stream out debug: looking for sout stream module: 1 candidate
[0x1de7b08] main stream out debug: set config option: sout-standard-access to http
[0x1de7b08] main stream out debug: set config option: sout-standard-mux to ts
[0x1de7b08] main stream out debug: set config option: sout-standard-dst to :8090
[0x1de9280] main access out debug: looking for sout access module: 1 candidate
[0x1de9280] main access out debug: net: listening to * port 8090
[0x1de9280] main access out debug: socket error: Address family not supported by protocol
[0x1de9280] main access out debug: using sout access module "access_output_http"
[0x1de9280] main access out debug: TIMER module_need() : 50.412 ms - Total 50.412 ms / 1 intvls (Avg 50.412 ms)
[0x1dea158] main mux debug: looking for sout mux module: 1 candidate
[0x1dea158] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000
[0x1dea158] main mux debug: using sout mux module "mux_ts"
[0x1dea158] main mux debug: TIMER module_need() : 8.346 ms - Total 8.346 ms / 1 intvls (Avg 8.346 ms)
[0x1de7920] main stream output debug: muxer support adding stream at any time
[0x1de7920] main stream output debug: muxer prefers to wait for all ES before starting to mux
[0x1de7b08] stream_out_standard stream out debug: using `http/ts://:8090'
[0x1de7b08] main stream out debug: using sout stream module "stream_out_standard"
[0x1de7b08] main stream out debug: TIMER module_need() : 77.389 ms - Total 77.389 ms / 1 intvls (Avg 77.389 ms)
[0x1d74980] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x1d74980] main input debug: `stream:///dev/stdin' gives access `stream' demux `' path `/dev/stdin'
[0x1d74980] main input debug: enforced demux ` h264'
[0x1d74980] main input debug: creating demux: access='stream' demux='h264' location='/dev/stdin' file='/dev/stdin'
[0x1deea58] main demux debug: looking for access_demux module: 0 candidates
[0x1deea58] main demux debug: no access_demux module matched "stream"
[0x1deea58] main demux debug: TIMER module_need() : 4.350 ms - Total 4.350 ms / 1 intvls (Avg 4.350 ms)
[0x1d74980] main input debug: creating access 'stream' location='/dev/stdin', path='/dev/stdin'
[0x1deea58] main access debug: looking for access module: 1 candidate
[0x1deea58] filesystem access debug: opening file `/dev/stdin'
[0x1deea58] main access debug: using access module "filesystem"
[0x1deea58] main access debug: TIMER module_need() : 6.796 ms - Total 6.796 ms / 1 intvls (Avg 6.796 ms)
[0x1deedd8] main stream debug: Using stream method for AStream*
[0x1deedd8] main stream debug: starting pre-buffering
[0x1deedd8] main stream debug: received first data after 0 ms
[0x1deee98] main stream debug: looking for stream_filter module: 7 candidates
[0x1deee98] main stream debug: no stream_filter module matching "any" could be loaded
[0x1deee98] main stream debug: TIMER module_need() : 14.729 ms - Total 14.729 ms / 1 intvls (Avg 14.729 ms)
[0x1deee98] main stream debug: looking for stream_filter module: 1 candidate
[0x1deee98] main stream debug: using stream_filter module "stream_filter_record"
[0x1deee98] main stream debug: TIMER module_need() : 6.244 ms - Total 6.244 ms / 1 intvls (Avg 6.244 ms)
[0x1d74980] main input debug: creating demux: access='stream' demux='h264' location='/dev/stdin' file='/dev/stdin'
[0x1deba20] main demux debug: looking for demux module: 1 candidate
[0x1deba20] h264 demux error: this doesn't look like a H264 ES stream, continuing anyway
[0x1deba20] h264 demux debug: using 25.00 fps
[0x1dde4d8] main demux packetizer debug: looking for packetizer module: 21 candidates
[0x1dde4d8] main demux packetizer debug: using packetizer module "packetizer_h264"
[0x1dde4d8] main demux packetizer debug: TIMER module_need() : 27.521 ms - Total 27.521 ms / 1 intvls (Avg 27.521 ms)
[0x1deba20] main demux debug: using demux module "h264"
[0x1deba20] main demux debug: TIMER module_need() : 35.894 ms - Total 35.894 ms / 1 intvls (Avg 35.894 ms)
[0x1d74980] main input debug: starting in async mode
[0x1ddd8c0] main demux meta debug: looking for meta reader module: 2 candidates
[0x1ddd8c0] lua demux meta debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/reader
[0x1ddd8c0] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x1ddd8c0] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x1ddd8c0] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x1ddd8c0] main demux meta debug: no meta reader module matching "any" could be loaded
[0x1ddd8c0] main demux meta debug: TIMER module_need() : 46.141 ms - Total 46.141 ms / 1 intvls (Avg 46.141 ms)
[0x1d74980] main input debug: `stream:///dev/stdin' successfully opened
[0x1d74980] main input debug: EOF reached
[0x1d63a08] main playlist debug: finished input
[0x1deea58] main access debug: waitpipe: object killed
[0x1deba20] main demux debug: removing module "h264"
[0x1dde4d8] main demux packetizer debug: removing module "packetizer_h264"
[0x1deee98] main stream debug: removing module "stream_filter_record"
[0x1deea58] main access debug: removing module "filesystem"
[0x1d63a08] main playlist debug: dead input
[0x1de7920] main stream output debug: destroying useless sout
[0x1de7b08] main stream out debug: destroying chain... (name=standard)
[0x1de7b08] main stream out debug: removing module "stream_out_standard"
[0x1dea158] main mux debug: removing module "mux_ts"
[0x1de9280] main access out debug: removing module "access_output_http"
[0x1de9b80] main http host debug: waitpipe: object killed
[0x1de9b80] main http host debug: HTTP host removed
[0x1de9280] access_output_http access out debug: Close
[0x1de7b08] main stream out debug: destroying chain done
[0x1d74980] main input debug: TIMER input launching for 'stdin' : 220.258 ms - Total 220.258 ms / 1 intvls (Avg 220.258 ms)
[0x1d63a08] main playlist debug: changing item without a request (current 0/1)
[0x1d63a08] main playlist debug: nothing to play

The bottom line seems to look not good...

LeoWhite
Posts: 131
Joined: Mon Apr 08, 2013 9:20 am
Contact: Website

Re: Using VLC to stream from the camera - Help needed

Wed May 22, 2013 7:53 am

wallarug wrote:no luck here :(

Here is the ouput from the console.

Code: Select all


pi@pwnpi:~$
pi@pwnpi:~$ raspivid -o - -t 99999 |cvlc -vvv stream:///dev/stdin --sout 

This timeout equates to around 1.5 minutes
wallarug wrote:

Code: Select all


[0x1d74980] main input debug: `stream:///dev/stdin' successfully opened
[0x1d74980] main input debug: EOF reached
[0x1d63a08] main playlist debug: finished input
and this indicates VLC ran out of video to process. So try it again but with a larger timeout (e.g. 9999999).

Leo

User avatar
wallarug
Posts: 460
Joined: Mon May 14, 2012 8:21 am
Location: Sydney, Australia

Re: Using VLC to stream from the camera - Help needed

Wed May 22, 2013 7:55 am

LeoWhite wrote:
wallarug wrote:no luck here :(

Here is the ouput from the console.

Code: Select all


pi@pwnpi:~$
pi@pwnpi:~$ raspivid -o - -t 99999 |cvlc -vvv stream:///dev/stdin --sout 


will do.

hang a minute while I try.

This timeout equates to around 1.5 minutes
wallarug wrote:

Code: Select all


[0x1d74980] main input debug: `stream:///dev/stdin' successfully opened
[0x1d74980] main input debug: EOF reached
[0x1d63a08] main playlist debug: finished input
and this indicates VLC ran out of video to process. So try it again but with a larger timeout (e.g. 9999999).

Leo

User avatar
wallarug
Posts: 460
Joined: Mon May 14, 2012 8:21 am
Location: Sydney, Australia

Re: Using VLC to stream from the camera - Help needed

Wed May 22, 2013 7:57 am

no luck there either.

here is what I put into the command line:

Code: Select all

raspivid -o - -t 99999999 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
I have the camera connected correctly (tested) and its connected to the network.

Return to “Camera board”