LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-19-2008, 09:03 PM   #1
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Rep: Reputation: 33
Ivtv question on Slackware 12.1


I just upgraded to Slackware 12.1. I am using the 2.6.24.5-smp generic kernel. Reading /var/log/messages has shown that my Hauppauge PVR 150 has been initialized by ivtv. Before, when I was using 12.0, I had to download the driver and firmware directly from ivtvdriver.org. Then, I had to make a custom kernel by compiling the kernel with: Conexant CX2584x,Conexant CX2341x, Wolfson Microelectronics WM8775 and BT848 Video For Linux among other things. With 12.1, I tried using the command cat /dev/video0 > my.mpg and output was: cat: /dev/video0: No such device or address. Info from ivtvdriver.org states that current kernels now have the ivtv driver which I can see that it has detected my Hauppauge PVR 150. However, I am stuck trying to figure out how to get to the card with the current ivtv driver. I also need some of the tools (ivtv-tune) that the driver 0.10.6 came with.
Note: My PVR is connected to only a vcr that I use to convert tapes to mpeg2. Am I going to have to download the old driver and compile a custom kernel to get things working? I really don't want to break anything.

Best regards
 
Old 05-20-2008, 12:25 AM   #2
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Original Poster
Rep: Reputation: 33
Heres what dmesg reports:

