Re: how to use mencoder to record TV program
The command you gives does not work.
It seems to me that you miss "-tv", so I add it, mencoder says sth. wrong with audio device.
I think I can omit chanlist and channel specification in mencoder command, because I can use the command below to watch TV:
mplayer -tv driver=v4l:width=640:height=480:outfmt=i420 -vo xv tv://
Maybe mplayer can manage to do its job with defaults. Omitting them will make things a little easier for me. I'm in China, which use china-bcast in xawtv.
I try a command in page below, it seems to have similiar problem:
http://www.mplayerhq.hu/DOCS/HTML/en/tv-input.html#tv-examples
Below is output of your command after adding "-tv":
MEncoder dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Model: 7, Stepping: 3)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l
name: Video 4 Linux input
author: Alex Beregszaszi
comment: under development
=================================================================
WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!!
As the V4L1 compatibility layer is broken, this may not work.
If you encounter any problems, use driver=v4l2 instead.
Bugreports on driver=v4l with v4l2 drivers will be ignored.
=================================================================
Selected device: BT848A video (Lifeview FlyVideo
Capabilites: capture tuner overlay clipping scales
Device type: 171
Supported sizes: 48x32 => 924x576
Inputs: 4
0: Television: tuner audio tv camera (tuner:1, norm:pal)
1: Composite1: audio camera (tuner:0, norm:pal)
2: S-Video: audio camera (tuner:0, norm:pal)
3: Composite3: audio camera (tuner:0, norm:pal)
Audio mode setup warning!
Requested mode was stereo, but v4l still reports mono.
You may need "forcechan" option to force stereo/mono audio recording.
Unable to open '/dev/dsp1': No such file or directory
============ 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.
Exiting...
--- On Mon, 11/3/08, Emanoil Kotsev <deloptes@yahoo.com> wrote:
> You have to replace with your setup/configuration. The one
> I posted is meant
> to be a shell script.
>
> you have to specify a channel that you want to record this
> is the $CH
> variable. I though as you've been working on command
> line you are familiar
> with all this.
>
> You can try the vdr (video disk recorder) package. There
> are interfaces for
> different desktops like kde or gnome to schedule
> recordings.
>
> I'm in Austria and here they switched to DTV broadcast
> so I'm using now
> klear for recording, but I remember there was a tool to do
> analog recording
> too but don't know what's the name the one I've
> tried is vdr with kvdr.
>
> you may try
>
> mencoder
> driver=v4l:width=640:height=480:outfmt=i420:audiorate=44100:amode=1:audioid=1:adevice=/dev/dsp1:norm=PAL:normid=0:chanlist=europe-west
> tv://<SOME_CHANNEL> -o out.avi
>
> replace <SOME CHANNEL> with the channel you want to
> record i.e. E11
> replace PAL with the standard that's used in your
> location replace
> europe-west with the channel list that is suitable for your
> location.
>
> If it works you'll get out.avi file with the stream. IF
> not post again
> what's the issue.
>
> Never give up!
>
> regards
>
>
> --
> To UNSUBSCRIBE, email to
> debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
Reply to: