This works (ffmpeg, alsa, USB): ffmpeg -f alsa -ar 44100 -ac 1 -i plughw:1,0 -acodec pcm_s16le alsa-exp-1.wav
arecord -D plughw:1,0 -d 10 -r 44100 -c 1 -f S16_LE -t wav alsa-exp-2.wav On Fri, Jun 19, 2009 at 11:46 AM, Nicolas Krieger <[email protected]> wrote: > 2009/6/19, Stefano Sabatini <[email protected]>: > > > > On date Wednesday 2009-06-17 17:14:54 +0200, Nicolas Krieger encoded: > > > > > Hi, > > > > > > I need some help about audio grabbing. > > > > > > I would like to know what doess ffmpeg uses to grab audio. Does it uses > > oss > > > or alsa ? > > > > > > FFmpeg/libavdevice can grab from ALSA, OSS or jack. > > > > As an example of the latter: > > ffmpeg -f jack -i JACK_READABLE_CLIENT_ID jackout.wav > > > > The same can be done programmatically using the libavdevice API. > > > > > > > What I do is to open /dev/dsp with oss format (av_find_input_format). > So, > > I > > > think that I'm using oss. > > > > > > How to do to use alsa ? > > > > > > I think you need to explicitely specify the demuxer, alsa in this > > case, I'm not sure FFmpeg is smart enough to figure it out by itself > > from the name of the device. > > > > HTH, regards. > > > > > Yes, that's it, I would like to use alsa programmatically, but I haven't > found how to do. > But I am not recording from an usb sound card, I just want to record from > the "default" sound card. > > Thanks for the answers > Nicolas Krieger > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