Code:
ivtv:  Start initialization, version 1.1.0
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
ivtv0: Initializing card #0
ivtv0: Autodetected Hauppauge card (cx23416 based)
ACPI: PCI Interrupt Link [APC3] enabled at IRQ 18
ACPI: PCI Interrupt 0000:03:0a.0[A] -> Link [APC3] -> GSI 18 (level, low) -> IRQ 23
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
tveeprom 2-0050: Hauppauge model 26552, rev F0A3, serial# 9856765
tveeprom 2-0050: tuner model is TCL MFNM05-4 (idx 103, type 43)
tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 2-0050: audio processor is CX25843 (idx 37)
tveeprom 2-0050: decoder processor is CX25843 (idx 30)
tveeprom 2-0050: has radio, has no IR receiver, has no IR transmitter
ivtv0: Autodetected Hauppauge WinTV PVR-150
tuner 2-0043: chip found @ 0x86 (ivtv i2c driver #0)
tda9887 2-0043: tda988[5/6/7] found @ 0x43 (tuner)
tuner 2-0043: type set to tda9887
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
cx25840 2-0044: cx25843-24 found @ 0x88 (ivtv i2c driver #0)
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #0)
tuner-simple 2-0061: type set to 43 (Philips NTSC MK3 (FM1236MK3 or FM1236/F))
tuner 2-0061: type set to Philips NTSC MK3 (F
ivtv0: Registered device video0 for encoder MPG (4096 kB)
ivtv0: Registered device video32 for encoder YUV (2048 kB)
ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
ivtv0: Registered device video24 for encoder PCM (320 kB)
ivtv0: Registered device radio0 for encoder radio
ivtv0: Initialized card #0: Hauppauge WinTV PVR-150
ivtv:  End initialization
As I said the itv kernel driver is indeed detecting my card.
Here's what lsmod reports:

Code:
Module                  Size  Used by
ipv6                  234724  12
ipt_MASQUERADE          6656  1
iptable_nat             9860  1
nf_nat                 19500  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4      17032  2 iptable_nat
nf_conntrack           53440  4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
ip_tables              14788  1 iptable_nat
x_tables               14980  3 ipt_MASQUERADE,iptable_nat,ip_tables
snd_seq_dummy           6660  0
snd_seq_oss            32896  0
snd_seq_midi_event     10112  1 snd_seq_oss
snd_seq                50256  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            40352  0
snd_mixer_oss          17920  1 snd_pcm_oss
lp                     13348  0
usblp                  15616  0
parport_pc             27556  0
parport                34632  2 lp,parport_pc
usbhid                 43136  2
hid                    37376  1 usbhid
fuse                   45588  1
wm8775                  8844  0
cx25840                28944  0
tuner                  43936  0
tea5767                 9092  1 tuner
tda8290                14596  1 tuner
tuner_simple           12296  1 tuner
mt20xx                 15368  1 tuner
tea5761                 8324  1 tuner
snd_fm801              19552  1
snd_ac97_codec         98724  1 snd_fm801
ac97_bus                5760  1 snd_ac97_codec
ivtv                  134976  0
i2c_algo_bit            9476  1 ivtv
cx2341x                14980  1 ivtv
snd_pcm                72068  3 snd_pcm_oss,snd_fm801,snd_ac97_codec
tveeprom               18192  1 ivtv
snd_page_alloc         11528  1 snd_pcm
ohci_hcd               26628  0
nvidia               7853216  24
snd_tea575x_tuner       7040  1 snd_fm801
snd_opl3_lib           12288  1 snd_fm801
videodev               29824  2 ivtv,snd_tea575x_tuner
snd_timer              22532  3 snd_seq,snd_pcm,snd_opl3_lib
snd_hwdep              10756  1 snd_opl3_lib
snd_mpu401_uart        10496  1 snd_fm801
fan                     7428  0
snd_rawmidi            22560  1 snd_mpu401_uart
snd_seq_device         10380  5 snd_seq_dummy,snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi
ohci1394               32304  0
v4l2_common            19200  6 wm8775,cx25840,tuner,ivtv,cx2341x,videodev
snd                    47716  15 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_fm801,snd_ac97_codec,snd_pcm,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device
tulip                  52256  0
agpgart                30664  1 nvidia
ieee1394               82744  1 ohci1394
rtc_cmos               11040  0
fm801_gp                6784  0
i2c_nforce2             9344  0
v4l1_compat            17668  2 ivtv,videodev
psmouse                40336  0
soundcore               9824  1 snd
ssb                    32516  1 ohci_hcd
gameport               14472  2 fm801_gp
thermal                16540  0
rtc_core               18696  1 rtc_cmos
pcmcia                 35884  1 ssb
button                 10000  0
i2c_core               22528  13 wm8775,cx25840,tuner,tea5767,tda8290,tuner_simple,mt20xx,tea5761,ivtv,i2c_algo_bit,tveeprom,nvidia,i2c_nforce2
processor              32680  1 thermal
rtc_lib                 6528  1 rtc_core
k8temp                  8192  0
serio_raw               9092  0
ehci_hcd               35468  0
pcmcia_core            35988  1 pcmcia
forcedeth              48780  0
evdev                  12672  3
hwmon                   6276  1 k8temp
sg                     30224  0
ext3                  124808  2
jbd                    43924  1 ext3
mbcache                10496  1 ext3
ata_generic             8836  0
pata_acpi               8832  0
pata_amd               13956  0
usb_storage            84288  0
There is no video0 listed as a module. I have googled around the net but I can't find information concerning the latest ivtv drivers that are in the current kernels. It seems strange to be forced to compile an older driver when there's a new one in it already. I tried cat /dev/videodev > my.mpg but that didn't work either.

Best regards
 
Old 05-20-2008, 01:49 AM   #3
wigry
Member
 
Registered: Jul 2004
Distribution: slackware
Posts: 218

Rep: Reputation: 52
Quote:
Originally Posted by trillobyte View Post
Heres what dmesg reports:

Code:
ivtv:  Start initialization, version 1.1.0
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
ivtv0: Initializing card #0
ivtv0: Autodetected Hauppauge card (cx23416 based)
ACPI: PCI Interrupt Link [APC3] enabled at IRQ 18
ACPI: PCI Interrupt 0000:03:0a.0[A] -> Link [APC3] -> GSI 18 (level, low) -> IRQ 23
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
tveeprom 2-0050: Hauppauge model 26552, rev F0A3, serial# 9856765
tveeprom 2-0050: tuner model is TCL MFNM05-4 (idx 103, type 43)
tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 2-0050: audio processor is CX25843 (idx 37)
tveeprom 2-0050: decoder processor is CX25843 (idx 30)
tveeprom 2-0050: has radio, has no IR receiver, has no IR transmitter
ivtv0: Autodetected Hauppauge WinTV PVR-150
tuner 2-0043: chip found @ 0x86 (ivtv i2c driver #0)
tda9887 2-0043: tda988[5/6/7] found @ 0x43 (tuner)
tuner 2-0043: type set to tda9887
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
cx25840 2-0044: cx25843-24 found @ 0x88 (ivtv i2c driver #0)
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #0)
tuner-simple 2-0061: type set to 43 (Philips NTSC MK3 (FM1236MK3 or FM1236/F))
tuner 2-0061: type set to Philips NTSC MK3 (F
ivtv0: Registered device video0 for encoder MPG (4096 kB)
ivtv0: Registered device video32 for encoder YUV (2048 kB)
ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
ivtv0: Registered device video24 for encoder PCM (320 kB)
ivtv0: Registered device radio0 for encoder radio
ivtv0: Initialized card #0: Hauppauge WinTV PVR-150
ivtv:  End initialization
There is no video0 listed as a module. I have googled around the net but I can't find information concerning the latest ivtv drivers that are in the current kernels. It seems strange to be forced to compile an older driver when there's a new one in it already. I tried cat /dev/videodev > my.mpg but that didn't work either.

Best regards
It seems to me that the card is mapped to ivtv0 device node. Look around in the /dev directory if you see the ivtv0 device there and try to cat it. Although the initialization says that the video0 is mapped.

Unfortunately cannot help you more as I don't have TV tuner in my machine.
 
Old 05-20-2008, 01:21 PM   #4
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Original Poster
Rep: Reputation: 33
Okay. I tried cat /dev/ivtv0 > test.mpg <---It didn't work.
I looked around the /dev directory and found that video0 is symlinked to vfl/video0
I then tried cat /dev/v4l > test.mpg <----didn't work.
Tried cat /dev/v4l/video0 > test.mpg <----didn't work.

It looks like I may have to go back to using an older kernel.

Best regards
 
Old 05-20-2008, 09:53 PM   #5
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Original Poster
Rep: Reputation: 33
Just want to let anyone interested in this thread to know, that I have it working. Thanks to Grogan from bitbender. He suggested that I download and install the firmware from ivtv.org and it did the trick!!! I just assumed that the firmware would be included with the ivtv driver. I am able to cat /dev/video0 > my.mpg with no problems. I am also able to use the ivtv utility that came with the driver.tar. The only glitch that I'm facing now is if I try viewing the actual recording with mplayer I get this:

~$ mplayer /dev/video
CPLAYER: MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPUDETECT: CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ (Family: 15, Model: 67, Stepping: 2)
CPLAYER: CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
CPLAYER: Compiled with runtime CPU detection.
CPLAYER:
Playing /dev/video.
Win32 LoadLibrary failed to load: avisynth.dll, /usr/lib/codecs/avisynth.dll, /usr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll
STREAM: Seek failed
CPLAYER:
CPLAYER:
Exiting... (End of file)

I do have the win32 codecs-all package installed. I can view the mpg file after recording with mplayer, but not while it's actually converting to mpeg2 which was a tool for me to know when to stop recording. I reinstalled the win32 codecs package from slackbuilds.org but it's still giving me the same message.

Best regards
 
Old 05-20-2008, 11:53 PM   #6
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Original Poster
Rep: Reputation: 33
I googled around a bit on this issue. It seems that the avisynth.dll message is a misleading error message that mplayer spits out when dealing with streaming errors. It is not required for mplayer use. I solved the problem by having mplayer check the status of the video by playing the actual "live" file being recorded (my.mpg). What I was doing wrong was issuing the command: "mplayer /dev/video" instead of "mplayer my.mpg". Mplayer /dev/video is good when you pop a cassette into the VCR and want to watch it but, if you are recording a video you have to open the file being recorded.

Best regards
 
Old 05-21-2008, 10:56 AM   #7
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 14.1
Posts: 1,141

Rep: Reputation: 55
Quote:
Originally Posted by trillobyte View Post
I just upgraded to Slackware 12.1. I am using the 2.6.24.5-smp generic kernel. Reading /var/log/messages has shown that my Hauppauge PVR 150 has been initialized by ivtv. Before, when I was using 12.0, I had to download the driver and firmware directly from ivtvdriver.org. Then, I had to make a custom kernel by compiling the kernel with: Conexant CX2584x,Conexant CX2341x, Wolfson Microelectronics WM8775 and BT848 Video For Linux among other things. With 12.1, I tried using the command cat /dev/video0 > my.mpg and output was: cat: /dev/video0: No such device or address. Info from ivtvdriver.org states that current kernels now have the ivtv driver which I can see that it has detected my Hauppauge PVR 150. However, I am stuck trying to figure out how to get to the card with the current ivtv driver. I also need some of the tools (ivtv-tune) that the driver 0.10.6 came with.
Note: My PVR is connected to only a vcr that I use to convert tapes to mpeg2. Am I going to have to download the old driver and compile a custom kernel to get things working? I really don't want to break anything.

Best regards
2.6.24 series kernels now include ivtv and ivtvfb (used for TV-out with PVR-350) modules. The current version of ivtv for kernel 2.6.22 and greater (version 1.0.3) only consists of ivtvfb and utilities you mentioned. However it won't compile on 2.6.24 series yet since there's a include file issue I experienced and posted on the list. The devs are working on ivtv version 1.1 which will include support for kernel 2.6.24 and up.

In the meanwhile, you can either go the last known kernel to work for you or if you want to use newer kernels, use kernel 2.6.23.x. This series is supported with ivtv version 1.0.3.

As for your problem, video0 is not a module, it is a device file created by that ivtv module. Make sure whichever user you are logged in is added to video group. Check the modules ivtv depends on.
Code:
modprobe --show-depends ivtv
 
Old 05-21-2008, 11:56 AM   #8
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by tuxrules View Post
2.6.24 series kernels now include ivtv and ivtvfb (used for TV-out with PVR-350) modules. The current version of ivtv for kernel 2.6.22 and greater (version 1.0.3) only consists of ivtvfb and utilities you mentioned. However it won't compile on 2.6.24 series yet since there's a include file issue I experienced and posted on the list. The devs are working on ivtv version 1.1 which will include support for kernel 2.6.24 and up.

In the meanwhile, you can either go the last known kernel to work for you or if you want to use newer kernels, use kernel 2.6.23.x. This series is supported with ivtv version 1.0.3.

As for your problem, video0 is not a module, it is a device file created by that ivtv module. Make sure whichever user you are logged in is added to video group. Check the modules ivtv depends on.
Code:
modprobe --show-depends ivtv
I believe I have it working in the 2.6.24 kernel. What I did was download the firmware and install the firmware in /lib/firmware. Then, I downloaded version 1.0.3 of ivtv. I then ran make in the utility/ivt-tune folder. Then I moved the ivtv-tune utility to the /user/bin directory. I have since tested my PVR-150 and the results have been great. I did not compile ivtvfb in the ivtv (version 1.0.3) folder. I only ran make in the utility/ivt-tune folder.

Best regards
 
Old 05-21-2008, 12:01 PM   #9
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 14.1
Posts: 1,141

Rep: Reputation: 55
Quote:
Originally Posted by trillobyte View Post
I believe I have it working in the 2.6.24 kernel. What I did was download the firmware and install the firmware in /lib/firmware. Then, I downloaded version 1.0.3 of ivtv. I then ran make in the utility/ivt-tune folder. Then I moved the ivtv-tune utility to the /user/bin directory. I have since tested my PVR-150 and the results have been great. I did not compile ivtvfb in the ivtv (version 1.0.3) folder. I only ran make in the utility/ivt-tune folder.

Best regards
Good to know it worked out for you. I primarily use ivtv with MythTV but I'm interested in what you do with it. I have some old VCR tapes that I would like to convert. Can you post a show how-to on how you do it. I have a spare card in my box I can put to use.

Thanks,
 
Old 05-21-2008, 12:32 PM   #10
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by tuxrules View Post
Good to know it worked out for you. I primarily use ivtv with MythTV but I'm interested in what you do with it. I have some old VCR tapes that I would like to convert. Can you post a show how-to on how you do it. I have a spare card in my box I can put to use.

Thanks,
How to convert VHS tapes to mpeg2 using a PVR-150 card.

Set your card to channel 3. On a terminal, type the command: ivtv-tune --channel=3

Put your tape in the VCR and press play.

To capture some video, on a terminal type the command:
cat /dev/vide0 > my.mpg
press ctrl-c to stop.

Open another terminal and type the command:
mplayer my.mpg
This will check the status of the video while it's being captured. This is how I know when the tape has ended and so forth.

Best regards
 
Old 05-21-2008, 01:16 PM   #11
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 14.1
Posts: 1,141

Rep: Reputation: 55
Quote:
Originally Posted by trillobyte View Post
How to convert VHS tapes to mpeg2 using a PVR-150 card.

Set your card to channel 3. On a terminal, type the command: ivtv-tune --channel=3

Put your tape in the VCR and press play.

To capture some video, on a terminal type the command:
cat /dev/vide0 > my.mpg
press ctrl-c to stop.

Open another terminal and type the command:
mplayer my.mpg
This will check the status of the video while it's being captured. This is how I know when the tape has ended and so forth.

Best regards
Thanks and appreciate for the info. I'll try that soon.
 
Old 05-21-2008, 01:26 PM   #12
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by tuxrules View Post
Thanks and appreciate for the info. I'll try that soon.
Your most welcome
 
Old 05-23-2008, 09:43 PM   #13
hsrthe4th
LQ Newbie
 
Registered: Sep 2004
Location: Georgia, USA
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
Thank you!

Quote:
Originally Posted by trillobyte View Post
I believe I have it working in the 2.6.24 kernel. What I did was download the firmware and install the firmware in /lib/firmware. Then, I downloaded version 1.0.3 of ivtv. I then ran make in the utility/ivt-tune folder. Then I moved the ivtv-tune utility to the /user/bin directory. I have since tested my PVR-150 and the results have been great. I did not compile ivtvfb in the ivtv (version 1.0.3) folder. I only ran make in the utility/ivt-tune folder.

Best regards
Thank you! Thank you! Thank you!
I was beginning to give up on Slackware and Mythtv until i read your post.
 
Old 05-25-2008, 10:00 PM   #14
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by hsrthe4th View Post
Thank you! Thank you! Thank you!
I was beginning to give up on Slackware and Mythtv until i read your post.
I'm glad this thread helped you. I was going a little crazy myself trying to figure this out. Slackware's the best!

Best regards
 
  


Reply

Tags
ivtv, mplayer, mythtv, pvr150, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IVTV 0.4.4 Help paradox101 Linux - Software 4 04-14-2006 04:28 PM
IVTV drivers Jake_da_Snake Linux - Hardware 10 06-29-2005 12:54 AM
Ivtv WolfCub Linux - General 18 05-17-2005 11:12 AM
FC3 ivtv snt Fedora 0 02-11-2005 03:44 PM
modprobe ivtv Lobais Linux - Software 3 12-29-2004 07:35 AM


All times are GMT -5. The time now is 02:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration