[MEncoder-users] how to capture specified channel/station from tv tuner card (or i'm having problems with, please help)?
Jorge Peixoto de Morais Neto
please.no.spam.here at gmail.com
Tue Jul 31 21:11:35 CEST 2007
> i run ubuntu feisty, have mplayer and mencoder, i'm trying to capture from my tv card (bt878), i
> got it working with the following commands (my tv tuner card is /dev/video0 and my audio is
> /dev/dsp):
>
> mencoder -tv
> driver=v4l:device=/dev/video0:input=0:outfmt=yuy2:width=640:height=480:norm=pal:channel=MTV:audiorate=44100:amode=0:adevice=/dev/dsp
> tv:// -o /home/jody/TVrecords/tv.avi -ovc lavc -oac lavc
>
> I also tried these:
>
> mencoder -tv
> driver=v4l:device=/dev/video0:input=0:outfmt=yuy2:width=640:height=480:norm=pal:audiorate=44100:amode=0:adevice=/dev/dsp
> tv://MTV -o /home/jody/TVrecords/tv.avi -ovc lavc -oac lavc
>
> mencoder -tv
> driver=v4l2:device=/dev/video0:input=0:outfmt=yuy2:width=640:height=480:norm=pal:channel=MTV:audiorate=44100:amode=0:adevice=/dev/dsp
> tv:// -o /home/jody/TVrecords/tv.avi -ovc lavc -oac lavc
>
> mencoder -tv
> driver=v4l2:device=/dev/video0:input=0:outfmt=yuy2:width=640:height=480:norm=pal:audiorate=44100:amode=0:adevice=/dev/dsp
> tv://MTV -o /home/jody/TVrecords/tv.avi -ovc lavc -oac lavc
>
> the problem is that the channel option is not working, i mean specifing the tv station to record,
> though e.g. 'mplayer tv://MTV' works fine (cuz i have created the '/home/jody/.mplayer/config'
> with the chans/stations specified), anyone got an idea what i'm doing wrong? below is my mplayer,
> mencoder, available codecs, and what i got in the console when i ran the above commands info, btw
> all command give me a working and fine capture file from my tv tuner card, but as i said the
> problem is that it keeps recording the same chan, which was set last and does not record the
> channel specified (MTV), thx for any help, the info is below,
> jody :D
I believe that the configuration file for mencoder is
~/.mplayer/mencoder.conf, and the one for mplayer is ~/.mplayer/config
So, put some configuration info in ~/.mplayer/mencoder.conf. Check the
mencoder man page for details.
Also, you might want to use the hqdn3d filter to avoid noise. As an
example, here is my mencoder.conf:
[tv]
tv=driver=v4l2:normid=4:width=640:height=480:chanlist=us-cable
tv=alsa=yes:adevice=hw.1,1:audiorate=32000
srate=32000
tv=channels=4-SBT,5-Vanguarda,7-Record,40-RedeTV,42-Gazeta,13-Band
vf=crop=624:464:0:8,pp=lb,denoise3d,decimate
oac=mp3lame=yes
ovc=lavc=yes
lavcopts=vqscale=5
lameopts=q=6
I can record tv like this:
mencoder -profile tv tv://2 -o out.avi
or
mencoder -profile tv tv://Vanguarda -o out.avi
The two command lines above do the same thing.
Ps: If you stopped watching MTV you would probably write better
English :)
--
Software is like sex: it is better when it is free. --Linus Torvalds
More information about the MEncoder-users
mailing list