Page 1 of 1

cvlc command help

Posted: 17 Nov 2017 10:42
by flibertygibbet
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.

Re: cvlc command help

Posted: 17 Nov 2017 13:58
by NewtownGuy
Did you try a space in front of :sout=#xxx ?

Re: cvlc command help

Posted: 17 Nov 2017 15:25
by flibertygibbet
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

Re: cvlc command help

Posted: 18 Nov 2017 11:35
by Jean-Baptiste Kempf
missing "" around your sout option

Re: cvlc command help

Posted: 20 Nov 2017 09:39
by flibertygibbet
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

Re: cvlc command help

Posted: 20 Nov 2017 13:07
by Jean-Baptiste Kempf

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

Re: cvlc command help

Posted: 20 Nov 2017 17:43
by flibertygibbet
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

Re: cvlc command help

Posted: 28 Nov 2017 13:55
by Jean-Baptiste Kempf
Cool.