Record streaming audio to FLAC format

About encoding, codec settings, muxers and filter usage
EparionaD
New Cone
New Cone
Posts: 3
Joined: 17 Feb 2018 14:37

Record streaming audio to FLAC format

Postby EparionaD » 17 Feb 2018 14:47

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'}

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Record streaming audio to FLAC format

Postby Rémi Denis-Courmont » 17 Feb 2018 15:37

No, Mux should probably be raw or Ogg.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

srafay
New Cone
New Cone
Posts: 4
Joined: 17 Feb 2018 12:59
VLC version: 2.2.2
Operating System: Ubuntu 16.04
Contact:

Re: Record streaming audio to FLAC format

Postby srafay » 18 Feb 2018 16:27

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests