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

Re: how to use mencoder to record TV program



Serena Cantor wrote:

> /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
> 
> 

what model is the tv card and is it usb, pci or isa?

I assume you can hear sound when watching, so I assume it is connected to
the sound card internally or externally with a cable, can you confirm or
describe how you've connected.
May be we have to capture the sound from the sb16?

I don't see any driver that would do the sound on the bt848a card.
Try may be 

sudo modprobe -v snd_pcm_oss
sudo modprobe -v snd_mixer_oss

now you'll have /dev/dsp* and /dev/mixer*

repeat the commands from the previous mail and report .

regards




Reply to: