[MPlayer-users] Cannot record audio from tv tuner.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Tue Aug 12 19:57:52 CEST 2014
On 12.08.2014, at 18:42, Marc MERLIN <marc_mplayer at merlins.org> wrote:
> 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?
Don't have anything to test, but the lack of messages in the first case means you got the correct syntax.
I do not know where the not recognized/supported messages comes from then afterwards.
More information about the MPlayer-users
mailing list