Computers 'n Stuff

I here share the resolutions for my Linux problems so they might safe somebody some time.

Saturday, May 26, 2007 parmanent link to this post

Installation and setup of the em28xx linux driver for analogue devices like the PCTV analog USB 2 (150e/55e) in opensuse 10.2


Ihave an old Pinnacle analog USB video grabber device which I bought some time ago for no particular reason. I tested It in windows but picture quality and software sucked. Channel switching took forever and nothing worked the way I wanted it to, so I stopped using it. But now I tried to install it in OpenSuse Linux just for the hack of it. Here I write my experiences with this device.

First I have to say that Linux actually supports this device and the picture quality of the linux driver and tv sofware is much better than that provided by pinnacle for windows. So if you want to use this PCTV analog usb its well worth switching to linux.

The PCTV analog USB is em2820 videodecoder chip based vido grabber with an LG TAPE series tuner. I once cracked it open to see the chips inside the PCTV analog USB 105e 55e

If you want to use the 150e/55e with OpenSuse 10.2 the em28xx driver which is a successor of the em2820 is the right choice. As far as I understand it, this driver is part of the v4l project and is maintained by Markus Rechberger, Mauro Carvalho Chehab, Aapo Tahkola, Ludovico Cavedon, Sascha Sommer, Aidan Thornton. Thanks to them we can now use this budged video grabber with a great quality driver.

The em28xx is loaded as a kernel module in OpenSuse 10.2 as soon as a PCTV analog USB is connected to a USB port. It then automatcally creates device nodes /dev/dsp (digital audion/pcm) and /dev/video (raw video).

You first have to update the em28xx driver that comes out of the box of OpenSuse 10.2, this means you have to compile them from source and install them. This sounds harder than it is, so don't get scared. The result is well worth the effort.

The updated drivers from may 2007 will allow you to use the following software in addition to mplayer which is also supported by the old Suse driver:

MythTV, TVtime, Kdetv, freevo. In addition the picture quality is markedly improved, setting the resolution of the grabbed video image and setting of the correct videonorm is now possible. Last but not least no VBI device is initialized any more which might also cause some strange errors.

To update the driver you will have to install gcc, kernel-sources, kernel-headers and mercurial packages using your favorite packet manager e.g. yast2 for OpenSuse. In addition you need SOX for the operation of the digital audio. Now you are prepped to download and build the drivers. This is quite easy since the PCTV analog USB 150e 55e doesen't need firmware or any kind of DVB support like DVB cards would require which are also supported by the em28xx. To dowload the sources and to build the driver type:
# hg clone http://mcentral.de/hg/~mrec/v4l-dvb-kernel
# cd v4l-dvb-kernel
# make
# make ./install
If this driver update doesen't solve your problem then you might consider to try the experimental tree of the driver:
# hg clone http://mcentral.de/hg/~mrec/v4l-dvb-experimental
# cd v4l-dvb-kernel
# make
# make ./install


Markus Rechberger also suggested somwhere (cant remember the link, though) to reinstall the media/lib to troubleshoot problems with using tvtime. This helped me too to get TVtime working. This could be done by:

# rm -rf  /lib/modules/`uname -r`/kernel/drivers/media

and then reinstalling the drivers. May be that will help if you are experiencing problems which can't be solved otherwise.

In OpenSuse the module (modprobe or insmod) options live in /etc/modprobe.d/tv. The driver has to be loaded to with the correct options so that It will support the PCTV correctly. My /etc/modprobe.d/tv looks like this:
alias char-major-81 videodev
alias char-major-81-0 off
alias char-major-81-1 em28xx
alias char-major-81-2 off
alias char-major-81-3 off
options em28xx card=8 tuner=47 disable_ir=0


All available valid insmod options for card= and tuner= for em28xx are listed here

Without the tuner=47 option I could not tune UHF channels with my device.

Testing video playback

If you have mplayer installed then you can use it to test for correct setup. An mplayer command which is successfully used to start mplayer for tv playback was:
# mplayer -tv device=/dev/video0:amode=0:input=0:norm=PAL:driver=v4l2:outfmt=yuy2 tv://E6
this should tune channel E6 and open a tv window. Use h and k to switch channels. Note that /dev/video0 has to be adjusted to match your PCTV videograbber. It might also be /dev/video1 or the like if you have multiple video input devices.

This one starts mplayer with audioplayback enabeled without the need of SOX
# mplayer -tv driver=v4l2:device=/dev/video0:amode=1:input=0:norm=PAL:adevice=/dev/dsp1:immediatemode=0:audiorate=48000 tv://
Note that /dev/dsp1 needs to match the Audioinput of your PCTV Videograber. It might be /dev/dsp0 or the like.

Audio setup
The PCTV analog USB features no analog output which you could plug into the line in input of your audio card. The PCTV features digital audio (PCM) which has to be piped to the digital sound input of you sound card. Of the software I have tested only mplayer and MythTV can read directly from the digital sound device of the PCTV analog USB and output it over your soundcard. Kdetv, xawtv, motv and freevo remain silent because they expect an analgo output to be connected to the line in of your sound card. For these tv viewers you'll need a workaround. You have to install and use sox to pipe the digtal audio from the tv card to your sound card.
these commands worked for me:
# sox -t ossdsp -r 48000 -b -c 2 /dev/dsp1 -t ossdsp /dev/dsp
# v4lctl -c /dev/video0 volume mute off

(/dev/dsp1 is the pcm device of the analog USB and /dev/dsp is the PCM in of you audiocard. /dev/video0 should be the PCTV analog USB) Change this if the names of the devices on your box differ) now you should hear the sound of the channel you just tuned to with your PCTV analog USB. If you hear only static then try to tune to another channel. Now you can fire up your TV-viewer software e.g kdetv to swich the channels.


Links:
em28xx driver FAQ A lot of problems get addressed here
em2820 driver FAQ this is the old version of the em28xx driver. All development is done on the em28xx now I guess, but you can find some troubleshooting hints for the PCTV analog USB 10e 55e since it is a em2820 based device.
Official em28xx Project Wiki

Labels: ,

Do you want to read on <<click

Monday, May 21, 2007 parmanent link to this post

MythTV: StartRecorder() -- timed out waiting for recorder to start


This problem occured after installation of MythTV under OpenSuse 10.2 using the PCTV analog USB video grabber. Here I write how I solved this issue.


This problem turned out to result from a driver problem for the analogeus USB TV grabber which comes with OpenSuse 10.2. This dirver is outdated. I guess the MythTV can't communicate with the driver. The v4l2 driver for the PCTV USB 150e/55e PAL/SECAM for Linux is the em28xx. The current version fixes this problem.

To install the current driver you need to install the kernel source and kernel headings and the mercurial package which will download the drvier source for you.
In addition its a good idea to a clean reinstall of the media library. I used the following commands which probably can do the trick for you too however don't do the "rm" stuff unless you know that the vf4l driver source compiles without problems:
# rm -rf  /lib/modules/`uname -r`/kernel/drivers/media
# hg clone http://mcentral.de/hg/~mrec/v4l-dvb-kernel
# cd v4l-dvb-kernel
# make
# make ./install

In fact I use the experimentel tree of the driver which also woks fine for me.(http://mcentral.de/hg/~mrec/v4l-dvb-experimental)

The experimental driver works for me with MythTV, Freevo, TVtime, mplayer, and kdetv so it can't get much better, I guess.
releated posts

Labels: , , ,

Do you want to read on <<click

Sunday, May 20, 2007 parmanent link to this post

PCTV analog USB2: "open /dev/vbi: Device or resource busy issue" solved

VBI means Vertical Blank interval of a TV signal in the US terminology. This is the interval between frames where no picture is displayed but information like teletext can be broadcasted. I guess the VBI device in linux is the interface to read out such data from the TV signal provided that you TV grabber can extract you the VBI data from the video signal. Here I write why many people report that the VBI device of the PCTV analog USB is always busy though no application is using it.

the 150e/55e has an em2820 on board which does not support teletext ( raw VBI capture, sliced VBI capture)!!!

Although the em28xx driver supports em2820 based tv grabbers quite well it initializes an vbi device although it probably shouldn't. This is likely to the reason for the erreor you get when starting scnatv:

#scantv

vbi: open failed [/dev/vbi]

open /dev/vbi: Device or resource busy

#dmesg

em28xx #0: this driver can be opened only once

This issue has been fixed in the new version of the em28xx driver. If you update the em28xx driver it wont initialize a vbi device any more. However, after update you are likely to get anoher error message after starting scantv:

open /dev/vbi: no such device or directory
obviously scantv refuses to work without a vbi device which is probably a bug?



But as a workaround you could now start kdetv or xaw tv and scan the channels. This will work and you can enter the addtitional imformation for the channels manually.











Technorati Tags: ,



Powered by ScribeFire.

Labels: , , ,

Do you want to read on <<click

Saturday, May 19, 2007 parmanent link to this post

Howto solve PCTV analog USB 2 (150e/55e) tuner issue: can't scan UHF

For me the em28xx detected tuner #37 which is probably wrong cause tuning UHF channels din't work. Here I explain how to solve this problem.

My tuner reads LG tape something so I use #47 for the tuner= insmod option instead. Now I can tune in UHF channels.

For Suse you have to edit /etc/modprobe.d/tv and enter the module options for the em28xx. Look for options and change tuner=37 to tuner=47. Now UHF works fine for me. Heres how my /etc/modprobe.d/tv looks like.

alias char-major-81 videodev
options em28xx card=8 disable_ir=0 tuner=47
alias char-major-81-0 off
alias char-major-81-1 em28xx
alias char-major-81-2 off
alias char-major-81-3 off
wiki discussing the em28xx UHF tuning issue for other cards

In addition I use card=8. Here is a list of valid choices for the card= insmod option:

em28xx #0:     card=0 -&gt; Generic EM2800 video grabber
em28xx #0: card=1 Generic EM2820 video grabber
em28xx #0: card=2 Generic EM2821 video grabber
em28xx #0: card=3 Generic EM2870 video grabber
em28xx #0: card=4 Generic EM2881 video grabber
em28xx #0: card=5 Generic EM2860 video grabber
em28xx #0: card=6 Generic EM2861 video grabber
em28xx #0: card=7 Terratec Cinergy 250 USB
em28xx #0: card=8 Pinnacle PCTV USB 2 (LG PAL TAPC)
em28xx #0: card=9 Hauppauge WinTV USB 2
em28xx #0: card=10 MSI VOX USB 2.0
em28xx #0: card=11 Terratec Cinergy 200 USB
em28xx #0: card=12 Leadtek Winfast USB II
em28xx #0: card=13 Kworld USB2800
em28xx #0: card=14 Pinnacle Dazzle DVC 90
em28xx #0: card=15 Hauppauge WinTV HVR 900
em28xx #0: card=16 Terratec Hybrid XS
em28xx #0: card=17 Terratec Hybrid XS Secam
em28xx #0: card=18 Kworld PVR TV 2800 RF
em28xx #0: card=19 Terratec Prodigy XS
em28xx #0: card=20 Videology 20K14XUSB USB2.0
em28xx #0: card=21 Usbgear VD204v9
em28xx #0: card=22 Terratec Cinergy T XS
em28xx #0: card=23 Pinnacle PCTV DVB-T
em28xx #0: card=24 DNT DA2 Hybrid
em28xx #0: card=25 Pinnacle Hybrid Pro
em28xx #0: card=26 Hercules Smart TV USB 2.0
em28xx #0: card=27 Compro, VideoMate U3
em28xx #0: card=28 KWorld DVB-T 310U
em28xx #0: card=29 SIIG AVTuner-PVR/Prolink PlayTV USB 2.0
em28xx #0: card=30 Terratec Cinergy T XS (MT2060)
em28xx #0: card=31 MSI DigiVox A/D
em28xx #0: card=32 D-Link DUB-T210 TV Tuner
em28xx #0: card=33 Gadmei UTV310
em28xx #0: card=34 Kworld 355 U DVB-T
em28xx #0: card=35 Supercomp USB 2.0 TV
em28xx #0: card=36 Hauppauge WinTV HVR Rev. 1.2
em28xx #0: card=37 Gadmei UTV330
em28xx #0: card=38 V-Gear PocketTV
em28xx #0: card=39 Kworld 350 U DVB-T
em28xx #0: card=40 Terratec Hybrid XS (em2882)
em28xx #0: card=41 Pinnacle Dazzle DVC 100
em28xx #0: card=42 Generic EM2750 video grabber
em28xx #0: card=43 Yakumo MovieMixer
em28xx #0: card=44 Huaqi DLCW-130
em28xx #0: card=45 Generic EM2883 video grabber
em28xx #0: card=46 Hauppauge WinTV HVR 950
em28xx #0: card=47 Pinnacle PCTV HD Pro
em28xx #0: card=48 Pinnacle Hybrid Pro (2)
em28xx #0: card=49 Hauppauge WinTV USB 2 (R2)
em28xx #0: card=50 NetGMBH Cam
em28xx #0: card=51 Leadtek Winfast USB II Deluxe
em28xx #0: card=52 MSI DigiVox A/D II
em28xx #0: card=53 Typhoon DVD Maker
em28xx #0: card=54 Pinnacle PCTV USB 2 (Philips FM1216ME)
Here is a list for valid options for the insmod tuner= option. I use tuner=47

tuner=0 - Temic PAL (4002 FH5)
tuner=1 - Philips PAL_I (FI1246 and compatibles)
tuner=2 - Philips NTSC (FI1236,FM1236 and compatibles)
tuner=3 - Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)
tuner=4 - NoTuner
tuner=5 - Philips PAL_BG (FI1216 and compatibles)
tuner=6 - Temic NTSC (4032 FY5)
tuner=7 - Temic PAL_I (4062 FY5)
tuner=8 - Temic NTSC (4036 FY5)
tuner=9 - Alps HSBH1
tuner=10 - Alps TSBE1
tuner=11 - Alps TSBB5
tuner=12 - Alps TSBE5
tuner=13 - Alps TSBC5
tuner=14 - Temic PAL_BG (4006FH5)
tuner=15 - Alps TSCH6
tuner=16 - Temic PAL_DK (4016 FY5)
tuner=17 - Philips NTSC_M (MK2)
tuner=18 - Temic PAL_I (4066 FY5)
tuner=19 - Temic PAL* auto (4006 FN5)
tuner=20 - Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5)
tuner=21 - Temic NTSC (4039 FR5)
tuner=22 - Temic PAL/SECAM multi (4046 FM5)
tuner=23 - Philips PAL_DK (FI1256 and compatibles)
tuner=24 - Philips PAL/SECAM multi (FQ1216ME)
tuner=25 - LG PAL_I+FM (TAPC-I001D)
tuner=26 - LG PAL_I (TAPC-I701D)
tuner=27 - LG NTSC+FM (TPI8NSR01F)
tuner=28 - LG PAL_BG+FM (TPI8PSB01D)
tuner=29 - LG PAL_BG (TPI8PSB11D)
tuner=30 - Temic PAL* auto + FM (4009 FN5)
tuner=31 - SHARP NTSC_JP (2U5JF5540)
tuner=32 - Samsung PAL TCPM9091PD27
tuner=33 - MT20xx universal
tuner=34 - Temic PAL_BG (4106 FH5)
tuner=35 - Temic PAL_DK/SECAM_L (4012 FY5)
tuner=36 - Temic NTSC (4136 FY5)
tuner=37 - LG PAL (newer TAPC series)
tuner=38 - Philips PAL/SECAM multi (FM1216ME MK3)
tuner=39 - LG NTSC (newer TAPC series)
tuner=40 - HITACHI V7-J180AT
tuner=41 - Philips PAL_MK (FI1216 MK)
tuner=42 - Philips 1236D ATSC/NTSC dual in
tuner=43 - Philips NTSC MK3 (FM1236MK3 or FM1236/F)
tuner=44 - Philips 4 in 1 (ATI TV Wonder Pro/Conexant)
tuner=45 - Microtune 4049 FM5
tuner=46 - Panasonic VP27s/ENGE4324D
tuner=47 - LG NTSC (TAPE series)
tuner=48 - Tenna TNF 8831 BGFF)
tuner=49 - Microtune 4042 FI5 ATSC/NTSC dual in
tuner=50 - TCL 2002N
tuner=51 - Philips PAL/SECAM_D (FM 1256 I-H3)
tuner=52 - Thomson DTT 7610 (ATSC/NTSC)
tuner=53 - Philips FQ1286
tuner=54 - tda8290+75
tuner=55 - TCL 2002MB
tuner=56 - Philips PAL/SECAM multi (FQ1216AME MK4)
tuner=57 - Philips FQ1236A MK4
tuner=58 - Ymec TVision TVF-8531MF/8831MF/8731MF
tuner=59 - Ymec TVision TVF-5533MF
tuner=60 - Thomson DTT 761X (ATSC/NTSC)
tuner=61 - Tena TNF9533-D/IF/TNF9533-B/DF
tuner=62 - Philips TEA5767HN FM Radio
tuner=63 - Philips FMD1216ME MK3 Hybrid Tuner
tuner=64 - LG TDVS-H06xF
tuner=65 - Ymec TVF66T5-B/DFF
tuner=66 - LG TALN series
tuner=67 - Philips TD1316 Hybrid Tuner
tuner=68 - Philips TUV1236D ATSC/NTSC dual in
tuner=69 - Tena TNF 5335 and similar models
tuner=70 - Samsung TCPN 2121P30A
tuner=71 - Xceive xc3028
tuner=72 - Thomson FE6600
tuner=73 - Samsung TCPG 6121P30A
tuner=75 - Philips TEA5761 FM Radio
the original list can be found here:

em28xx tuner insmod option list: I use no 47 for LG TAPE series
Related Posts can be found here


Labels: , , , ,

Do you want to read on <<click

Tuesday, May 15, 2007 parmanent link to this post

Installing MythTV on OpenSuse Linux 10.2 64 Bit w/ USB 2.0

Myth TV is a Media Center for Linux software. It fetches an electronic programm Guide for you, schedules recordings, seraches your favorite soaps in the electronic programm guide (EPG) and records them for you so you nerver miss a thing. In addition you can load a lot of modules for DVD CD Phosto Mp3 playback and stuff. Pretty neat.

I use MythTV 0.2 and kernel 2.6.18.8-0.3-default SMP with openSUSE patches. The em28xx driver needs to be updated though. Don't try MythTV 0.19 that won't work with the PCTV usb2. probably none of the em28xx devices will work with versions prior to 0.2.

Mythbackend is the server application of MythTV. it controles the TV grabber starts stop the recording and stores media data and stores and the Electronic Program Guide (EPG). All this data is stored in the MySQL database. The forntend is the client application. Its a remotecontrol for the backend. The backend will start stop recordings, swich channels on request of the frontend and stream the movie data to the frontend which will display it to you. The frontend also queries the MySQL datbase for EPG data, I guess. Here I write how I installed MythTV for OpenSuse 10.2

A precompiled *.rpm is provided by Packman

The Packman MythTV rpm v0.2 won't work with SuseLinux 10.2 with PCTV analog USB2 out of the box since the em28xx (driver for the 150e/55e) of OpenSuse 10.2 is outdated. You have to compile you own em28xx V4l2 from sources

follow the MythTV installation instructions for OpenSuse outlined here:

OpenSuse MythTV wiki

or here:

Installing MythTV


Some additional Notes:

Enter as root
# rcmysql start
(issue # chkconfig --level 35 mysql on
when mysql wount start at boot though enabled in the runleveleditor of Yast2 )
then initialize the database:
(Without mysql running mythtv-setup says it cant connect to the mysql server)

# mysql -u root < /usr/share/doc/packages/mythtv/database/mc.sql
List of packqges and dependencys is not complete in the Howto. You have to install xml-grabbers package!!!! this package contains the XML grabbers you need for the EPG channel list!!!! without you get tv_grab_de_tvtoday no such file or directory (or whichever the name of you grabber is)
you'll need to Alt + tab to the console and answer the questions of the grabber. It will ask you which Channels it should fetch for you. only check those channels you'll really need e.g which are available in your Cable netl.
You have to create directory where you want to save your digitally recorded tv programmes and make it world readable/writable before you start the mythtv-setup. you need to specifiy that directory during mythtv-setup. e.g.
# mkdir /home/video
# chmod a+rwx /home/video


start the setup from a console so you can see error messages on the console output!!!!
# mythtv-setup


The grabber is a pice of software which rips the Programm Guide from some website and outputs it in XML (extendable markup language, a flexible file format that mythtv can read)
during setup Mythtv will invoke the grabber
tv_grab_de_tvtoday --configure


