[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to use mencoder to record TV program



/dev/dsp* does not exist, the output of "ls /dev/dsp*" contains Chinese, (Command line interface has been partially localized). No wonder your command does not work. Anyway, I copy its output below, followed by other outputs:

PS: I use Sound Blaster 16 (ISA) and use snd-sb16 module in etch

________________________________________________________________________
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@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: BT848A video (Lifeview FlyVideo
 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; 3 = Composite3;
 Current input: 0
 Current format: YVU420
v4l2: current audio mode is : MONO
Selected channel: 4 (freq: 77.250)
Unable to open '/dev/dsp1': No such file or directory
Unable to open '/dev/dsp1': No such file or directory
Unable to open '/dev/dsp1': No such file or directory
v4l2: 0 frames successfully processed, 0 frames dropped.
./tv1: line 4:  2420 ¶Î´íÎó                  mencoder -tv driver=v4l2:width=768:height=576:forceaudio:immediatemode=0:adevice=/dev/dsp1: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


ls /dev/snd/
controlC0
hwC0D0
pcmC0D0c
pcmC0D0p
timer

cat /proc/asound/oss/devices
10: [0- 0]: hardware dependent

cat /proc/asound/devices
 0: [ 0]   : control
  4: [ 0- 0]: hardware dependent
 16: [ 0- 0]: digital audio playback
 24: [ 0- 0]: digital audio capture
 33:        : timer

lsmod | grep snd
snd_sb16               16168  0 
snd_opl3_lib            9920  1 snd_sb16
snd_sb16_dsp            9856  1 snd_sb16
snd_sb16_csp           18432  1 snd_sb16
snd_sb_common          15968  3 snd_sb16,snd_sb16_dsp,snd_sb16_csp
snd_hwdep               8836  2 snd_opl3_lib,snd_sb16_csp
snd_mpu401_uart         8064  1 snd_sb16
snd_rawmidi            22560  1 snd_mpu401_uart
snd_seq_device          7820  2 snd_opl3_lib,snd_rawmidi
snd_ac97_codec         83104  0 
snd_ac97_bus            2400  1 snd_ac97_codec
snd_pcm                68676  3 snd_sb16,snd_sb16_dsp,snd_ac97_codec
snd_timer              20996  2 snd_opl3_lib,snd_pcm
snd                    47012  12 snd_sb16,snd_opl3_lib,snd_sb16_dsp,snd_sb16_csp,snd_sb_common,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer
soundcore               9248  1 snd
snd_page_alloc          9640  1 snd_pcm


--- On Tue, 11/4/08, Emanoil Kotsev <deloptes@yahoo.com> wrote:

> From: Emanoil Kotsev <deloptes@yahoo.com>
> Subject: Re: how to use mencoder to record TV program
> To: debian-user@lists.debian.org
> Date: Tuesday, November 4, 2008, 6:18 AM
> Serena Cantor wrote:
> 
> > 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
> > 
> 
> Ok so there is a progress with as I see, but we don't
> know what's your sound
> device related to the card, so that's why it fails.
> There is a slight
> difference how mplayer and mencoder handle the sound
> devices. I don't have
> a bt848 card, so I'm not sure if it's working in
> alsa or in the oss
> emulation. Try this one
> 
> mencoder -tv
> driver=v4l2:width=768:height=576:forceaudio:immediatemode=0:adevice=/dev/dsp1: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>
> 
> If it's not working, please post feedback again and
> also the output of the
> command
> 
> ls /dev/dsp*
> 
> and
> 
> ls /dev/snd/
> 
> and
> 
> cat /proc/asound/devices
> 
> and
> 
> cat /proc/asound/oss/devices
> 
> and
> 
> lsmod | grep snd
> 
> 
> regards
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org





Reply to: