cvlc command help

About encoding, codec settings, muxers and filter usage
flibertygibbet
New Cone
New Cone
Posts: 4
Joined: 17 Nov 2017 10:27

cvlc command help

Postby flibertygibbet » 17 Nov 2017 10:42

Hi all,

New to all this streaming business so please be gentle ;)

So I can set up a stream using a http stream as a source and outputing it to http on 8080 via the GUI.

What i can't figure out is how to do the same thing using the command line.

The gui gives me an output string of :

Code: Select all

:sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=48000}:http{mux=ts,dst=:8080/} :sout-keep
and the input stream i use for example is :

Code: Select all

http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_two.m3u8
so I've tried

Code: Select all

cvlc http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_two.m3u8:sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=48000}:http{mux=ts,dst=:8080/} :sout-keep
But that just throws a load of errors.

Can anyone point me in the right direction of what the correct format for cvlc would be ?

Thanks in advance for any help.

NewtownGuy
Blank Cone
Blank Cone
Posts: 50
Joined: 11 Feb 2014 19:01

Re: cvlc command help

Postby NewtownGuy » 17 Nov 2017 13:58

Did you try a space in front of :sout=#xxx ?

flibertygibbet
New Cone
New Cone
Posts: 4
Joined: 17 Nov 2017 10:27

Re: cvlc command help

Postby flibertygibbet » 17 Nov 2017 15:25

Thanks for the reply.

yes i tried it with a space and replacing the : with --.

I always get the following error(s)

Code: Select all

core stream output error: stream chain failed for `transcodesamplerate=48000:httpdst=:8080/' [aba00510] core input error: cannot start stream output instance, aborting

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: cvlc command help

Postby Jean-Baptiste Kempf » 18 Nov 2017 11:35

missing "" around your sout option
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

flibertygibbet
New Cone
New Cone
Posts: 4
Joined: 17 Nov 2017 10:27

Re: cvlc command help

Postby flibertygibbet » 20 Nov 2017 09:39

Hi & thanks for the reply.

OK so i tried it with "" arround the sout's :

Code: Select all

cvlc http://a.files.bbci.co.uk/media/live/manifesto/dio/simulcast/hls/uk/sbr_high/ak/bbc_radio_two.m3u8 ":sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=48000}:http{mux=ts,dst=:8081/}" ":sout-keep"
This now throws a whole load of errors :

Code: Select all

[08a37108] http access error: cannot connect to as-hls-uk-live.akamaized.net:80 [08a37108] access_mms access error: cannot connect to as-hls-uk-live.akamaized.net:80 [abc07970] core stream error: no suitable access module for `http://as-hls-uk-live.akamaized.net/pool_7/live/bbc_radio_two/bbc_radio_two.isml/bbc_radio_two-audio=320000-236119667.ts' [abc07970] httplive stream error: downloading segment 236119667 from stream 0 failed
What is really frustrating is that this works perfectly and simply from the GUI - is their a command log that can be retrieved from the GUI to see what commands are actually being used ? or is that too easy :)

Cheers

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: cvlc command help

Postby Jean-Baptiste Kempf » 20 Nov 2017 13:07

Code: Select all

cvlc -vvv "http://a.files.bbci.co.uk/media/live/manifesto/dio/simulcast/hls/uk/sbr_high/ak/bbc_radio_two.m3u8" --sout="#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=48000}:http{mux=ts,dst=:8081/}" --sout-keep
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

flibertygibbet
New Cone
New Cone
Posts: 4
Joined: 17 Nov 2017 10:27

Re: cvlc command help

Postby flibertygibbet » 20 Nov 2017 17:43

Awesome, thanks very much.

Funnily enough i managed to get it working using input from the line-in with no problem :)

Thanks for the help

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: cvlc command help

Postby Jean-Baptiste Kempf » 28 Nov 2017 13:55

Cool.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests