[MPlayer-users] Cannot record audio from tv tuner.

Marc MERLIN marc_mplayer at merlins.org
Tue Aug 12 18:42:34 CEST 2014


On Mon, Aug 11, 2014 at 09:04:08PM +0200, Reimar Döffinger wrote:
> > 1.0 does get turned into 1:0, so that part is good.
> > I tried adevice=hw=2.0 which should be my tv device, but any device
> > I put gives me unknown PCM xxxx
> 
> This one (unfortunately) uses a different escaping from -ao.
> I believe you should use
> hw.1,0

Let's look at this problem first, it's the more important one for me.

time mencoder tv:// -ovc x264 -x264encopts
threads=8:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid=normal:weight_b -oac
mp3lame -lameopts cbr:br=128   -fps 25 -o test.avi -tv
driver=v4l2:norm=PAL:width=720:height=576:outfmt=uyvy:device=/dev/video1:input=0:fps=25:alsa:amode=1:forcechan=2:audiorate=48000:forceaudio:immediatemode=0:adevice=hw.2,0 <===
gives
v4l2: ioctl set format failed: Invalid argument
Selected input hasn't got a tuner!
v4l2: ioctl queue buffer failed: Cannot allocate memory
v4l2: 0 frames successfully processed, 0 frames dropped.
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author!  ===
Cannot open demuxer.

time mencoder tv:// -ovc x264 -x264encopts
threads=8:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid=normal:weight_b -oac
mp3lame -lameopts cbr:br=128   -fps 25 -o test.avi -tv
driver=v4l2:norm=PAL:width=720:height=576:outfmt=uyvy:device=/dev/video1:input=0:fps=25:alsa:amode=1:forcechan=2:audiorate=48000:forceaudio:immediatemode=0:adevice=hw=2,0 <===
gives
v4l2: ioctl set format failed: Invalid argument
Selected input hasn't got a tuner!
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hw=2,0
Error opening audio: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hw=2,0
Error opening audio: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hw=2,0
Error opening audio: No such file or directory
v4l2: 0 frames successfully processed, 0 frames dropped.
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author!  ===
Cannot open demuxer.

Does this work for you or anyone else?

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  


More information about the MPlayer-users mailing list