Page 1 of 1
streamout syntax for cvlc, is this correct?
Posted: 25 May 2019 14:59
by galen
I have an USB2 webcam 480p that gets picked up by v4l2
but vlc/cvlc will unreliably stream out.
vlc can self display during stream out, that parts works
Code: Select all
cvlc -vv ":sout=#transcode{vcodec=VP80,vb=2000,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:duplicate{dst=http{mux=webm,dst=:8084/},dst=display} :sout-all :sout-keep" v4l2:///dev/video0
I've also tried MP4, iPod 320p vlc transcode profiles
I above example I'm using WEBM capsule above on port 8084 or 8081 8082 etc.. 48080
but rarely pickup any open port created by vlc
I've tried several unused ports
tried variations
to monitor for vlc opened ports
but only rarely does it work
Is there a limit to what ports vlc can output on (Xunbuntu 18.04 OS) ?
Is there a lock file vlc is using to prevent some functions / port opening?
PS I have the codecs, vlc 3.0.4
Re: streamout syntax for cvlc, is this correct?
Posted: 25 May 2019 15:08
by InTheWings
The muxers for HTTP server are:
asf, mp4stream, ps, ts, mpjpeg, ogg, avformat (so webm)
I would try to output to a file first
Re: streamout syntax for cvlc, is this correct?
Posted: 25 May 2019 21:20
by galen
thanks
I don't think PS is a streamable container.
having some success with OGV & theora vcodec & MP3 acodec
but the vorbis acodec isn't being detected by vlc. odd. it exists.
Re: streamout syntax for cvlc, is this correct?
Posted: 27 May 2019 15:20
by galen
vlc control-S works when I use ogg & theora but syntax for cvlc is giving me trouble
I believe the inability to open a specific port might be due to a lock file or vlc holding the port in limbo due to a playlist entry,
completely closing all running vlc s helps.
Saving to a file has worked for over 3 hours, example (ogg theo) 1/2 scale 4-12 fps, no sound
Re: streamout syntax for cvlc, is this correct?
Posted: 27 May 2019 18:18
by galen
[url]https://wiki.videolan.org/Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line/#Simplified_Syntax[/url]
still have problems
Re: streamout syntax for cvlc, is this correct?
Posted: 28 May 2019 17:43
by galen
the string from vlc is
:sout=#transcode{vcodec=theo,vb=560,fps=12,scale=0.5,acodec=none,scodec=none}:duplicate{dst=http{mux=ogg,dst=:8080/},dst=display} :sout-all :sout-keep
I've tried variations with " and ' still don't work
cvlc v4l2:///dev/video0 :sout=#transcode{vcodec=theo,vb=560,fps=12,scale=0.5,acodec=none,scodec=none}:duplicate{dst=http{mux=ogg,dst=:8080/},dst=display} :sout-all :sout-keep
Re: streamout syntax for cvlc, is this correct?
Posted: 28 Jun 2019 14:16
by galen
success is nearing
this works:
stream http to port 8080
low bandwidth 6fps,
browser viewable: ogg theo, no audio
Code: Select all
cvlc v4l2:///dev/video0 --sout="#transcode{vcodec=theo,vb=2000,fps=6,acodec=none,scodec=none}:duplicate{dst=http{mux=ogg,dst=:8080/},dst=display}all:keep"
note: you can not use fps of 4, it is too low, also I seem to have a vague memory that webm must be at least 5 fps
bandwidth per user connected
14fps=50KBs, 6fps=23KBs,
Re: streamout syntax for cvlc, is this correct?
Posted: 28 Jun 2019 14:54
by unidan
Hi, you will never have audio with a v4l2:// input.
You need an --input-slave pulse://yourdevice.monitor to record sound too
Re: streamout syntax for cvlc, is this correct?
Posted: 28 Jun 2019 23:18
by galen
Hi, you will never have audio with a v4l2:// input.
You need an --input-slave pulse://yourdevice.monitor to record sound too
thanks, i didn't want any audio