streamout syntax for cvlc, is this correct?

About encoding, codec settings, muxers and filter usage
galen
Blank Cone
Blank Cone
Posts: 20
Joined: 15 Jul 2016 15:19

streamout syntax for cvlc, is this correct?

Postby galen » 25 May 2019 14:59

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

Code: Select all

sudo netstat -t -p -l |grep vlc
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

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: streamout syntax for cvlc, is this correct?

Postby InTheWings » 25 May 2019 15:08

The muxers for HTTP server are:
asf, mp4stream, ps, ts, mpjpeg, ogg, avformat (so webm)

I would try to output to a file first
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

galen
Blank Cone
Blank Cone
Posts: 20
Joined: 15 Jul 2016 15:19

Re: streamout syntax for cvlc, is this correct?

Postby galen » 25 May 2019 21:20

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.

galen
Blank Cone
Blank Cone
Posts: 20
Joined: 15 Jul 2016 15:19

Re: streamout syntax for cvlc, is this correct?

Postby galen » 27 May 2019 15:20

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

galen
Blank Cone
Blank Cone
Posts: 20
Joined: 15 Jul 2016 15:19

Re: streamout syntax for cvlc, is this correct?

Postby galen » 27 May 2019 18:18

[url]https://wiki.videolan.org/Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line/#Simplified_Syntax[/url]
still have problems

galen
Blank Cone
Blank Cone
Posts: 20
Joined: 15 Jul 2016 15:19

Re: streamout syntax for cvlc, is this correct?

Postby galen » 28 May 2019 17:43

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

galen
Blank Cone
Blank Cone
Posts: 20
Joined: 15 Jul 2016 15:19

Re: streamout syntax for cvlc, is this correct?

Postby galen » 28 Jun 2019 14:16

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,

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: streamout syntax for cvlc, is this correct?

Postby unidan » 28 Jun 2019 14:54

Hi, you will never have audio with a v4l2:// input.

You need an --input-slave pulse://yourdevice.monitor to record sound too

galen
Blank Cone
Blank Cone
Posts: 20
Joined: 15 Jul 2016 15:19

Re: streamout syntax for cvlc, is this correct?

Postby galen » 28 Jun 2019 23:18

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests