Discussion:
[FFmpeg-user] Recording audio to FLAC on Mac OS X
Charlie Dickey
2013-12-03 03:37:31 UTC
Permalink
Hi all,

Is there a way to use ffmpeg to record audio and save it as a FLAC file on Mac OS X? I have seen Linux options but none for Mac.

I would like to avoid using SoX because I've had some compatibility issues with it.

Best,

Charlie
Carl Eugen Hoyos
2013-12-03 18:02:41 UTC
Permalink
Post by Charlie Dickey
Is there a way to use ffmpeg to record audio and
save it as a FLAC file on Mac OS X?
Could you elaborate what you mean with "record"?

Carl Eugen
Hans J. Albertsson
2013-12-04 11:05:15 UTC
Permalink
Taking the OBVIOUS interpretation as gospel, I'd say Charlie means using
audio input to a computer (the microphone input, or some other audio
device) and somehow managing to send that as a stream to ffmpeg and have
ffmpeg save the data stream as a flac file.

Two parts; first send a stream of data from audio input to ffmpeg, and
second have ffmpeg save it as flac.

I suppose at least the second one could be answered w/o needing to know
more. Or else one could possibly dream up a clarification question to
assist the writer in getting his thought process in better order, if the
original question is partly confusing or unclear.
All with a goal of bringing us all forward, towards better knowledge and
clearer understanding.

Which, I suppose, is the actual reason for the existence of a mailing
list such as ffmpeg-user.....


Just my 3 bits per 15 minutes watermark....
Post by Carl Eugen Hoyos
Post by Charlie Dickey
Is there a way to use ffmpeg to record audio and
save it as a FLAC file on Mac OS X?
Could you elaborate what you mean with "record"?
Carl Eugen
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Hans J. Albertsson
2013-12-04 11:10:48 UTC
Permalink
ffmpeg -codecs | grep -i flac
returns
DEA..S flac FLAC (Free Lossless Audio Codec)

so there is a flac encoder, and thus ffmpeg should be able to produce a
flac "recording" if the signal can be gotten to ffmpeg in the first place.

ffmpeg -i ....... -acodec flac out.flac

???

Getting the audio to fdfmpeg, i e what to give as argument to "-i", I
suppose, is better answered by Mr. Hoyos.
Post by Hans J. Albertsson
Taking the OBVIOUS interpretation as gospel, I'd say Charlie means
using audio input to a computer (the microphone input, or some other
audio device) and somehow managing to send that as a stream to ffmpeg
and have ffmpeg save the data stream as a flac file.
Two parts; first send a stream of data from audio input to ffmpeg, and
second have ffmpeg save it as flac.
I suppose at least the second one could be answered w/o needing to
know more. Or else one could possibly dream up a clarification
question to assist the writer in getting his thought process in better
order, if the original question is partly confusing or unclear.
All with a goal of bringing us all forward, towards better knowledge
and clearer understanding.
Which, I suppose, is the actual reason for the existence of a mailing
list such as ffmpeg-user.....
Just my 3 bits per 15 minutes watermark....
Post by Carl Eugen Hoyos
Post by Charlie Dickey
Is there a way to use ffmpeg to record audio and
save it as a FLAC file on Mac OS X?
Could you elaborate what you mean with "record"?
Carl Eugen
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Henk D. Schoneveld
2013-12-04 11:18:54 UTC
Permalink
Post by Hans J. Albertsson
ffmpeg -codecs | grep -i flac
returns
DEA..S flac FLAC (Free Lossless Audio Codec)
so there is a flac encoder, and thus ffmpeg should be able to produce a flac "recording" if the signal can be gotten to ffmpeg in the first place.
ffmpeg -i ....... -acodec flac out.flac
???
Getting the audio to fdfmpeg, i e what to give as argument to "-i", I suppose, is better answered by Mr. Hoyos.
What is the source of the sound, microphone audio-in, then you need to know how these devices are called in OSX
Post by Hans J. Albertsson
Taking the OBVIOUS interpretation as gospel, I'd say Charlie means using audio input to a computer (the microphone input, or some other audio device) and somehow managing to send that as a stream to ffmpeg and have ffmpeg save the data stream as a flac file.
Two parts; first send a stream of data from audio input to ffmpeg, and second have ffmpeg save it as flac.
I suppose at least the second one could be answered w/o needing to know more. Or else one could possibly dream up a clarification question to assist the writer in getting his thought process in better order, if the original question is partly confusing or unclear.
All with a goal of bringing us all forward, towards better knowledge and clearer understanding.
Which, I suppose, is the actual reason for the existence of a mailing list such as ffmpeg-user.....
Just my 3 bits per 15 minutes watermark....
Post by Carl Eugen Hoyos
Post by Charlie Dickey
Is there a way to use ffmpeg to record audio and
save it as a FLAC file on Mac OS X?
Could you elaborate what you mean with "record"?
Carl Eugen
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Hans J. Albertsson
2013-12-04 14:55:47 UTC
Permalink
Post by Henk D. Schoneveld
Post by Hans J. Albertsson
ffmpeg -codecs | grep -i flac
returns
DEA..S flac FLAC (Free Lossless Audio Codec)
so there is a flac encoder, and thus ffmpeg should be able to produce a flac "recording" if the signal can be gotten to ffmpeg in the first place.
ffmpeg -i ....... -acodec flac out.flac
???
Getting the audio to fdfmpeg, i e what to give as argument to "-i", I suppose, is better answered by Mr. Hoyos.
What is the source of the sound, microphone audio-in, then you need to know how these devices are called in OSX
Of course, but OSX is a sort-of unix, so some sort of indication could
probably be provided if someone feels absolutely certain that there
actually are audio-in devices that can be specified as input for ffmpeg.

I have a nasty feeling there might be more to it than just specifying a
device name, one should probably add something to tell if it's alsa or
jack (under linuxy environs) or what. Or whatever the audio in channel
protocols are in Mac OSX.
Post by Henk D. Schoneveld
Post by Hans J. Albertsson
Taking the OBVIOUS interpretation as gospel, I'd say Charlie means using audio input to a computer (the microphone input, or some other audio device) and somehow managing to send that as a stream to ffmpeg and have ffmpeg save the data stream as a flac file.
Two parts; first send a stream of data from audio input to ffmpeg, and second have ffmpeg save it as flac.
I suppose at least the second one could be answered w/o needing to know more. Or else one could possibly dream up a clarification question to assist the writer in getting his thought process in better order, if the original question is partly confusing or unclear.
All with a goal of bringing us all forward, towards better knowledge and clearer understanding.
Which, I suppose, is the actual reason for the existence of a mailing list such as ffmpeg-user.....
Just my 3 bits per 15 minutes watermark....
Post by Carl Eugen Hoyos
Post by Charlie Dickey
Is there a way to use ffmpeg to record audio and
save it as a FLAC file on Mac OS X?
Could you elaborate what you mean with "record"?
Carl Eugen
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Continue reading on narkive:
Loading...