Re: how to use mencoder to record TV program



The command you give does not work. I'm sure no other TV program is running..
Below are output by your command, followed by example at www.mplayerhq.hu

_________________________________________________________________
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: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@xxxxxxxxxxxxxxxx>
comment: first try, more to come ;-)
Selected device: BT848A video (Prolink Pixelview
Tuner cap:
Tuner rxs: MONO
Capabilites: video capture video overlay VBI capture device tuner read/write streaming
supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
Current input: 0
Current format: YVU420
v4l2: current audio mode is : MONO
Selected channel: 4 (freq: 77.250)
Unable to open '/dev/dsp': No such file or directory
Unable to open '/dev/dsp': No such file or directory
Unable to open '/dev/dsp': No such file or directory
v4l2: 0 frames successfully processed, 0 frames dropped.
./tv3: line 4: 2618 ¶Î´íÎó mencoder -tv driver=v4l2:width=768:height=576:chanlist=china-bcast -oac mp3lame -lameopts cbr:br=64 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900:autoaspect=1 -vf scale,pp=lb -o output.avi tv://4



_________________________________________________________________________________________________
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)
Unable to open '/dev/dsp': 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@xxxxxxxxx> wrote:

From: Emanoil Kotsev <deloptes@xxxxxxxxx>
Subject: Re: how to use mencoder to record TV program
To: debian-user@xxxxxxxxxxxxxxxx
Date: Monday, November 3, 2008, 9:40 PM
Serena Cantor wrote:

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

hi,

I missed the -tv indeed

What about the mencoder commands there from the link
http://www.mplayerhq.hu/DOCS/HTML/en/tv-input.html#tv-examples

do they don't work? I guess no, because otherwise you
wouldn't be posting
here

mencoder -tv
driver=v4l2:width=768:height=576:chanlist=china-bcast \
-oac mp3lame -lameopts cbr:br=64 \
-ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=900:autoaspect=1 \
-vf scale,pp=lb -o output.avi tv://<CHANNEL>

Can you try this command and replace <CHANNEL> with
the channel you want to
record? If you miss the channel then I guess the last one
you've tuned the
receiver will be captured.

When recording no other application should be running that
uses your tv card
like xawtv or similar. May be you have tried to watch and
record at the
same time? If you want to do this you better start mencoder
to record the
stream and run mplayer output.avi to watch the stream while
recording.

I changed the v4l to v4l2, because I think the howto is a
bit outdated. You
can try both if it's not working and if you want. I
also added the chanlist
and autoaspect option and instead cropping I use scale
filter.

I hope this will work. Have a look at the output.avi file
and post output if
there are problems like you did now.

regards


--
To UNSUBSCRIBE, email to
debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx





--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages