Hey folks,
When attempting to capture video from the PVR 150, I
get a 0 length file. I have not been able to find a
solution after searching the web.
When I execute the following, the result is 0 length
file.
cat /dev/video0 > /tmp/test.mpg
I have tried doing this with the tuner input and the
composite input. Neither works.
I have the card connected to a Tivo.
Any help or tips would be greatly appreciated.
Thanks,
Jeff
I am running FC3 with a 2.6.12 kernel.
Here is the output from dmesg:
Oct 7 18:26:06 Lion97 kernel: ivtv:
==================== START INIT IVTV
====================
Oct 7 18:26:06 Lion97 kernel: ivtv: version 0.3.8
(tagged release) loading
Oct 7 18:26:06 Lion97 kernel: ivtv: Linux version:
2.6.12-1.1378_FC3 686 REGPARM 4KSTACKS gcc-3.4
Oct 7 18:26:06 Lion97 kernel: ivtv: In case of
problems please include the debug info
Oct 7 18:26:06 Lion97 kernel: ivtv: between the START
INIT IVTV and END INIT IVTV lines when
Oct 7 18:26:06 Lion97 kernel: ivtv: mailing the
ivtv-devel mailinglist.
Oct 7 18:26:06 Lion97 kernel: ivtv: Autodetected
WinTV PVR 150 card (iTVC16 based)
Oct 7 18:26:06 Lion97 kernel: ACPI: PCI Interrupt
0000:00:09.0[A] -> Link [LNKD] -> GSI 11 (level, low)
-> IRQ 11
Oct 7 18:26:06 Lion97 kernel: ivtv: Unreasonably low
latency timer, setting to 64 (was 32)
Oct 7 18:26:06 Lion97 kernel: tveeprom: Hauppauge:
model = 26032, rev = C199, serial# = 8181804
Oct 7 18:26:06 Lion97 kernel: tveeprom: tuner = TCL
2002N 5H (idx = 99, type = 50)
Oct 7 18:26:06 Lion97 kernel: tveeprom: tuner fmt =
NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
Oct 7 18:26:06 Lion97 kernel: tveeprom: audio
processor = CX25841 (type = 23)
Oct 7 18:26:06 Lion97 kernel: tveeprom: decoder
processor = CX25841 (type = 1c)
Oct 7 18:26:06 Lion97 kernel: ivtv: i2c attach to
card #0 ok [client=tveeprom[50], addr=50]
Oct 7 18:26:06 Lion97 kernel: tuner: chip found at
addr 0xc2 i2c-bus ivtv i2c driver #0
Oct 7 18:26:06 Lion97 kernel: ivtv: i2c attach to
card #0 ok [client=(tuner unset), addr=61]
Oct 7 18:26:06 Lion97 kernel: cx25840: loading
/lib/modules/HcwMakoA.ROM
Oct 7 18:26:06 Lion97 kernel: ivtv: i2c attach to
card #0 ok [client=cx25840[50], addr=44]
Oct 7 18:26:06 Lion97 kernel: ivtv: i2c attach to
card #0 ok [client=wm8775[50], addr=1b]
Oct 7 18:26:06 Lion97 kernel: ivtv: loading
/lib/modules/ivtv-fw-enc.bin
Oct 7 18:26:06 Lion97 kernel: ivtv: Encoder revision:
0x02040024
Oct 7 18:26:06 Lion97 kernel: ivtv warning: Encoder
Firmware can be buggy, use version 0x02040011!!!!
Oct 7 18:26:06 Lion97 kernel: ivtv: Allocate DMA
encoder MPEG stream: 128 x 32768 buffers (4096KB
total)
Oct 7 18:26:06 Lion97 kernel: ivtv: Allocate DMA
encoder YUV stream: 194 x 10800 buffers (2048KB total)
Oct 7 18:26:06 Lion97 kernel: ivtv: Allocate DMA
encoder VBI stream: 120 x 17472 buffers (2048KB total)
Oct 7 18:26:06 Lion97 kernel: ivtv: Allocate DMA
encoder PCM audio stream: 455 x 4608 buffers (2048KB
total)
Oct 7 18:26:06 Lion97 kernel: tuner: type set to 50
(TCL 2002N) by ivtv i2c driver #0
Oct 7 18:26:06 Lion97 kernel: ivtv: Initialized WinTV
PVR 150, card #0
Oct 7 18:26:06 Lion97 kernel: ivtv:
==================== END INIT IVTV
====================
Here is my modprobe.conf file:
alias eth0 tulip
alias snd-card-0 snd-ens1370
options snd-card-0 index=0
install snd-ens1370 /sbin/modprobe --ignore-install
snd-ens1370 && /usr/sbin/alsactl restore >/dev/null
2>&1 || :
remove snd-ens1370 { /usr/sbin/alsactl store
>/dev/null 2>&1 || : ; }; /sbin/modprobe -r
--ignore-remove snd-ens1370
alias usb-controller uhci-hcd
alias char-major-61 lirc_serial
options lirc_serial irq=4 io=0x3f8
install lirc_serial /bin/setserial /dev/ttyS0 uart
none ; /sbin/modprobe --ignore-install lirc_serial
alias char-major-81 ivtv
alias char-major-81-0 ivtv
alias tveeprom tveeprom-ivtv
alias tuner tuner-ivtv
alias msp3400 msp3400-ivtv
options ivtv tuner=57 ivtv_std=1
Finally, here is the output from ivtvctl -a
ioctl IVTV_IOC_G_CODEC ok
Codec parameters
aspect : 2
audio : 0x00e9
bframes : 3
bitrate_mode: 0
bitrate : 8000000
bitrate_peak: 9600000
dnr_mode : 0
dnr_spatial : 0
dnr_temporal: 8
dnr_type : 0
framerate : 0
framespergop: 15
gop_closure : 1
pulldown : 0
stream_type : 14
ioctl VIDIOC_G_FMT ok
Type : Video Capture
Width : 720
Height : 480
ioctl VIDIOC_QUERYCAP ok
Driver name : ivtv
Card type : WinTV PVR 150
Bus info : 0000:00:09.0
Driver version: 776
Capabilities : 0x01030011
ioctl: VIDIOC_ENUMINPUT
Input : 0
Name : S-Video 0
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 1
Name : S-Video 1
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 2
Name : Composite 0
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 3
Name : Composite 1
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 4
Name : Composite 2
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 5
Name : Composite 3
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 6
Name : Tuner 0
Type : 0x00000001
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x0000000000003000 ( NTSC )
Status : 0
Input : 7
Name : Tuner 1
Type : 0x00000001
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x0000000000003000 ( NTSC )
Status : 0
ioctl VIDIOC_G_INPUT ok
Video input = 2
ioctl: VIDIOC_ENUMOUTPUT
ioctl VIDIOC_G_OUTPUT failed: Invalid argument
ioctl: VIDIOC_ENUMAUDIO
Input : 0
Name : Tuner Audio In
Input : 1
Name : Audio Line 1
Input : 2
Name : Audio Line 2
Input : 3
Name : Audio Line 3
Input : 4
Name : Audio Line 4
ioctl VIDIOC_G_AUDIO ok
Audio input = 2: Audio Line 2
ioctl VIDIOC_G_FREQUENCY ok
Frequency = 1076
ioctl: VIDIOC_ENUMSTD
index : 0
ID : 0x0000000000003000
Name : NTSC
Frame period: 1001/30000
Frame lines : 525
index : 1
ID : 0x00000000000000FF
Name : PAL
Frame period: 1/25
Frame lines : 625
index : 2
ID : 0x00000000007F0000
Name : SECAM
Frame period: 1/25
Frame lines : 625
ioctl VIDIOC_G_STD ok
Video standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 60928
Mute = 0
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
When attempting to capture video from the PVR 150, I
get a 0 length file. I have not been able to find a
solution after searching the web.
When I execute the following, the result is 0 length
file.
cat /dev/video0 > /tmp/test.mpg
I have tried doing this with the tuner input and the
composite input. Neither works.
I have the card connected to a Tivo.
Any help or tips would be greatly appreciated.
Thanks,
Jeff
I am running FC3 with a 2.6.12 kernel.
Here is the output from dmesg:
Oct 7 18:26:06 Lion97 kernel: ivtv:
==================== START INIT IVTV
====================
Oct 7 18:26:06 Lion97 kernel: ivtv: version 0.3.8
(tagged release) loading
Oct 7 18:26:06 Lion97 kernel: ivtv: Linux version:
2.6.12-1.1378_FC3 686 REGPARM 4KSTACKS gcc-3.4
Oct 7 18:26:06 Lion97 kernel: ivtv: In case of
problems please include the debug info
Oct 7 18:26:06 Lion97 kernel: ivtv: between the START
INIT IVTV and END INIT IVTV lines when
Oct 7 18:26:06 Lion97 kernel: ivtv: mailing the
ivtv-devel mailinglist.
Oct 7 18:26:06 Lion97 kernel: ivtv: Autodetected
WinTV PVR 150 card (iTVC16 based)
Oct 7 18:26:06 Lion97 kernel: ACPI: PCI Interrupt
0000:00:09.0[A] -> Link [LNKD] -> GSI 11 (level, low)
-> IRQ 11
Oct 7 18:26:06 Lion97 kernel: ivtv: Unreasonably low
latency timer, setting to 64 (was 32)
Oct 7 18:26:06 Lion97 kernel: tveeprom: Hauppauge:
model = 26032, rev = C199, serial# = 8181804
Oct 7 18:26:06 Lion97 kernel: tveeprom: tuner = TCL
2002N 5H (idx = 99, type = 50)
Oct 7 18:26:06 Lion97 kernel: tveeprom: tuner fmt =
NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
Oct 7 18:26:06 Lion97 kernel: tveeprom: audio
processor = CX25841 (type = 23)
Oct 7 18:26:06 Lion97 kernel: tveeprom: decoder
processor = CX25841 (type = 1c)
Oct 7 18:26:06 Lion97 kernel: ivtv: i2c attach to
card #0 ok [client=tveeprom[50], addr=50]
Oct 7 18:26:06 Lion97 kernel: tuner: chip found at
addr 0xc2 i2c-bus ivtv i2c driver #0
Oct 7 18:26:06 Lion97 kernel: ivtv: i2c attach to
card #0 ok [client=(tuner unset), addr=61]
Oct 7 18:26:06 Lion97 kernel: cx25840: loading
/lib/modules/HcwMakoA.ROM
Oct 7 18:26:06 Lion97 kernel: ivtv: i2c attach to
card #0 ok [client=cx25840[50], addr=44]
Oct 7 18:26:06 Lion97 kernel: ivtv: i2c attach to
card #0 ok [client=wm8775[50], addr=1b]
Oct 7 18:26:06 Lion97 kernel: ivtv: loading
/lib/modules/ivtv-fw-enc.bin
Oct 7 18:26:06 Lion97 kernel: ivtv: Encoder revision:
0x02040024
Oct 7 18:26:06 Lion97 kernel: ivtv warning: Encoder
Firmware can be buggy, use version 0x02040011!!!!
Oct 7 18:26:06 Lion97 kernel: ivtv: Allocate DMA
encoder MPEG stream: 128 x 32768 buffers (4096KB
total)
Oct 7 18:26:06 Lion97 kernel: ivtv: Allocate DMA
encoder YUV stream: 194 x 10800 buffers (2048KB total)
Oct 7 18:26:06 Lion97 kernel: ivtv: Allocate DMA
encoder VBI stream: 120 x 17472 buffers (2048KB total)
Oct 7 18:26:06 Lion97 kernel: ivtv: Allocate DMA
encoder PCM audio stream: 455 x 4608 buffers (2048KB
total)
Oct 7 18:26:06 Lion97 kernel: tuner: type set to 50
(TCL 2002N) by ivtv i2c driver #0
Oct 7 18:26:06 Lion97 kernel: ivtv: Initialized WinTV
PVR 150, card #0
Oct 7 18:26:06 Lion97 kernel: ivtv:
==================== END INIT IVTV
====================
Here is my modprobe.conf file:
alias eth0 tulip
alias snd-card-0 snd-ens1370
options snd-card-0 index=0
install snd-ens1370 /sbin/modprobe --ignore-install
snd-ens1370 && /usr/sbin/alsactl restore >/dev/null
2>&1 || :
remove snd-ens1370 { /usr/sbin/alsactl store
>/dev/null 2>&1 || : ; }; /sbin/modprobe -r
--ignore-remove snd-ens1370
alias usb-controller uhci-hcd
alias char-major-61 lirc_serial
options lirc_serial irq=4 io=0x3f8
install lirc_serial /bin/setserial /dev/ttyS0 uart
none ; /sbin/modprobe --ignore-install lirc_serial
alias char-major-81 ivtv
alias char-major-81-0 ivtv
alias tveeprom tveeprom-ivtv
alias tuner tuner-ivtv
alias msp3400 msp3400-ivtv
options ivtv tuner=57 ivtv_std=1
Finally, here is the output from ivtvctl -a
ioctl IVTV_IOC_G_CODEC ok
Codec parameters
aspect : 2
audio : 0x00e9
bframes : 3
bitrate_mode: 0
bitrate : 8000000
bitrate_peak: 9600000
dnr_mode : 0
dnr_spatial : 0
dnr_temporal: 8
dnr_type : 0
framerate : 0
framespergop: 15
gop_closure : 1
pulldown : 0
stream_type : 14
ioctl VIDIOC_G_FMT ok
Type : Video Capture
Width : 720
Height : 480
ioctl VIDIOC_QUERYCAP ok
Driver name : ivtv
Card type : WinTV PVR 150
Bus info : 0000:00:09.0
Driver version: 776
Capabilities : 0x01030011
ioctl: VIDIOC_ENUMINPUT
Input : 0
Name : S-Video 0
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 1
Name : S-Video 1
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 2
Name : Composite 0
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 3
Name : Composite 1
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 4
Name : Composite 2
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 5
Name : Composite 3
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM
)
Status : 0
Input : 6
Name : Tuner 0
Type : 0x00000001
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x0000000000003000 ( NTSC )
Status : 0
Input : 7
Name : Tuner 1
Type : 0x00000001
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x0000000000003000 ( NTSC )
Status : 0
ioctl VIDIOC_G_INPUT ok
Video input = 2
ioctl: VIDIOC_ENUMOUTPUT
ioctl VIDIOC_G_OUTPUT failed: Invalid argument
ioctl: VIDIOC_ENUMAUDIO
Input : 0
Name : Tuner Audio In
Input : 1
Name : Audio Line 1
Input : 2
Name : Audio Line 2
Input : 3
Name : Audio Line 3
Input : 4
Name : Audio Line 4
ioctl VIDIOC_G_AUDIO ok
Audio input = 2: Audio Line 2
ioctl VIDIOC_G_FREQUENCY ok
Frequency = 1076
ioctl: VIDIOC_ENUMSTD
index : 0
ID : 0x0000000000003000
Name : NTSC
Frame period: 1001/30000
Frame lines : 525
index : 1
ID : 0x00000000000000FF
Name : PAL
Frame period: 1/25
Frame lines : 625
index : 2
ID : 0x00000000007F0000
Name : SECAM
Frame period: 1/25
Frame lines : 625
ioctl VIDIOC_G_STD ok
Video standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 60928
Mute = 0
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com