[pvrusb2] Using sysfs to change the input setting and capturing the mpeg stream

Aaron Newcomb anewcomb2 at gmail.com
Mon Jul 31 10:53:08 CDT 2006


I want to use my 29xxx series device to capture the output of my
desktop for use in my open source video podcast (see link below). I
have s-video out enabled on my desktop and my pvrusb2 seems to be
working fine as usual (thanks Mike!). Here is the output from dmesg:

/tmp/pvrusb2-mci-20060726/driver/pvrusb2-main.c: Hauppauge
WinTV-PVR-USB2 MPEG2 Encoder/Tuner : 20060726 (from www.isely.net)
/tmp/pvrusb2-mci-20060726/driver/pvrusb2-main.c: Debug mask is 15 (0xf)
usb 4-1.4: reset high speed USB device using ehci_hcd and address 4
msp3400 1-0040: MSP3445G-B8 found @ 0x80 (pvrusb2_a)
msp3400 1-0040: MSP3445G-B8 supports radio, mode is autodetect and autoselect
saa7115 1-0021: saa7115 found @ 0x42 (pvrusb2_a)
tuner 1-0061: chip found @ 0xc2 (pvrusb2_a)
tda9887 1-0043: chip found @ 0x86 (pvrusb2_a)
tveeprom 1-0050: Hauppauge model 29032, rev D1A3, serial# 7916977
tveeprom 1-0050: tuner model is TCL MFNM05-4 (idx 103, type 43)
tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 1-0050: audio processor is MSP3445 (idx 12)
tveeprom 1-0050: decoder processor is SAA7115 (idx 19)
tveeprom 1-0050: has radio, has IR remote
tuner 1-0061: type set to 43 (Philips NTSC MK3 (FM1236MK3 or FM1236/F))
msp3400 1-0040: MSP3445G-B8 rev1 = 0x0207 rev2 = 0x2d48
msp3400 1-0040: Audio:    volume 65535
msp3400 1-0040: Audio:    balance 0 bass 0 treble 0 loudness off
msp3400 1-0040: Standard: autodetect start (mono)
msp3400 1-0040: Audmode:  0x0001
msp3400 1-0040: Routing:  0x00000000 (input) 0x00000044 (output)
msp3400 1-0040: ACB:      0x0c00
saa7115 1-0021: Audio frequency: 48000 Hz
saa7115 1-0021: Input:           Composite 4
saa7115 1-0021: Video signal:    bad
saa7115 1-0021: Frequency:       50 Hz
saa7115 1-0021: Detected format: BW/No color
tuner 1-0061: Tuner mode:      analog TV
tuner 1-0061: Frequency:       175.25 MHz
tuner 1-0061: Standard:        0x00001000
tda9887 1-0043: Data bytes: b=0x14 c=0x30 e=0x44
pvrusb2: Device initialization completed successfully.
pvrusb2: registered device video0 [mpeg]

You can see above the the input is set to Composite 4. Can I use the
sysfs interface to change that to s-video??

Also, once I get s-video working what is the easiest way to record the
mpeg stream from the command line?
-- 
Thanks,
Aaron
http://www.thesourceshow.org


More information about the pvrusb2 mailing list