You can find right about a zillion posts on the subject of MythTV and HDTV setups, but I found not a single straightforward explanation of how to get my PVR-150 to capture a simple analog video stream from my VHS tape player. So, here is "PVR-150 For Dummies".
1. Carefully install the card in an available PCI bus slot, using the alignment slot in the card's connector as a guide. Put the Windows driver CD and the IR remote back in the box, because I'm not going to help you with that stuff. :P
Cables -- on the PVR-150 you want to use the "S-Video" port, for the video input, and the "line in" jack, for the audio. If your VCR has only a composite video (yellow RCA jack) output, buy a composite-to-S-Video adapter, and then a double-male S-Video cable to plug between the adapter and the PVR-150, and a standard RCA cable between the adapter and the VCR "video out" jack. For the audio, get a "Y" cable that has the two RCA plugs (white and red) on one end, and the 1/8" audio plug on the other.
2. Upon rebooting your computer, check
and you should see something like this in the output:
Also, you should be able to open your KInfocenter (or Kcontrol if you prefer) and see the new video device -- it may actually show up as a family of 4 devices, which represents 4 capabilities of the system.
3. The basic "driving" of your hardware is done with ivtv. Open Adept Manager or Synaptic, select "ivtv firmware", "ivtv-source", and "ivtv-utils" for installation, and proceed to install them.
4. Reboot your computer, because we need to verify via dmesg that it's all clicking together. When you're logged in, open a console window and run
About two-thirds of the way down the message list is a section that describes the ivtv setup. That section needs to look a lot like this:
5. If you see errors, you may need to manually download and paste the latest firmware files, or otherwise work with the ivtv setup. One test to help you confirm that it's working is to simply tune a channel.
should return
for folks using United States NTSC channels.
Here is the start point for any debugging of your ivtv installation: http://ivtvdriver.org/index.php/Main_Page
6. When your ivtv driver looks right, then it's time to get your application installed. You want vlc, so open Adept or Synaptic, mark "vlc" for installation, and install it.
7. vlc will appear in your "Multimedia" packages list. Click it to run it. Use "File>Open Capture Device" and then click the "PVR" tab to get to your PVR settings. Set "Norm" to "NTSC" (if you're in the USA, or "PAL" if Europe), and if you're using Channel 3 for the VCR output, then set the frequency to 61250. Then click the "Advanced" button to open the rest of the needed settings.
8. Here's the big secret that took me 3 days to discover (that's why it's "For Dummies", I guess!): While the little advisor that shows when you hover your cursor over the "Channel" window says "0 = tuner, 1 = composite, 2 = S-Video", it turns out that "1 sometimes = S-Video too". Matter of fact, "2" doesn't work for me at all, notwithstanding that the signal is coming in the S-Video jack. Go figure ....
Here is a short list of things that you will find posts suggesting to use, that were a total waste of my time:
tvtime (doesn't work with mpeg2, so it doesn't work with PVR-150/250/350)
xawtv
mplayer (there are a million posts telling how helpful it is to do
and then play it back with mplayer - it never helped me in the slightest, although it works NOW that I got the rest of it working)
v4l -- it is still installed, and vlc shows a v4l panel that appears functional, but I can't get it to produce a picture, so ......
I hope this helps someone get the job done in less than the week it took me! Screen shot attached (yes, it's Ubuntu, where I do my high-risk experiments that might break the OS).
1. Carefully install the card in an available PCI bus slot, using the alignment slot in the card's connector as a guide. Put the Windows driver CD and the IR remote back in the box, because I'm not going to help you with that stuff. :P
Cables -- on the PVR-150 you want to use the "S-Video" port, for the video input, and the "line in" jack, for the audio. If your VCR has only a composite video (yellow RCA jack) output, buy a composite-to-S-Video adapter, and then a double-male S-Video cable to plug between the adapter and the PVR-150, and a standard RCA cable between the adapter and the VCR "video out" jack. For the audio, get a "Y" cable that has the two RCA plugs (white and red) on one end, and the 1/8" audio plug on the other.
2. Upon rebooting your computer, check
Code:
lspci
Code:
05:00.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
3. The basic "driving" of your hardware is done with ivtv. Open Adept Manager or Synaptic, select "ivtv firmware", "ivtv-source", and "ivtv-utils" for installation, and proceed to install them.
4. Reboot your computer, because we need to verify via dmesg that it's all clicking together. When you're logged in, open a console window and run
Code:
dmesg
Code:
[ 57.587272] Linux video capture interface: v2.00 [ 57.816771] ivtv: ==================== START INIT IVTV ==================== [ 57.816774] ivtv: version 0.10.3 (tagged release) loading [ 57.816775] ivtv: Linux version: 2.6.20-16-lowlatency SMP preempt mod_unload [ 57.816776] ivtv: In case of problems please include the debug info between [ 57.816777] ivtv: the START INIT IVTV and END INIT IVTV lines, along with [ 57.816778] ivtv: any module options, when mailing the ivtv-users mailinglist. [ 57.816859] ivtv0: Autodetected Hauppauge card (cx23416 based) [ 57.816898] ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 21 (level, low) -> IRQ 21 [ 57.859964] usbcore: registered new interface driver xpad [ 57.859967] drivers/usb/input/xpad.c: driver for Xbox controllers v0.1.6 [ 58.050965] nvidia: module license 'NVIDIA' taints kernel. [ 58.149236] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 22 (level, low) -> IRQ 22 [ 58.149249] PCI: Setting latency timer of device 0000:00:1b.0 to 64 [ 58.496030] ivtv0: loaded v4l-cx2341x-enc.fw firmware (376836 bytes) [ 58.716399] ivtv0: Encoder revision: 0x02060039 [ 58.779551] tveeprom 0-0050: Hauppauge model 26152, rev E5B2, serial# 10295170 [ 58.779554] tveeprom 0-0050: tuner model is TCL M2523_5N_E (idx 112, type 50) [ 58.779556] tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08) [ 58.779558] tveeprom 0-0050: audio processor is CX25843 (idx 37) [ 58.779559] tveeprom 0-0050: decoder processor is CX25843 (idx 30) [ 58.779561] tveeprom 0-0050: has no radio, has IR receiver, has IR transmitter [ 58.779563] ivtv0: Autodetected Hauppauge WinTV PVR-150 [ 58.779564] ivtv0: reopen i2c bus for IR-blaster support [ 58.850882] tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0) [ 59.031050] cx25840 0-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0) [ 62.746067] cx25840 0-0044: loaded v4l-cx25840.fw firmware (16382 bytes) [ 62.835027] wm8775 0-001b: chip found @ 0x36 (ivtv i2c driver #0) [ 62.884720] ivtv0: Registered device video0 for encoder MPEG (4 MB) [ 62.886605] ivtv0: Registered device video32 for encoder YUV (2 MB) [ 62.887753] ivtv0: Registered device vbi0 for encoder VBI (1 MB) [ 62.888331] ivtv0: Registered device video24 for encoder PCM audio (1 MB) [ 62.889038] tuner 0-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) [ 63.240737] ivtv0: Initialized Hauppauge WinTV PVR-150, card #0 [ 63.240752] ivtv: ==================== END INIT IVTV ==================== [ 63.240974] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16 [ 63.240980] PCI: Setting latency timer of device 0000:01:00.0 to 64
Code:
ivtv-tune --channel=3
Code:
/dev/video0: 61.250 MHz
Here is the start point for any debugging of your ivtv installation: http://ivtvdriver.org/index.php/Main_Page
6. When your ivtv driver looks right, then it's time to get your application installed. You want vlc, so open Adept or Synaptic, mark "vlc" for installation, and install it.
7. vlc will appear in your "Multimedia" packages list. Click it to run it. Use "File>Open Capture Device" and then click the "PVR" tab to get to your PVR settings. Set "Norm" to "NTSC" (if you're in the USA, or "PAL" if Europe), and if you're using Channel 3 for the VCR output, then set the frequency to 61250. Then click the "Advanced" button to open the rest of the needed settings.
8. Here's the big secret that took me 3 days to discover (that's why it's "For Dummies", I guess!): While the little advisor that shows when you hover your cursor over the "Channel" window says "0 = tuner, 1 = composite, 2 = S-Video", it turns out that "1 sometimes = S-Video too". Matter of fact, "2" doesn't work for me at all, notwithstanding that the signal is coming in the S-Video jack. Go figure ....
Here is a short list of things that you will find posts suggesting to use, that were a total waste of my time:
tvtime (doesn't work with mpeg2, so it doesn't work with PVR-150/250/350)
xawtv
mplayer (there are a million posts telling how helpful it is to do
Code:
cat /dev/video0 > test.mpg
v4l -- it is still installed, and vlc shows a v4l panel that appears functional, but I can't get it to produce a picture, so ......
I hope this helps someone get the job done in less than the week it took me! Screen shot attached (yes, it's Ubuntu, where I do my high-risk experiments that might break the OS).
Comment