Page 1 of 1

Record streaming audio to FLAC format

Posted: 17 Feb 2018 14:47
by EparionaD
Good Morning

I have a question, I am trying to record audio from a radio by streaming to the FLAC format with the following characteristics:

Channel: Mono
Sample rate: 16000
Bite rate: 320 or 128

I have the following expression that I am using, is it the correct one?

Code: Select all

"--sout=#transcode{acodec=flac,ab=320,channels=1,samplerate=16000}:std{access=file,mux=flac,dst='example.flac'}

Re: Record streaming audio to FLAC format

Posted: 17 Feb 2018 15:37
by RĂ©mi Denis-Courmont
No, Mux should probably be raw or Ogg.

Re: Record streaming audio to FLAC format

Posted: 18 Feb 2018 16:27
by srafay
You are using the correct audio codec acodec=flac but the mux should either be raw or ogg (mux=raw or mux=ogg). flac is the accepted audio codec for ogg container format and is thus used with it mostly.

For more details, look at this example: Extracting audio in FLAC format

And the supported VLC Muxers