[MPlayer-users] Taking the input from a USB microphone in mplayer

Sam Spilsbury smspillaz at gmail.com
Fri Jan 1 17:21:46 CET 2010


Hi everyone,

I'm recording analogue video from a v4l2 device (EasyCap D60) - it
works great with mplayer. Inside the device there is a syntek
framegrabber but also a USB line in device which converts dual channel
RCA sound to DSP on the same bus. Currently, I am using the command:

mplayer tv:// driver=v4l2:width=640:height=640:fps=25:outfmt=rgb24:device=/dev/video0

To grab frames from the video device and pipe it to MPlayer which
works great. I'm aware that MPlayer supports audio streams from a
separate source, as a verified worked with -audiofile. Is there any
way that I would be able to use the inbuilt USB microphone as an audio
stream while playing along with the video? I did not see anything in
the man pages about this. I have verified that the USB line in device
works with the GNOME sound recorder (and I PulseAudio I have the USB
microphone with the correct inputs set as the default recording
device).

I have already tried using :alsa:samplerate=128000 but that just
produces no audio. I also  tried adevice=/dev/*dsp* where *dsp* is
each one of the dsp devices and that produces no audio as well.

If anyone could come up with a unified command line that would be
great. Hopefully such arguments would be similar in mencoder as well.

-- 
Sam Spilsbury


More information about the MPlayer-users mailing list