This will only configure the grabber. Here you select wich Channels you want to grab from the electronic programm guide from the internet. Configuration will be saved to file
~/.xmltv/tv_grab_de_tvtoday.conf
here you can edit the file in case you made mistakes,
use as root
# rcmythtvbackend start

to start the mythtv backend
After the end of mythtv-setup you can do a
# mythfilldatabase --manual

to enter the frequency channel information for the respective station.
The
--manual
directive triggers an interactive mode where you can provide some information. MythTV needs to know to which channel it has to set the tuner of you tv Grabber (ur PCTV analog USB) if you want to watch a certen Broadcasting station. I will ask you on which channel it can find a Broadcasting station. The unique identifieer of the EPG data is the XMLTV.ID Thus MythTV needs to which XMLTV.ID is found on which channel. In additiont you can enter a lot of other informative stuff like long name and short name of the broadcasting station.
do the mythfilldatabase only for one day with the
--manual
directive else you have to go through all channel by for each day and grabbing takes forever (may be hours +).

use
# mythfilldatabase --update
to grab the following days instead. Once the channels are defined thy will be imported by mythfilldatabase automatically.

Mythfilldatabase takes forever. For me if was faster to run the grabber first for 1 dayThen improt EPG from *.xml file using:
# tv_grab_de_tvtoday --list-channels --output channels.xml
# mythfilldatabase --manual --preset --file 1 -1 channels.xml

have a channels list ready to assaign each station a channel from the channel freequncy list.
you can find this out by using mplayer
start mplayer from the console
mplayer -tv driver=v4l2:device=/dev/video0:amode=1:input=0:norm=PAL:adevice=/dev/dsp1:immediatemode=0:audiorate=48000:fps=30   tv://

and swich channels with h and k. this will require theat the PCTV USB is /dev/video0 and the audio device of the PCTV usb is /dev/dsp1. In the console (STD OUT) mplayer will print the current channel and you can see at the same time what si goin on.
Kdetv can also do a channal scan and you have to add the names manually. the em2820 of the PCTV USB2 150e/55e does not support Teletext/vbi. So dont bother.
then grab the rest
# tv_grab_de_tvtoday  --slow --output EPG.xml
and import
# mythfilldatabase -file 1 -1 EPG.xml --update
the 1 denotes the input source. If its not the first input source you want to grab then adjust this number accordingly -1 is ths offset which imports everything up to 7 day in advance from now on.
When lucky you can now start frontend to watch tv and do recordings and stuff.
to debug start frontend and backend from a console. 
the em28xx and V4l2 drivers which come with OpenSUSE 10.2 are outdated. They don't work for PCTV USB 2 PCTV analog USB2 150e/55e and MythTV
if you start the backend and start live TV you'll get a black screen and get a :

StartRecorder() -- timed out waiting for recorder to start


on the console you started the backend from.

Compile the recent stable version of em28xx

see here: em2880 wiki about mythtv

and here

repository ot the em28xx

you dont need to add any fimware to the source for analog devices like the 150e/55e. Firmware is only needed for digital devices.

To download the sources of the em28xx you will need a special programm which mnages sources. This is called mercurial (check if package is installed). It manages so called mercurial sources.

This is a package wich manages sources of large decentralized projects. It will download the sources you'll need and und update your sources automatically
enter:
You need to install kernel sources and kernel headlins before you can compile the em28xx driver
# hg clone http://mcentral.de/hg/~mrec/v4l-dvb-kernel
# cd v4l-dvb-kernel
# make
# make ./install

now reboot

after reboot MythTV should work.

Note. Kdetv also works only after driver update;)
link that download from v4linux domain is outdated ... can show up on old wiki or forum entries

some useful links:

forum
troubleshooting

Technorati Tags: , , , , ,

Labels: , , , , ,

Do you want to read on <<click

Monday, May 07, 2007 parmanent link to this post

Howto install the Pinnacle PCTV analog USB (PCTV USB 2, 150e / 55e) OpenSuse 10.2 64Bit

PCTV analog USB (Pinnacle Systems GmbH 150e/55e PAL/SEC) Works! It is detected as Pinnacle PCTV USB2 and supported by the em28xx driver.
The TV decoder chip on this device is
  • em2820.
The label on the tuner reads:
  • LG TAPE-S701D 601F0514.
Other chips:
  • EMP202.
  • Phillips
  • SAA7113H,
  • TIPS6:120,
  • PIC16C54C
