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

Danny Uy daceja at gmail.com
Tue Aug 12 18:53:21 CEST 2014


I recently had to restart the process of recording from my TV tuner when I
received several boxes of old VHS tapes which I have started to convert
into digital format. I am running on an Ubuntu desktop. The first step I
did was to make sure that the TV card is able to output video and audio and
that you can view and listen to the output.

I was able to accomplish this and then started recording. I recorded the
video but there was no audio. I had to play around with alsamixer to
finally get the correct setting and I was able to record audio and video.
However, I still cannot connect the audio output of the TV card to my
line-in. I ended up not using the audio patch cable and recorded directly
from the line-out.

I use ffmpeg for recording. The following basic command works for me:

ffmpeg -i v4l2 -f /dev/video0 -i alsa -f default output.avi

Hope this helps!

Danny


On Tue, Aug 12, 2014 at 9:42 AM, 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?
>
> 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/
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>


More information about the MPlayer-users mailing list