# dmesg
em28xx v4l2 driver version 0.0.1 loaded
em28xx new video device (2304:0208): interface 0, class 255
em28xx #0: Alternate settings: 8
em28xx #0: Alternate setting 0, max size= 0
em28xx #0: Alternate setting 1, max size= 1024
em28xx #0: Alternate setting 2, max size= 1448
em28xx #0: Alternate setting 3, max size= 2048
em28xx #0: Alternate setting 4, max size= 2304
em28xx #0: Alternate setting 5, max size= 2580
em28xx #0: Alternate setting 6, max size= 2892
em28xx #0: Alternate setting 7, max size= 3072
saa7115 8-0025: saa7113 found @ 0x4a (em28xx #0)
tuner 8-0043: chip found @ 0x86 (em28xx #0)
tda9887 8-0043: tda988[5/6/7] found @ 0x43 (tuner)
tuner 8-0063: chip found @ 0xc6 (em28xx #0)
tuner 8-0063: type set to 37 (LG PAL (newer TAPC series))
em28xx #0: i2c eeprom 00: 1a eb 67 95 04 23 08 02 10 00 1e 03 98 1e 6a 2e
em28xx #0: i2c eeprom 10: 00 00 06 57 6e 00 00 00 8e 00 00 00 07 00 00 00
em28xx #0: i2c eeprom 20: 16 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 30: 00 00 20 40 20 80 02 20 10 01 00 00 00 00 00 00
em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 2e 03 50 00 69 00
em28xx #0: i2c eeprom 70: 6e 00 6e 00 61 00 63 00 6c 00 65 00 20 00 53 00
em28xx #0: i2c eeprom 80: 79 00 73 00 74 00 65 00 6d 00 73 00 20 00 47 00
em28xx #0: i2c eeprom 90: 6d 00 62 00 48 00 00 00 1e 03 50 00 43 00 54 00
em28xx #0: i2c eeprom a0: 56 00 20 00 55 00 53 00 42 00 32 00 20 00 50 00
em28xx #0: i2c eeprom b0: 41 00 4c 00 00 00 06 03 31 00 00 00 00 00 00 00
em28xx #0: i2c eeprom c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom f0: 00 00 00 00 00 00 00 00 0e 5d 62 39 03 ad 97 e4
EEPROM ID= 0x9567eb1a
Vendor/Product ID= 2304:0208
AC97 audio (5 sample rates)
500mA max power
Table at 0x06, strings=0x1e98, 0x2e6a, 0x0000
registered VBI
em28xx #0: V4L2 device registered as /dev/video0 and /dev/vbi0
em28xx #0: Found Pinnacle PCTV USB 2
usbcore: registered new driver em28xx

# lsusb
Bus 001 Device 005: ID 2304:0208 Pinnacle Systems, Inc. [hex] Pinnacle Studio PCTV USB2

Suse 10.2 Recognizes the divice and loads the em28xx driver automatically when device is plugged into USB 2.0 port.

Install: mplayer, video4linux2 (v4l2), sox

Successfull commands to start tv-playback:

# sox -t ossdsp -r 48000 -b -c 2 /dev/dsp1 -t ossdsp /dev/dsp

REM: this will pipe PCTV USB2 audio stream (dsp1) to installed Soundcard device (dsp2)

# v4lctl -c /dev/video0 volume mute off

REM: turns muting of video0 device (PCTV USB2 v4l2 device) off = sound on.

# mplayer -tv device=/dev/video0:amode=0:input=0:norm=PAL:driver=v4l2:outfmt=yuy2 tv://

REM: starts the mplayer with tv playback from video0 with PAL norm. This way i can get audio and video. channels can be swiched with H and K/L on the keyboard when the focus is on mplayer window.

Another possibility to watch TV where audio playback needs no sox, yet channelswitching is buggy:

# mplayer -tv driver=v4l2:device=/dev/video0:amode=1:input=0:norm=PAL:adevice=/dev/dsp1:immediatemode=0:audiorate=48000 tv://

command options will be explained in the man pages of mplayer under -tv option
scantv mythtv and kdetv tvtime don't work with the opensuse 10.2 version of the em28xx driver.




Labels: , , , , ,

Do you want to read on <<click