Archived talk:Em2820: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
m (moved [[Talk:Archived:Em2820]] to [[Talk:Archived talk:Em2820]]: prep for move to other wiki)
m (4 revisions)

Revision as of 22:12, 9 September 2009

Em2820 Linux User Faq

Devices

Please add your device here if it contains an em2800, em2820 or em2840 chip:

  • Pinnacle Systems PCTV USB2 (Audio/Video OK)
  • MSI VOX USB-TV
  • Terratec Cinergy 250 USB TV (AV OK)
  • Gadmei UTV310 (http://www.gadmei.com) has the same vendor/product ID
  • Hauppauge WinTV-USB2 (no sound yet?)
  • Leadtek WinFast USB2 (AV OK)
  • Leadtek WinFast USB2 Deluxe
  • Hercules Smart TV USB2 (not supported atm, component information required)
  • V-Gear PocketTV (not supported atm, component information required)
  • Kworld PVR-TV 2800RF USB2
  • ZEB - TV2005E(USB) http://www.zebronics.net/tvtunercard.asp
  • Videology 21K15x-USB camera (supported by the experimental driver, http://linuxtv.org/hg/~mrechberger/em2880)
  • SIIG AVTuner Pro-PVR (Motherboard is a PTA-8541, probably FurtherTech PTA8541 [1]; note: lsusb reports device as eMPIA 2821)

Audio issues

Does anyone have an idea getting the sound of pinnacle usb2 working? the image quality is surpringly brilliant, but... my system: suse 10.0, v4l-kernel from cvs (updatet some two days ago...). soundcard:82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller, driver: snd-intel8x0. Input:PAL I tryed all the things:

                        -activating everything in kmix (also for the pctv usb2-device)
                        -switched the kde sound-system to alsa
                        -using different players: kdetv, Xawtv, tvtime

1. v4lctl -c /dev/video0 list gives me: "Mute: on" - is that the problem? I could not change this typing v4lctl -c /dev/video0 mute=off. 2. do I have to run some special things in background? 3. I couldn't update dvb-kernel from cvs - is this perhaps causing problem?


please read the Em2820 Wiki documentation, you have to use sox (or something similar) for piping the audio stream from the usb pctv device to your soundcard. -- MarkusRechberger


I've the same problem with SECAM (after some modification on the driver) with mute=on and I'm very sorry but Iwill hope a little bit more explanation to use sox if it's possible


still any problems here?

Markus


I have a Pinnacle PCTV USB 2 device and while I could get audio with tvtime working (using the "sox -t ossdsp -r 48000 -b -c 1 /dev/dsp2 -t ossdsp /dev/dsp" command). The problem I had was with mplayer (and mencoder) not being able to get the audio stream even with the sox command running. As it turns out, (as mentioned above) the audio channel was muted, and mplayer doesn't turn the mute off. The following commands worked for me in getting audio through mplayer, and recording audio using mencoder:

1. Turn mute off (run this before running either the mplayer or mencoder command):

Command: v4lctl -c /dev/video0 volume mute off

Notes: "/dev/video0" is my Pinnacle PCTV USB 2 device (found in dmesg)

2. Running mplayer at the specified channel (using the freq option):

Command: mplayer -tv driver=v4l2:device=/dev/video0:input=0:freq=280.25:norm=PAL:forceaudio:immediatemode=0:amode=0:alsa:adevice=hw.2:width=768:height=576 tv://

Notes: I forced the frequency (channel) with freq=280.25. The audio device in alsa is hw:2 or adevice=hw.2 which maps to /dev/dsp2 in oss. Two important options are "forceaudio" and "immediatemode=0".

3. My mencoder command:

Command: mencoder tv:// -tv driver=v4l2:device=/dev/video0:outfmt=i420:amode=0:input=0:norm=PAL:adevice=hw.2:alsa:forceaudio:immediatemode=0:width=704:height=576:freq=280.25 -ovc lavc -oac lavc -lavcopts acodec=ac3:vcodec=mpeg2video:keyint=50:sc_threshold=0:vrc_eq=1:aspect=4/3:vbitrate=1800 -endpos 03:00:00 -o record.mpg

Notes: The important thing here is that the tv options match what you use for mplayer. Then you should be able to record with audio.

Now I can try and get freevo working with mplayer (since I couldn't get tvtime to work), and recording should hopefully work too. If you want the mplayer command all in one line, then try:

v4lctl -c /dev/video0 volume mute off & wait & mplayer -tv driver=v4l2:device=/dev/video0:input=0:freq=280.25:norm=PAL:forceaudio:immediatemode=0:amode=0:alsa:adevice=hw.2:width=768:height=576 tv://


Wes.


help on starting

Hi!

I have a Pinnacle PCTV USB2 and I'd like to try it out on Linux.

I read the wiki about this device been supported and I need some help on installing it.

Where can I download the package?

After download the package, do I need just to compile it or it is a patch to be applied on my kernel source or v4l source?


Thanks for the help,

Renato


just get the v4l-kernel from cvs and compile it:

$ cvs -d :pserver:anonymous@cvs.linuxtv.org:/cvs/video4linux login
$ cvs -d :pserver:anonymous@cvs.linuxtv.org:/cvs/video4linux co -P v4l-kernel
$ cd v4l-kernel
$ cd v4l
$ make
...
...
$ make install
$ modprobe em28xx

you will also need the kernel headers for doing all that

MarkusRechberger

ioctl VIDIOCGAUDIO: Invalid argument

Hi,

I have a msi vox usb 2.0 tv tuner, i downloaded v4l from cvs and the compiler worked fine. When i modprobe em28xx my usb tv card its recognized and seted up. But when i run xawtv, aatv, tvtime, or whatever ... i get ioctl VIDIOCGAUDIO: Invalid argument and i cant see anything. My running kernel is 2.6.14-1, debian sarge distro.

v4l-info show the same thing, ioctl VIDIOCGAUDIO: Invalid argument and in the other line i get: ioctl VIDIOCGFBUF: Invalid argument

If anybody know what else can i do, i would appreciate it ...

cheers, Nitam.


Hi Nitam,

The MSI Vox isn't completly supported at the moment, I'll try to fix it during the next few days (only problem is I don't have that device and because of that I have to wait for others to test it)


Well, i can help you with that if you want, let me know if you need my email/msn/icq or whatever and i'll test your fix/updates.

regards, Nitam.

ps: email eskali@gmail.com

Can't tune any channel

First I'd like to thank you for allowing us to use our USB capture device on Linux.

I've downloaded the latest CVS of video4linux following the instructions you gave me.

My device is a Pinnacle PCTV USB2.

I'm having problems when I try to use the tuner, I just can't find any channel.

If I try:


mplayer -tv device=/dev/video0:amode=0:input=0:norm=3:driver=v4l2:outfmt=yuy2:channels=16-16,24-24,51-51 tv://


I got only static from the three channels above (note that if I try the same channels on Windows they tune ok). Looking at the output from mplayer I see this:


Couldn't find frequency for channel 16 (16) Selected channel: 16 - 16 (freq: 0.000)


So I figure out that it was because of the frequency. I tried a lot of params like freq=483250 (frequency from channel 16 reported by Pinnacle Windows app) but still didn't work.

Anyone have any ideia where is the problem?

By the way, I'm in Brazil... here we use PAL-M and I'm trying to tune from antenna, not cable.

PS: I have tried others apps like xawtv, kdetv, zapping, etc... and the same happens with them.


Thanks a lot!!

Renato


Hi Renato,

could you try:

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

norm=PAL or NTSC

use H or K/L for tuning the channels

Markus


Markus,

Thanks again for helping.

I tried the command you gave me (PAL and NTSC) but I couldn't tune any channel.


On my Windows app, I have an option to select if the source from tuner is from Cable or Antenna. To be allowed to tune the channels on Windows I have to select "Antenna". If I select Cable I have the same problem that I'm having on Linux. Do you think the problem could be this?

I have tried some parameters for the module tuner but still no lucky, I'm trying:

modprobe tuner pal=1 tv_antenna=1


Thanks again!



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

also try different input values,

please provide what dmesg and lsmod shows up after plugging in the device

you normally don't have to touch any tuner settings.

Markus


Markus,

This is the output from dmesg after pluging the card:

usb 1-3: new high speed USB device using ehci_hcd and address 2
usbcore: registered new driver snd-usb-audio
Linux video capture interface: v1.00
em28xx v4l2 driver version 0.0.1 loaded
em28xx new video device (2304:0208): interface 0, class 255
em28xx: Alternate settings: 8
em28xx: Alternate setting 0, max size= 0
em28xx: Alternate setting 1, max size= 1024
em28xx: Alternate setting 2, max size= 1448
em28xx: Alternate setting 3, max size= 2048
em28xx: Alternate setting 4, max size= 2304
em28xx: Alternate setting 5, max size= 2580
em28xx: Alternate setting 6, max size= 2892
em28xx: Alternate setting 7, max size= 3072
saa711x: Ignoring new-style parameters in presence of obsolete ones
tuner 2-0063: chip found @ 0xc6 (em28xx #0)
tuner 2-0063: type set to 37 (LG PAL (newer TAPC series))
tda9887 2-0043: chip found @ 0x86 (em28xx #0)
em28xx #0: i2c eeprom 00: 1a eb 67 95 04 23 08 02 10 00 1c 03 98 20 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 01 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 20 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 4e 00
em28xx #0: i2c eeprom b0: 54 00 53 00 43 00 00 00 00 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 0c 22 17 39 02 a5 84 d9
EEPROM ID= 0x9567eb1a
Vendor/Product ID= 2304:0208
AC97 audio (5 sample rates)
500mA max power
Table at 0x06, strings=0x2098, 0x2e6a, 0x0000
em28xx #0: V4L2 device registered as /dev/video0
em28xx #0: Found Pinnacle PCTV USB 2
usbcore: registered new driver em28xx

This is my lsmod:

Module                  Size  Used by
tda9887                14160  0
tuner                  42596  0
saa711x                 6416  0
em28xx                 46244  0
compat_ioctl32           896  1 em28xx
v4l1_compat            13508  1 em28xx
v4l2_common             4608  1 em28xx
videodev                7360  1 em28xx
ir_common               7940  1 em28xx
tveeprom               12752  1 em28xx
snd_usb_audio          74368  0
snd_usb_lib            14464  1 snd_usb_audio
snd_hwdep               7072  1 snd_usb_audio
snd_pcm_oss            49568  0
snd_mixer_oss          17280  3 snd_pcm_oss
uhci_hcd               30672  0
snd_intel8x0m          15428  1
snd_intel8x0           30368  2
snd_ac97_codec         92924  2 snd_intel8x0m,snd_intel8x0
snd_ac97_bus            1856  1 snd_ac97_codec
snd_pcm                83272  5 snd_usb_audio,snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_page_alloc          8392  3 snd_intel8x0m,snd_intel8x0,snd_pcm
i2c_nforce2             5824  0
i2c_core               17808  6 tda9887,tuner,saa711x,em28xx,tveeprom,i2c_nforce2
kqemu                  39240  0
cdemu                   8524  0
nvidia               3705928  14

Thanks again!

Renato


Hello,

I am from Italy.

I have a "Pinnacle PCTV USB2 PAL Rev: 1.2" and I have the same problem of Renato (just (27 NOV 2005 12:40) downloaded the source from cvs and compiled/installed the driver). I noticed that the only channels I can tune are: 11 12 66 68 69 88 (tvtime)

In the stationlist.xml of tvtime I found this:

position="11" band="VHF E2-E12" channel="E11"
position="12" band="VHF E2-E12" channel="E12"
position="66" band="VHF Russia" channel="R9"
position="68" band="VHF Russia" channel="R11"
position="69" band="VHF Russia" channel="R12"
position="88" band="VHF Italy" channel="G"

It seems that I can't tune UHF band channels.

Hope this info can help.

Lorenzo Ferrara

PCTV USB2

Hey guys, I'm totally new to these Wiki things, and Linux itself. I have managed to install the driver and get my PCTV USB2 device working pretty nicely on a program called "tvtime". However, there is no audio. I was reading the main page and was confused as to if it works or not. I checked out the usb audio section, and did this bit:

$ amixer -c 1 Simple mixer control 'PCM',0

 Capabilities: cvolume cswitch cswitch-joined
 Capture channels: Mono
 Limits: Capture 0 - 16
 Mono: Capture 4 [25%] [on]

$ amixer -c 1 sset PCM 5 Simple mixer control 'PCM',0

 Capabilities: cvolume cswitch cswitch-joined
 Capture channels: Mono
 Limits: Capture 0 - 16
 Mono: Capture 5 [31%] [on]

Except, my card had different information, obviously. So I was wondering if there is a way to make the audio work via usb.

Any help would be much appreciated. (Im using Ubuntu and tv time by the way)

NO SOUND

I'm using PClinuxOS and TVtime (the only one tv wiever working for me with SECAM mode Tuner=38 in place of 37).Tv picture is very fine but no sound. The mixer is correct:

  1. amixer -c 0

Simple mixer control 'Master',0

 Capabilities: pvolume pswitch pswitch-joined
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 31
 Front Left: Playback 31 [100%] [on]
 Front Right: Playback 31 [100%] [on]

.............and so

  1. amixer -c 1

Simple mixer control 'PCM',0

 Capabilities: cvolume cswitch cswitch-joined
 Capture channels: Mono
 Limits: Capture 0 - 16
 Mono: Capture 16 [100%] [on]

Is a mute problem in PCTV USB2 ?

Many thanks for help


can you provide some more information:

cat /proc/asound/cards

you also need to pipe the audio stream from the USB Audio device to your soundcard. sox is explained on the em2820 wiki site, but you can also try a cat /dev/dspx > /dev/dspy where you have to replace dspx with the usbaudio device and dspy is the soundcard dsp device

hope this helps,

Markus

no sound

many thanks to marcus for help, I 've make a misunderstood with /dev/dspx and now with sox and I've sound but it's very strange. configuration: kernel 2.6.15-rc1 with v4l2 my tuner SECAM is (reference after open PCTV on inboard tuner-chip : FQ1216ME H-3) sound on channel 126 and picture on channel 125 and so one for all channels....??? the sound is on the next channel after picture channel and on the channel on witch I obtain picture I've only noise like misaccording frequency.

Have you some ideas. Many thanks


did you try to fine tune the channel? what does cat /dev/dsp[of your pinnacledevice] show up when a channel without sound is tuned in?

Markus


Hello

I have the same problem. cat /dev/dsp2 only shows up: "cat: /dev/dsp2: Device or resource busy" when i'm running tvtime. When I am not running tvtime, it shows only a white screen.

Schaf

Tune UHF channels

Hi!

It's me again :)

I think Lorenzo found my problem. I've completely forgot that here in Brazil all open-channels are UHF (at least in my city) so I think that's why I can't tune channels.

Is UHF supported? If not, are there some plans to implement it?

Thanks a lot and sorry for disturbing you.. but I'm just getting crazy to watch TV on my linux box.


Thanks again!

Renato


the driver supports a quite big range of channels, did you ever try mplayer with the default config and pressing h/k? (look at the em2820 wiki site how to use mplayer with v4l2)

Markus


Yes Markus, I have tried using mplayer with the default settings you gave me and pressing h/k.. I tried all the channels in both direction but none of them worked for me.

Lorenzo sad that the same happens with him when tring to tune UHF channels.

Any ideias??

Thanks!!

Can't modprobe em28xx

I can't modprobe the em28xx driver

linux:/home/oak # modprobe -v em28xx
insmod /lib/modules/2.6.13-8-default/kernel/drivers/media/common/ir-common.ko
insmod /lib/modules/2.6.13-8-default/kernel/drivers/media/video/v4l1-compat.ko
insmod /lib/modules/2.6.13-8-default/kernel/drivers/media/video/em28xx/em28xx.ko
FATAL: Error inserting em28xx (/lib/modules/2.6.13-8-default/kernel/drivers/media/video/em28xx/em28xx.ko): Unknown symbol in module, or unknown parameter (see dmesg)
linux:/home/oak #
linux:/home/oak # dmesg | grep em28
em28xx: module not supported by Novell, setting U taint flag.
em28xx: disagrees about version of symbol tveeprom_hauppauge_analog
em28xx: Unknown symbol tveeprom_hauppauge_analog
linux:/home/oak #




[just tried to fix it with tveprom module manual load]
linux:/home/oak # modprobe tveeprom
linux:/home/oak # modprobe -v em28xx
[got same errors as above...]

[loaded modules check]
linux:/home/oak # lsmod | grep ir-common
linux:/home/oak # lsmod | grep v4l
v4l1_compat 13060 0
v4l2_common 5760 0
linux:/home/oak #
linux:/home/oak # lsmod | grep common
ir_common 9604 0
v4l2_common 5760 0
linux:/home/oak #
linux:/home/oak # lsmod | grep eprom
ivtv_tveeprom 12588 0
i2c_core 20368 3 i2c_i801,i2c_algo_bit,ivtv_tveeprom
linux:/home/oak #


The v4l kernel has it's own tveeprom module. rebuild the modules do a make install - reboot your machine and reload the modules

Markus



Markus, I'll double check the process of intalling the driver, but I don't think this is a reason. I did try to restart the computer (few times), I did try to not modprobe the tveeprom module first, but I didn't succeed either. With loading the tveeprom first was a wild card - I thought perhaps it is missing something ("Unknown symbol in module, or unknown parameter") from the tveeprom module... I think that the problem could be in following lines:

em28xx: module not supported by Novell, setting U taint flag.
em28xx: disagrees about version of symbol tveeprom_hauppauge_analog
em28xx: Unknown symbol tveeprom_hauppauge_analog

I met simillar problem before (while tryed to install commercial OSS sound driver), they send me another ("no regparm") version of their drivers and it did work (well partially :-) ).


do you have the kernel correct kernel sources for your running kernel? "I did try to not modprobe the tveeprom module first" why? it's needed by the em28xx driver. The em28xx module just glues some other things together which we didn't want to write again. You also need the tveeprom module from the v4l-kernel project. but "module not supported by Novell" this is strange. You could get around that by installing a completly custom kernel for sure.

Markus



i had the same problem.

after replacing

/lib/modules/2.6.13-15.8-default/extra/ivtv-tveeprom.ko

with

/lib/modules/2.6.13-15.8-default/kernel/drivers/media/video/tveeprom.ko

in file

/lib/modules/2.6.13-15.8-default/modules.dep

at line starting with

/lib/modules/2.6.13-15.8-default/kernel/drivers/media/video/em28xx/em28xx.ko:

it works fine.

bambi

PCTV usb2: sound problem

I also use tvtime with my Pinnacle pctv usb2 card. I can see the images, but my sound doesn't work too. cat /proc/asound/cards provides:

 0 [I82801DBICH4   ]: ICH4 - Intel 82801DB-ICH4
                      Intel 82801DB-ICH4 with AD1981B at 0xc0000c00, irq 11
 1 [Modem          ]: ICH-MODEM - Intel 82801DB-ICH4 Modem

Why is my tv-card not listed? Shouldn't the tvcard be the dsp1? when I try in vlc to watch tv, I receiver the message(after I set the audio do /dev/dsp1):

v4l demuxer error: mmap unsupported

with "mplayer -tv device=/dev/video0:amode=0:input=0:norm=PAL:driver=v4l2:outfmt=yuy2 tv://" I can see the pictures too, but I receive the message:

 Audio: no sound
 Starting playback...

I use FC4. In the soundcard-detection, the pinnacle tv card is listed, and when I select test device, then I can hear a test sound.

Does anybode can give me some advice? I tryed now hours to solve the problem. thanks for your help

Laurent


When I use in mplayer the option immediatemode=0:

mplayer -zoom -tv driver=v4l2:amode=0:norm=PAL:outfmt=yuy2:forceaudio:immediatemode=0 tv://

Then I don't receive anymore the message no sound, but I still can't hear the sound. I receive the message:

Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
AO: [oss] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
A:   3.1 V:   2.3 A-V:  0.791 ct:  0.228  58/ 58  0%  0% 139.5% 50 0 0%
          ************************************************
          **** Your system is too SLOW to play this!  ****
          ************************************************
Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
 - Try -ao sdl or use the OSS emulation of ALSA.
 - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
 - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
 - Don't try to play a big DVD/DivX on a slow CPU! Try -hardframedrop.
- Broken file
 - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
 - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
 - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
v4l2: 1019 frames successfully processed, 8 frames dropped..4% 533 0 0%
Exiting... (Quit)

With the option -ao sdl I don't receive this message any more but my sound still doesn't work. What else can I try now?

Laurent


please read through the em2820 wiki site you need sox or something similar to get sound work!

Markus


Yes I read this already, but I don't know how to use sox. when I type

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

I receive as normal user:

sox: Can't open output file '/dev/dsp2': Permission denied

and as root:

sox: Unable to reset OSS driver.  Possibly accessing an invalid file/device 

with:

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

sox stucks and writes no message, and my sound still doesn't work. I think that the problem is, because with "cat /proc/asound/cards" my tvcard isn't listed.

when I start mplayer with:

mplayer -zoom -ao sdl -tv driver=v4l2:amode=1:input=0:norm=PAL:alsa:outfmt=yuy2:adevice=hw.0:forceaudio:immediatemode=0 tv://

then I can hear my own voice when I talk in the microphone.

In tvtime I can't hear anything. How can I make sox work?

thanks

Laurent

Problem still unsolved

I succeeded now that my tv card is in this list:

cat /proc/asound/cards
0 [I82801DBICH4 ]: ICH4 - Intel 82801DB-ICH4
Intel 82801DB-ICH4 with AD1981B at 0xc0000c00, irq 11
1 [Modem ]: ICH-MODEM - Intel 82801DB-ICH4 Modem
Intel 82801DB-ICH4 Modem at 0x2400, irq 11
2 [PALSECAM ]: USB-Audio - PCTV USB2 PAL/SECAM
Pinnacle Systems GmbH PCTV USB2 PAL/SECAM at usb-0000:00:1d.7-3, high speed

it is not exactely the same output as in the wiki.

with the amixer command Ireceive:

amixer -c 2 sset PCM 5
 Simple mixer control 'PCM',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 16
  Mono: Capture 5 [31%] [on]

I also can't hear anymore the testsound in the soundcard detection of gnome. When my soundcard wasn't in the cards list, I heard this sound.

With sox I receive now:

sox -t ossdsp -r 48000 -b -c 2 /dev/dsp -t ossdsp /dev/dsp2 :
sox: Can't open output file '/dev/dsp2': No such device

Laurent



my sound works now, when I use this command:

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

and not with

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

like it is written in the wiki. Now I have another question: I use tvtime. I can't tune correctly some channels. With finetune, the best audio quality is at another place than the best video quality, so I can watch these channels, either with a good sound or good images, but both together doesn't work. Other channels are perfect. in some channels I only hear a lot of noise, but no voices at all. In windows all the channels work.

Laurent


Hi Laurent,

have you succeeded using sound with mplayer? I haven't :-(

I was only able to get sound with xawtv (using the sox "redir" above). However, since I recorded a longer program on the Composite input with xawtv at the weekend it has not been showing the picture (it worked almost fine at that time). Though I can use its recording tool and see the playback with mplayer, e.g.

The almost is for the 384x288 mode: if I would like to watch the TV in higher res. the picture flickers when also using the sox "redirection". Without sox (and sound) it's OK. [...] OK, using sox with -r 8000 the video shows up correctly also in 720x576, e.g. But still no idea what happened with xawtv. It just shows a frame and then gets blank.

Adding immediatemode=0 and -ao sdl to the options of mplayer (and NOT using sox) I can hear some dashed noise getting stronger and stronger. Moreover, also the picture grabbing will not be continuous. Do mplayer and sox need to be used at the same time, at all? (See that "/dev/dsp: resource busy" problem below.)

I'm using 2.6.12 linux kernel and on Saturday downloaded v4l-kernel stuff, if it counts.

Zsolt

PS: some other strange phenomena: scantv fails after setting up the frequency table

ioctl: VIDIOC_S_CTRL(id=9963778;value=16): Invalid argument
ioctl: VIDIOC_S_CTRL(id=9963776;value=0): Invalid argument
ioctl: VIDIOC_S_CTRL(id=9963777;value=16): Invalid argument
vbi: open failed [/dev/vbi]
open /dev/vbi: No such device

Though,

lrwxrwxrwx  1 root root        4 2005-12-17 19:10 /dev/vbi -> vbi0
crw-rw-r--  1 root video 81, 224 2005-12-17 19:09 /dev/vbi0

Furthermore, about the mplayer:

mplayer -zoom -tv amode=0:input=1:norm=PAL:driver=v4l2:width=384:height=288:outfmt=yuy2:\
                  alsa:adevice=hw.0:immediatemode=0:forceaudio -ao sdl tv://
sox -t ossdsp -r 44100 -c 2 /dev/dsp1 -t ossdsp -c 1 /dev/dsp
sox: Can't open output file '/dev/dsp': Device or resource busy
(and it plays that noise louder and louder)

My soundcards:

$ cat /proc/asound/cards 
0 [I82801DBICH4   ]: ICH4 - Intel 82801DB-ICH4
                     Intel 82801DB-ICH4 with AD1981B at 0xc0000c00, irq 5
1 [PALSECAM       ]: USB-Audio - PCTV USB2 PAL/SECAM
                     Pinnacle Systems GmbH PCTV USB2 PAL/SECAM at usb-0000:00:1d.7-4, high speed

(I really do not know whether the setting "amixer -c 1 sset PCM 5" is necessary.)

Zsolt (still)




To Zsolt

I think that you have to replace in sox the 2 by a 1:

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

The noise you hear in mplayer is in my oppinion the microphone and it becomes stronger because it amplifies the sound which comes out of the loudspeakers. To make my sound in mplayer work I write first

v4lctl setattr mute 0

Then I start sox and then I start mplayer:

mplayer -tv driver=v4l2:amode=0:input=0:norm=PAL:outfmt=yuy2:forceaudio:immediatemode=0 tv://

sox has to run the same time. If you receive ressource busy, perhaps you are running another program which uses oss too, so you have to leave all other programs.

Laurent


Thanks Laurent! I missed this

v4lctl setattr mute 0

setting. It seems that xawtv and tvtime do this internally (that's why only the sox line is needed, AFAIK). However, it must be done "manually" with mplayer.

Some other comments or questions:

[the kernel upgrade has made the most of this obsolete. Getting the sound through alsa with 44.1kHz s16le works now and there is no need for sox. See the boxed two line: v4lctl... and mplayer tv:// ... .]

  • the picture and the sound are not in synchron: the audio is delayed a bit. [This could be solved upgrading my kernel from 2.6.12 to 2.6.15]
  • using immediatemode=0, the delay seems to be getting worser -- [the kernel should had been upgraded here, too]
  • what is the best method to record the grabbed "movie"? I could record with xawtv (using the options -remote -global:filter "linear blend" for deinterlacing) but only in 384x288 to a separate raw YUY2 file and wav file. Then I MUXED them with mencoder. On the mencoder-users list I have seen a message that mencoder is momentarily not the best solution for recording from tv://
  • if /dev/dsp1 refers to the PCTV USB sound device, then maybe there is no need for sox:
v4lctl setattr mute 0
mplayer tv:// -tv amode=0:input=1:norm=PAL:outfmt=yuy2:alsa:adevice=hw.1:immediatemode=0:forceaudio -ao sdl

Please note, that hw.1 stands for /dev/dsp1 and input=1 means that I used the Composite input. However, I do not know how to prescribe the sample rate of the audio input (to 8000 to avoid flickering pictures, e.g.). I am not sure that the -srate option is the best solution for it. Till getting more information about this, one can use sox instead:

v4lctl setattr mute 0
sox -t ossdsp -r 8000 -w -c2 /dev/dsp1 -t ossdsp /dev/dsp
mplayer tv:// -tv amode=0:input=1:norm=PAL:outfmt=yuy2

(the options alsa:adevice=hw.0:forceaudio can be added to it, but I found no effect...)
Some comments on sox: defining 16bit samples (-w) yields better quality with 8000Hz srate.

Zsolt


Hello

Normally you synchronize the sound in mplayer with + or - But watching tv, it seems that it doesn't work. Sorry but I can't help you with this. I don't have this synchronisation problem. Yes you are right, with "alsa:adevice=hw.2", the sound works without sox. I succeeded now to make it work with:

v4lctl setattr mute 0
mplayer -tv driver=v4l2:amode=0:input=0:norm=PAL:alsa:adevice=hw.2:outfmt=yuy2:forceaudio:immediatemode=0 -ao oss tv://

Laurent


I still haven't solved my problem. I can't tune correctly some channels. With finetune, the best audio quality is at another place than the best video quality, so I can watch these channels, either with a good sound or good images, but both together doesn't work. What can I do. First I thought that it is perhaps because I live in Switzerland, but last week I was in Luxembourg and there too, I have this problem.


Laurent

Video offset

I finally got my MSI VOX USB2.0 working and I believe its set to NTSC but the video is offset like a portion of the top of cut off and moved to the bottom. I have tried tvtime and xawtv and MPlayer and all the same result.


Screenshot please, the initialization code was taken from a MSI Vox pal device yes.

Markus


Here is the screenshot http://www.sweetlikecandy.info/tvtime/tvtime-output-06:02:57%20PM.png

I also notice there seems to be no audio coming out of the audio out jack of the device.


it's a problem in the saa711x module, can you please follow http://www.linuxtv.org/v4lwiki/index.php/USBVideo and send me some windows logs so that I can compare the saa711x setup of your device.

Markus


http://www.sweetlikecandy.info/usbsnoop.rar I hope it logged correctly.. (:


without looking at the logs .. did you set tvtime to the appropriate videostandard? I remember I had the same issue with a video that was set to NTSC but I'm in a PAL region.

Markus


Yes I did and the only difference it made was it changed the colors from b&w to color.


could you send me your email address? I'd like to send you a tool for setting up your videodecoder (mrechbergerATgmailDOTcom)

Markus

Tuning problems

Hi, I'm new to Wiki things so I hope to mess not anything.. (My english is very bad..)

I'm from Italy and I've got the same sort of problems of Lorenzo (Italy) and Renato (Brazil), I tried both tvtime and mplayer, my device is Pinnacle Systems GmbH PCTV USB2 PAL/SECAM , I've just (20-12-2005, 11.36 GMT+1) compiled and installed last cvs driver :

modprobe em28xx, snd_usb_audio goes well and I manage to listen audio by using sox from /dev/dsp1 to /dev/dsp.

But still I'm not able to tune many channels:

both tvtime and mplayer show only "black and white" pixel in the two or three channels I can quite watch, and ,apart getting no colors, those three channels are still very "disturbed", in Italy we call this "snow-effect", I think you could understand what I mean...

Trying to use tvtime-scanner lead me to this stationlist.xml:


<?xml version="1.0"?> <!DOCTYPE stationlist PUBLIC "-//tvtime//DTD stationlist 1.0//EN" "http://tvtime.sourceforge.net/DTD/stationlist1.dtd"> <stationlist xmlns="http://tvtime.sourceforge.net/DTD/">

 <list norm="PAL" frequencies="Custom" audio="i">
   <station name="81,50MHz" active="1" position="1" band="Custom" channel="81,50MHz" finetune="0" norm="PAL" audio="auto"/>
   <station name="183,00MHz" active="1" position="2" band="Custom" channel="183,00MHz" finetune="0" norm="PAL" audio="auto"/>
   <station name="209,25MHz" active="1" position="3" band="Custom" channel="209,25MHz" finetune="0" norm="PAL" audio="auto"/>
   <station name="494,25MHz" active="1" position="4" band="Custom" channel="494,25MHz" finetune="0" norm="PAL" audio="auto"/>
 </list>

</stationlist>


(NOTE: the 3rd give me no-signal)

but while scanning, from a certain freq (I'm now logging the process so I can specify exactly which freq) it tells the driver begins to react strangely, not allowing to start and stop streaming, and after the scanning I need to "modprobe -r em28xx" and then "modprobe em28xx" again to get the device working, because ,if I don't do that, tvtime say me that: /dev/video0 is not a valid v4l device (or something similar)

So I write here after reading about possible UHF "unsupport" (again excuse my bad english!) I hope you can help me fix this.

Nicola

P.S. I was forgetting to thank you for letting us the possibility to watch tv in our linux powered computer, you're doing a great and unvaluable work for us all. Sorry for disturbing,but i must agree with nikola: You do a great work for us, I thank you too... Maybe some day we don't need windows for anything :-) - johny-X

Varogami


I wrote in the mailing list that it need this line:

alias char-major-81 videodev
alias char-major-81-0 tveeprom
alias char-major-81-1 em28xx
options em28xx tuner=38
options tuner secam=d pal=d
options tda9887 port2=0

in /etc/modprobe.d/tv


but I don't try it.


Tunig solution

Hi!

I had the same problem with UHF. Finally I found out that i had an other tuner (FQ1216ME) by opening my PCTV-Box. So i altered 'options em28xx tuner=38' to 'options em28xx tuner=24' which schuld be my tuner, but i could not get any picture. So after asking google, i found a thread telling that tuner=56 was OK, and it was! Finally i can watch TV on my Box!

So my settings are:

alias char-major-81 videodev
alias char-major-81-0 tveeprom
alias char-major-81-1 em28xx
options em28xx tuner=56
options tuner secam=d pal=d
options tda9887 port2=0

I use ubuntu and therefore i had to put it in /etc/modprobe.d/tv .

see also: http://linuxtv.org/hg/v4l-dvb?cmd=file;file=linux/Documentation/video4linux/CARDLIST.tuner;filenode=-1;style=raw and: http://www.spinics.net/lists/vfl/msg25072.html

MODPROBE PROBLEM

Hi!

First of all I'd like to thank you for this great job.

And of course, a question :-)

I have a problem modprobing em28xx:

nukkibox ~ # modprobe em28xx
FATAL: Error inserting em28xx (/lib/modules/2.6.14-gentoo-r4/kernel/drivers/media/video/em28xx/em28xx.ko): Unknown symbol in module, or unknown parameter (see dmesg)

then:

nukkibox ~ # dmesg | grep em28
em28xx: Unknown symbol video_unregister_device
em28xx: Unknown symbol video_device_alloc
em28xx: Unknown symbol video_register_device
em28xx: Unknown symbol video_usercopy
em28xx: Unknown symbol video_device_release
em28xx: Unknown symbol video_unregister_device
em28xx: Unknown symbol video_device_alloc
em28xx: Unknown symbol video_register_device
em28xx: Unknown symbol video_usercopy
em28xx: Unknown symbol video_device_release
em28xx: Unknown symbol video_unregister_device
em28xx: Unknown symbol video_device_alloc
em28xx: Unknown symbol video_register_device
em28xx: Unknown symbol video_usercopy
em28xx: Unknown symbol video_device_release
em28xx: Unknown symbol video_unregister_device
em28xx: Unknown symbol video_device_alloc
em28xx: Unknown symbol video_register_device
em28xx: Unknown symbol video_usercopy
em28xx: Unknown symbol video_device_release


Could you please help me? Actually, there are only two reasons having windows on my laptop - one commercial soft and PCTV USB 2.0 :-)

Thanks a lot in advance

--Alexander Batyuk 21:12, 4 Jan 2006 (CET)


looks like videodev.ko isn't installed in your kernel library path. after building the v4l-kernel do a make install. you could also upgrade your kernel to 2.6.15 and enable em28xx support in the kernel menu or .config file

Markus

Hi Markus. Actually I have the same problem on my Suse10 Distro with a Leadtek WinFast USB II Deluxe tunner. After I compile the latest sources from CVS for v4l, I can't modprobe em28xx module, as I get the following:

modprobe -v em28xx
insmod /lib/modules/2.6.13-15.8-default/kernel/drivers/media/video/em28xx/em28xx.ko
FATAL: Error inserting em28xx (/lib/modules/2.6.13-15.8-default/kernel/drivers/media/video/em28xx/em28xx.ko): Unknown symbol in module, or unknown parameter (see dmesg)

and:

dmesg|grep em28
em28xx: module not supported by Novell, setting U taint flag.
em28xx: disagrees about version of symbol tveeprom_hauppauge_analog
em28xx: Unknown symbol tveeprom_hauppauge_analog
em28xx: module not supported by Novell, setting U taint flag.
em28xx: disagrees about version of symbol tveeprom_hauppauge_analog
em28xx: Unknown symbol tveeprom_hauppauge_analog
em28xx: module not supported by Novell, setting U taint flag.
em28xx: disagrees about version of symbol tveeprom_hauppauge_analog
em28xx: Unknown symbol tveeprom_hauppauge_analog
em28xx: module not supported by Novell, setting U taint flag.
em28xx: disagrees about version of symbol tveeprom_hauppauge_analog
em28xx: Unknown symbol tveeprom_hauppauge_analog

Please advice what can I do about all this. Thanks in advance, Cipri.


did you do a "make install" and reboot your machine?

Markus

Audio/Video Delay

Hi, my name is Enrico, from Italy. Thank you very much for what you are doing!! I have a Pinnacle PCTV USB2 on a Dual Xeon System with Gentoo 64 bit and i have this problem: with sox at 48000 hz rate the video output is unstable, if I use a 8000 hz rate the video becomes ok but the Audio/Video Delay is big. If I use cat /dev/dsp1 > /dev/dsp the Audio/Video Delay becomes very little. How can I syncronize Audio and Video? Other useful information about my system: Kde 3.4.1(with arts) Creative Audigy 2 soundcard (alsa loaded from kernel as module) Software: Mplayer, TvTime

P.S: Thank You Varogami, the Uhf Italy Channels now are ok with your help!


What kernel do you use? Everything below 2.6.15 is known to have a bug within the usb subsystem, if possible upgrade to 2.6.15 A workaround for older kernels would be to patch the usbaudio module but it's no clean solution.

Markus


I have 2.6.12 kernel version. I will Try!

Enrico


Now My Kernel is 2.6.14 (gentoo-r5). With cat /dev/dsp1 > /dev/dsp I have always the Audio Video Delay but with sox at 44100 rate The Audio/video Sinchronization IS PERFECT and the Video Output is OK! Problem Solved! Thank you very much Markus!

Enrico

Installation

Great, I can pull the whole CVS tree which includes the v4l_experimantal
sub-dir. I can see the cx88-ivtv.c file....

Where in the tree does it go ?
How do we wire it in so I can:
a) Test it and
b) work on it ?

Looking to help, haven't done kernel work in a few years (since 2.2 days)
but am willing :-)


Thanks....

get the v4l-dvb from the cvs repository on linuxtv.org, afterwards please ask a more accurate question here :)

Markus

Cinergy 250 Audio

Hi, I have a Cinergy 250 USB, image is OK! but I can't make te sound work, I'm going mad. I have tried everything in the wike (article and the disscussion) but nothing has happend. If I run with:

mplayer -tv device=/dev/video0:amode=1:input=0:norm=PAL:driver=v4l2:outfmt=yuy2:forceaudio:adevice=hw.1 tv://

(and many other versions)

Image OK and when I use sox nothing at all.


My /proc/asound/cards

0 [SI7012 ]: ICH - SiS SI7012

                    SiS SI7012 with ALC655 at 0xe000, irq 169

1 [USB ]: USB-Audio - Cinergy 250 USB

                    TerraTec Electronic GmbH Cinergy 250 USB at usb-0000:00:03.3-6, high speed

root@xxxxx:/home/gedeon# amixer -c 1 Simple mixer control 'PCM',0

 Capabilities: cvolume cswitch cswitch-joined
 Capture channels: Mono
 Limits: Capture 0 - 16
 Mono: Capture 8 [50%] [on]

root@xxxxx:/home/gedeon# amixer -c 1 contents numid=1,iface=MIXER,name='PCM Capture Switch'

 ; type=BOOLEAN,access=rw---,values=1
 : values=on

numid=2,iface=MIXER,name='PCM Capture Volume'

 ; type=INTEGER,access=rw---,values=1,min=0,max=16,step=0
 : values=8

Sox starts working when y run: sox -t ossdsp -r 48000 -b -c 2 /dev/dsp1 -t ossdsp /dev/dsp

(dsp1 is the cinergy one) but no sound. And when I just "cat /dev/dsp1" while mplayer is runnig It keeps white.

Any help?

Thank you very mutch and sorry about my english (I am spanish)


Hi,

please provide some more information, what distribution/kernel (cat /proc/version # output) do you use? hope you also had a look at http://www.linuxtv.org/v4lwiki/index.php/Em2820#USB_Audio try "hd /dev/dsp1" does it only show up 0x80 or 0x7f? could it be that the device uses /dev/dsp2 or higher? (some cards set up multiple devicefiles)

Markus


Hi again,

hd /dev/dsp1 00000000 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 |................|

My kernel is 2.6.15-1, my distribution debian sid. It seems that there are only two working dspX, 0 and 1. 0 is then one of te sound card (echo "7896896" > /dev/dsp0 makes noise).

When I start mplayer somewhere It says "No audio" and when I try to change volume it doesn work.

Thanks for your help


I have the same device at home I'll try what you did, haven't used that device for a too long time

Markus


Thanks, a lot.

I have change this line

dev->mute = 1; /* maybe not the right place... */

with

dev->mute = 0; /* maybe not the right place... */

in the source and now I can hear it perfectly all the time (even when mplayer is not runnig) but only through the jack -audio out- in the usb device. This is a beginnig for me (Now I can see TV :D) and I supous I could record audio through the microphone, but I dont give up the fight with the usb-audio.

Thanks again ...


someone here tried:

v4lctl setattr mute 0

Markus


ok regarding audio I figured something out, could you please provide the vendor/productid of your device? I had the same issue with my Hauppauge HVR 900, the amux was wrong in the cards setup



lsusb shows me: Bus 001 Device 004: ID 0ccd:0036 TerraTec Electronic GmbH

Is this what you ask me? I hope so.

Thanks once more.


I just tested this device with the latest Hg repository, and it really works. Please upgrade your drivers if you experience any problems with it. If it still occures please write another response. Please note that you have to use either line in or usb digital audio using sox (or an appropriate mplayer call)

Markus

Gnomemeeting

I have tried to use my Cinergy 250 with gnomemeeting but It always says: "Your driver doesn't seem to support any of the colour formats supported"

Any ideas?

Thank you!


Me again!

I have been looking gnomemeeting code (and pwlib) and it seems that is supported every palette in the world except YUYV, and that is the one em28xx uses. Is it posible to change this or the hardware can not use other palette? Could be posible to make "a palette emulation" by software in the kernel module? Other option is to change the code of gnomemeeting adding conversion functions from yuyv to yuv420p (the one that uses internally), I will do that when I finnish my exams if i dont find a more simple option.

Thanks and sorry about my english, I feel I am going worst. :(


No chance the kernel should stay clean, why don't you contact gnomemeeting developers?


I got it!

It is not the best solution, but it is one solution. Using vloopback module and a little program it works ok, except the color . There is something wrong in the YUYV_to_RGB24 function and the image is more blue than it sould be :D, but works! If you any of you is interested in the code please mail me gedeondt (a) gmail.com and I will send it you. It is GPL, based in a GPL source I found, so you could publish it if you want. And if any of you could help with the convert function, It would be great!

Bye

em28xx and Leadtek WinFast USB II

Hi,

I have tested

modprove em28xx card=2-9

The card=7 detect my card (leadtek), but nothing happen.

tvtime show no signal When i try to use card=2, then this command show me windows with noise and I can tune down and up. But after few seconds I got:

Selected channel: SE14 (freq: 252.250) Selected channel: SE13 (freq: 245.250) v4l2: ioctl dequeue buffer failed: No such device, idx = 0 v4l2: ioctl query buffer failed: No such device, idx = 0


mplayer -zoom -tv driver=v4l2:fps=25:norm=pal:outfmt=i420 tv:// -vo x11 Selected channel: SR1 (freq: 111.250) Selected channel: R12 (freq: 223.250) v4l2: ioctl dequeue buffer failed: No such device, idx = 0 v4l2: ioctl query buffer failed: No such device, idx = 0


MPlayer interrupted by signal 2 in module: video_read_frame
v4l2: ioctl streamoff failed: No such device
v4l2: 623 frames successfully processed, 7 frames dropped.

dmesg show

em28xx #0: Found Terratec Cinergy 250 USB
em28xx #0: v4l2 ioctl: device not present
em28xx #0: v4l2 ioctl: device not present
em28xx #0: V4L2 device /dev/video0 deregistered
usb 1-1: USB disconnect, address 43
em28xx #0: disconnecting em28xx video
em28xx #0: V4L2 device /dev/video1 deregistered

second problem is with sound, i have no sound device. What can I do ? Have anybody working Leadtek WinFast USB II ?

Linux paumer 2.6.14-1.1656_FC4 #1 Thu Jan 5 22:13:22 EST 2006 i686 i686 i386 GNU/Linux


what does modprobe em28xx i2c_scan=1 show up?

could you please provide a highres photo of the Leadtek WinFast USB II PCB board?

Markus


Hello, I also have Leadtek WinFast USB II and the problem is the same.

dmesg show:

usb 1-1: new high speed USB device using ehci_hcd and address 3
usb 1-1: configuration #1 chosen from 1 choice
Linux video capture interface: v1.00
em28xx v4l2 driver version 0.0.1 loaded
em28xx new video device (eb1a:2800): interface 0, class 255
em28xx: Alternate settings: 4
em28xx: Alternate setting 0, max size= 0
em28xx: Alternate setting 1, max size= 644
em28xx: Alternate setting 2, max size= 1288
em28xx: Alternate setting 3, max size= 2580
i2c_adapter i2c-2: SMBus Quick command not supported, can't probe for chips
i2c_adapter i2c-3: SMBus Quick command not supported, can't probe for chips
i2c_adapter i2c-4: SMBus Quick command not supported, can't probe for chips
i2c_adapter i2c-5: SMBus Quick command not supported, can't probe for chips
em28xx #0: AC97 command still being executed: not handled properly!
em28xx #0: AC97 command still being executed: not handled properly!
tuner 6-0061: chip found @ 0xc2 (em28xx #0)
tuner 6-0061: type set to 37 (LG PAL (newer TAPC series))
tda9887 6-0043: chip found @ 0x86 (em28xx #0)
em28xx #0: V4L2 device registered as /dev/video0
em28xx #0: Found Leadtek Winfast USB II
usbcore: registered new driver em28xx

Result of modprobe em28xx i2c_scan=1 is:

Linux video capture interface: v1.00
em28xx v4l2 driver version 0.0.1 loaded
em28xx new video device (eb1a:2800): interface 0, class 255
em28xx: Alternate settings: 4
em28xx: Alternate setting 0, max size= 0
em28xx: Alternate setting 1, max size= 644
em28xx: Alternate setting 2, max size= 1288
em28xx: Alternate setting 3, max size= 2580
tuner 6-0061: chip found @ 0xc2 (em28xx #0)
tuner 6-0061: type set to 37 (LG PAL (newer TAPC series))
tda9887 6-0043: chip found @ 0x86 (em28xx #0)
em28xx #0: found i2c device @ 0x30 [???]
em28xx #0: found i2c device @ 0x3e [???]
em28xx #0: found i2c device @ 0x4a [saa7113h]
em28xx #0: found i2c device @ 0x86 [tda9887]
em28xx #0: found i2c device @ 0xb0 [???]
em28xx #0: found i2c device @ 0xc2 [tuner (analog)]
em28xx #0: AC97 command still being executed: not handled properly!
em28xx #0: AC97 command still being executed: not handled properly!
em28xx #0: V4L2 device registered as /dev/video0
em28xx #0: Found Leadtek Winfast USB II
usbcore: registered new driver em28xx

And there is no other devices in /proc/asound/cards besides my soundcard:

0 [Audigy2        ]: Audigy2 - Audigy 2 Value [SB0400]
                      Audigy 2 Value [SB0400] (rev.0, serial:0x10011102) at 0xb000, irq 19

Dusko


please mail me an output of usbview (mrechberger@gmail.com) I'm not sure if your device contains an usbaudio chip. Beside that you could try to sniff what windows does and replay the setup:

http://linuxtv.org/v4lwiki/index.php/USBVideo

usbreplay requires libusb-dev and libncurses-dev lines that have a '00 08 00' sequence in it might be interesting.

Markus

Hi I have problem with Leadtek WinFast TV USB2 Deluxe. When a call dmesg | grep em28xx after modprobe em28xx I can see only this

Linux video capture interface: v1.00 em28xx v4l2 driver version 0.0.1 loaded usbcore: registered new driver em28xx

Andrej

Colour and PCTV 50e

Hello.

Thank you for your effort in bringing some good linux TV to us.

I have managed to get the PCTV 50e up and running to some degree.

Problems:

Only black and white (and a bit blurry (have checked this agains cable tv)) Sound is not stable (I have to start sox every 2-5 mins).

My system.

2.6.14 kernel Newly build and installed v4l modules

Modules: alias char-major-81 videodev alias char-major-81-0 tveeprom alias char-major-81-1 em28xx options em28xx tuner=38 options tuner pal=d options tda9887 port2=0

For best result I use Tvtime.

All help is welcome.

Halfdan


try

modprobe em28xx card=[1..n]

send us your lsusb output and the card nr that fits best.

Markus


Thank you for your answer.

I have now tried em28xx card=1-12 (tried until 16 just for test)

Card=1, null
Card 2, OK - Black/White
Card 3, OK - B/W
Card 4, No signal
Card 5, Frames to short
Card 6 - 8, Null (tvtime hangs)
Card 9 and 12 No "television" choice. 
Card 10-11, No Signal

Some of the cards showed tv from the composite choice but still B/W.

Card is correctly identified with card=3 and with modprobe em28xx.

It works best with card=3.

lsusb:

Bus 004 Device 008: ID 2304:0208 Pinnacle Systems, Inc. [hex]
Bus 004 Device 006: ID 413c:9001 Dell Computer Corp.
Bus 004 Device 005: ID 0d49:7010 Maxtor
Bus 004 Device 004: ID 0409:0058 NEC Corp. HighSpeed Hub
Bus 004 Device 003: ID 413c:0058 Dell Computer Corp.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 413c:8000 Dell Computer Corp.
Bus 001 Device 001: ID 0000:0000


cat /var/log/syslog

Feb 24 10:40:19 solberg kernel: usbcore: registered new driver em28xx
Feb 24 10:42:58 solberg kernel: usb 4-4: new high speed USB device using ehci_hcd and address 8
Feb 24 10:42:58 solberg kernel: em28xx new video device (2304:0208): interface 0, class 255
Feb 24 10:42:58 solberg kernel: em28xx #0: Alternate settings: 8
Feb 24 10:42:58 solberg kernel: em28xx #0: Alternate setting 0, max size= 0
Feb 24 10:42:58 solberg kernel: em28xx #0: Alternate setting 1, max size= 1024
Feb 24 10:42:58 solberg kernel: em28xx #0: Alternate setting 2, max size= 1448
Feb 24 10:42:58 solberg kernel: em28xx #0: Alternate setting 3, max size= 2048
Feb 24 10:42:58 solberg kernel: em28xx #0: Alternate setting 4, max size= 2304
Feb 24 10:42:58 solberg kernel: em28xx #0: Alternate setting 5, max size= 2580
Feb 24 10:42:58 solberg kernel: em28xx #0: Alternate setting 6, max size= 2892
Feb 24 10:42:58 solberg kernel: em28xx #0: Alternate setting 7, max size= 3072
Feb 24 10:42:59 solberg kernel: tuner 0-0063: chip found @ 0xc6 (em28xx #0)
Feb 24 10:42:59 solberg kernel: tuner 0-0063: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
Feb 24 10:42:59 solberg kernel: tda9887 0-0043: chip found @ 0x86 (em28xx #0)
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom 00: 1a eb 67 95 04 23 08 02 10 00 1e 03 98 1e 6a 2e
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom 10: 00 00 06 57 6e 00 00 00 8e 00 00 00 07 00 00 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom 20: 16 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom 30: 00 00 20 40 20 80 02 20 10 01 00 00 00 00 00 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 2e 03 50 00 69 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom 70: 6e 00 6e 00 61 00 63 00 6c 00 65 00 20 00 53 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom 80: 79 00 73 00 74 00 65 00 6d 00 73 00 20 00 47 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom 90: 6d 00 62 00 48 00 00 00 1e 03 50 00 43 00 54 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom a0: 56 00 20 00 55 00 53 00 42 00 32 00 20 00 50 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom b0: 41 00 4c 00 00 00 06 03 31 00 00 00 00 00 00 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 24 10:42:59 solberg kernel: em28xx #0: i2c eeprom f0: 00 00 00 00 00 00 00 00 0c 22 17 56 03 48 d9 4b
Feb 24 10:42:59 solberg kernel: EEPROM ID= 0x9567eb1a
Feb 24 10:42:59 solberg kernel: Vendor/Product ID= 2304:0208
Feb 24 10:42:59 solberg kernel: AC97 audio (5 sample rates)
Feb 24 10:42:59 solberg kernel: 500mA max power
Feb 24 10:42:59 solberg kernel: Table at 0x06, strings=0x1e98, 0x2e6a, 0x0000
Feb 24 10:42:59 solberg kernel: registered VBI
Feb 24 10:42:59 solberg kernel: em28xx #0: V4L2 device registered as /dev/video0 and /dev/vbi0
Feb 24 10:42:59 solberg kernel: em28xx #0: Found Pinnacle PCTV USB 2


The strange thing is that everything is B/W. If I had seen some indication of colours in some of the other cards I would have been a happy puppy (box works, I have checked this with xp).

I hope that the errors are glowing in the dark for you when looking at the syslog :-)

Halfdan



Do anybody have an idea what could be wrong?

Halfdan


http://www.linuxtv.org/v4lwiki/index.php/USBVideo

please follow that instruction, afterwards I'll have a look at the videodecoder settings in your logs..

Markus



Thank you Markus.

Where shall I send/upload the logs (I have used the pearl script so that the parsed part is not so big 67k). During sniffing the log halted around 180 mb. All the sniffing is done in XP.

Halfdan


send it to me my email: mrechberger@gmail.com

Markus


Cinergy 250 USB remote

If your remote doesn't work you should try loading the ir-kbd-i2c module and then look in the /proc/bus/input/devices file to see if that did the trick. While the em28xx driver gets autoloaded when i connect the device, the ir driver doesn't.

Video acquisition using a Terratec cinergy 200 USB

I have a Terratec Cinergy 200 USB [eb1a:2800] on Ubuntu Dapper Drake kernel 2.6.15-19-amd64-k8 I load em28xx with "options em28xx card=6" and /dev/video1 is created (I have a webcam on video0) I would like to acquire video signal from a vcr via the s-video connector. Is it possible?


did you try mplayer tv:// -tv driver=v4l2:input=[0..n]:outfmt=yuy2 where input 0 should be television, 1 composite, 2 svideo mencoder takes similar arguments. Not sure if that works since I don't have such a device..

Markus


Sound problem with UHF Channel

Hi

First, many thanks for your great work, that I can watch tv in linux:)

I have a pinnacle pc tv usb2 tv card, and I use Fedora Core 5 with the kernel 2.6.16.

After I found out that I have to use sox, my tv works now.

But I still have problems(otherwise, I wouldn't write here).

In all my channels with the band UHF, I only can hear a constant noise(I think it is called white noise). I tried mplayer and tvtime. Finetuning only changes the picture, but the sound doesn't change.

What can I try to make these channels work?


Jerry



I found the solution in the question 1.14: I only had to add the following lines to /etc/modules.d/tv :

alias char-major-81 videodev
alias char-major-81-0 tveeprom
alias char-major-81-1 em28xx
options em28xx tuner=56
options tuner secam=d pal=d
options tda9887 port2=0

I should have read this befor I asked my question, sorry.


Jerry


did you try usbaudio_setup.sh it's a small comfortable script for setting up audio correctly.

Markus


This scipt works fine for using sox, but I can't set there the tuner to 56!!

VDR + Pinnacle PCTV USB2

Is there a way to run VDR 1.4 with the pinnacle pctv usb2 device? I learned that vdr was originally created for dvb cards but there seems to be some support for analog ones too...(but I haven't found the em 2820 device among them). greets.jan


Maybe this one helps:

I haven't tried it by myself, I just stubmled over these links maybe they'll help you.

Markus


analogTV plugin for VDR:

http://www.ko0l.de/download/vdr/index.html

Markus

audio problem with Gadmei UTV310 and misleading vendor/prod. ID

Hello;

I own an external TV-tuner Gadmei UTV310, which should be supported with em28xx kernel module. I run Suse 10.0 , updated the kernel to 2.6.16 (from suse 10.1 installation repository). I noticed that the vendor/product ID of my tv-box is 0xeb1a, 0x2820. The file em28xx-cards mentions this vendor/product ID to belong to MSI_VOX_USB_2. loading the driver hangs xawtv or whatever player I use. I changed my kernel source and changed the corresponding line in em28xx-cards and made this vendor/product ID point to TERRATEC_CINERGY_250. this solved the problem of hang and I could watch the picture and tune channels. The problem no is that I can not get audio. My tv-box has audio through an analog cable (plugged into line-in) and does not have audio through usb. I can only hear silence. The info in wiki regarding snd-usb-audio does not apply to my case. I even tried to modprobe snd-usb-audio with no success (no additional cards appear in /proc/asound ). I tried every possible setting with alsamixer without success.

N.B: using my older 2.6.13 kernel and v4l-experimental from cvs (before merge into kernel) dmesg after modprobe em28xx gave me : "No audio on board" message.

How can I proceed further

Sayed


(Uniface wrote:)

To open my sound for Gadmei utv310 (em2820 based, audio is seperated from usb line), I add a line into em2820_v4l2_open: em2820_write_regs_req(dev, 0x00, 0x08, "\xfd", 1); and close it in em2820_v4l2_close: em2820_write_regs_req(dev, 0x00, 0x08, "\xfe", 1). wish it will help you for your gadmei utv310 TV BOX. Now I am trying to make the IR remote control works. Ir address is 0xc6 in it.


hi! if you need some help let me know, be careful when playing around with GPIO writes em2820_v4l2_open isn't the right place for such things...

for the remote have a look at ir-kbd-i2c.c

       static const int probe_em28XX[] = { 0x30, 0x47, -1 }

add your i2c address to it shifted by 1 to the right, afterwards em28xx-input.c (em28xx_set_ir) it would be nice if you could autodetect your device.

p.s if you read this please move everything to em2820 or em2820:Talk please

Markus


(Uniface wrote:)

very thanks for your advise. I have no em2820 datasheet, and so the command is came from its windows' driver sniffer. its works fine in my machine. BTW, where is the i4-kbd-i2c.c, I can not find it in my linux kernel-2.6.15 source code tree, now I have checked all the key code for my remote control panel. at your opinion, where should I open my sound in the driver, or I should let it to the client, i.e. when client open the device and wanna sound, then open...? thanks again!


this isn't documented in the datasheet, neither is the remote described there. the file is called ir-kbd-i2c.c not i4-kbd-i2c.c you should have it somewhere. A keymap for your device might already defined in ir-keymaps.c, if not just add it (don't forget to add the remote definition to ir-common.h too) Would be nice if you could prepare a patch I'd review and add it to my experimental repository then. Some core functionality will change in future since I'm about to add VBI/teletext


(Uniface wrote:)

I will try to patch it for my strange device.



I've uploaded a patch against Markus' tree that enables autodetecting of the gadmei utv 310. It also automatically enables analog audio.

[em28xx_gadmei_utv_310.patch]

I've also emailed this to Markus so hopefully it will get included.

Wade

Getting remote to work

Today I tried to get my remote for Pinnacle PCTV USB2 working but without succes. (SuSE 10.1) I did "modprobe ir-kbd-i2c" and got in dmesg:


ir_kbd_i2c: module not supported by Novell, setting U taint flag.

input: i2c IR (EM28XX Pinnacle PCTV) as /class/input/input4

ir-kbd-i2c: i2c IR (EM28XX Pinnacle PCTV) detected at i2c-0/0-0047/ir0 [em28xx #0]

i2c IR (EM28XX Pinnacle PCTV): unknown key: key=0x00 raw=0x00 down=1

i2c IR (EM28XX Pinnacle PCTV): unknown key: key=0x00 raw=0x00 down=0


irrecord -H dev/input -d /dev/input/event4 /tmp/my-remote returns


irrecord: gap not found, can't continue

irrecord: closing '/dev/input/event4'


pushing any buttons doesn't produce new entrances in dmesg. and cat /dev/input/event4 and pushing buttons does show nothing.

my /proc/bus/input/devices


I: Bus=0018 Vendor=0000 Product=0000 Version=0000

N: Name="i2c IR (EM28XX Pinnacle PCTV)"

P: Phys=i2c-0/0-0047/ir0

S: Sysfs=/class/input/input4

H: Handlers=kbd event4

B: EV=100003

B: KEY=c0014 102040 0 0 0 4 8000 180 80000801 9e1680 0 40 2800ffc


Do you have an idea what it could be?

greets.jan

UPDATE: ok, the remote is now recognized, but only by applying the right angle between receiver and remote (that's sometimes really difficult!). Additionally, it seems, that when I push a button of the remote it produces an endless (repeating) signal. In "Irrecord" that means, that the next button I want to insert in the lircd.conf is allways occupied by the last one (with its endless signal). Would it be possible to publish your lircd.conf (if you still using pinnacle pctv USB2). thanks for all.



Hi, I have gotten the remote to work since I am not really a driver programmer this was more of a hack but this is how I did it. 1. downloaded the v4l-dvb-merge repository. 2. Modified the following files:

  - ir-keymaps.c with the following for my remote( Somehow not all the buttons are supported)
IR_KEYTAB_TYPE ir_codes_pinnacle_color[IR_KEYTAB_SIZE] = {

        [ 0x21 ] = KEY_MUTE,
        [ 0x12 ] = KEY_POWER,

        [ 0x18 ] = KEY_TEXT,
        [ 0x26 ] = KEY_TV,
        [ 0x3d ] = KEY_PRINT,

        [ 0x10 ] = KEY_RED,
        [ 0x0c ] = KEY_GREEN,
        [ 0x19 ] = KEY_YELLOW,
        [ 0x08 ] = KEY_BLUE,

        [ 0x2d ] = KEY_VOLUMEUP,
        [ 0x1e ] = KEY_VOLUMEDOWN,

        [ 0x11 ] = KEY_MENU,

        /* Since it has the same keycode        [ 0x1e ] = KEY_CHANNELUP, */
        [ 0x1f ] = KEY_CHANNELDOWN,

        [ 0x28 ] = KEY_UP,
        [ 0x29 ] = KEY_DOWN,
        [ 0x2a ] = KEY_LEFT,
        [ 0x2b ] = KEY_RIGHT,
        [ 0x0d ] = KEY_SELECT,



        /*      [ 0x08 ] = KEY_BACK,*/
        [ 0x07 ] = KEY_REFRESH,

        /*[ 0x37 ] = KEY_ZOOM,*/
        /*      [ 0x29 ] = KEY_RECORD,*/

        [ 0x13 ] = KEY_PAUSE,
        [ 0x15 ] = KEY_REWIND,
        [ 0x2e ] = KEY_PLAY,
        [ 0x16 ] = KEY_FORWARD,
        [ 0x1b ] = KEY_PREVIOUS,
        [ 0x14 ] = KEY_STOP,
        [ 0x1c ] = KEY_NEXT,

        [ 0x31 ] = KEY_0,
        [ 0x32 ] = KEY_1,
        [ 0x33 ] = KEY_2,
        [ 0x34 ] = KEY_3,
        [ 0x35 ] = KEY_4,
        [ 0x36 ] = KEY_5,
        [ 0x37 ] = KEY_6,
        [ 0x38 ] = KEY_7,
        [ 0x39 ] = KEY_8,
        [ 0x3a ] = KEY_9,

        [ 0x3c ] = KEY_CHANNEL,
        [ 0x0a ] = KEY_BACKSPACE,
};

- Modifed em28xx-input.c. I had to remove the error checking because it always reported errors when I pressed a key even tough there were no errors. Also the key is reported in byte 4 and the key is actually changed after the state goes back to "stable":

        unsigned char buf[4];

        /* poll IR chip */

        i2c_master_recv(&ir->c,buf,4);


        dprintk("pinnacle key %02x\n", buf[3]&0x3f);
        static unsigned char b1=0;

        if((b1==1) &&  (buf[0]==0x80))
                {
                        b1 =0;
                        *ir_key = buf[3]&0x3f;
                        *ir_raw = buf[3]&0x3f;
                }
        else
                {
                        if(buf[0]==0x10)
                                {
                                        b1 = 1;
                                }
                        return 0;
                }
        return 1;

Strange Sound Story on Suse 10.0

Hi all,

although cat /proc/asound/cards rendered

0 [SI7012 ]: ICH - SiS SI7012

                    SiS SI7012 with CMI9738 at 0xdc00, irq 10

1 [PALSECAM ]: USB-Audio - PCTV USB2 PAL/SECAM

                    Pinnacle Systems GmbH PCTV USB2 PAL/SECAM at usb-0000:00:13.2-3, high speed

the

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

command was not working, since there was no /dev/dsp1. I was wondering and wondering how to solve this. I assumed, it might be because of the kernel 2.6.13 (and not 2.6.16). But before upgrading I uninstalled the non-gpl-kernel-modules from my Suse 10.0 following a kernel upgrade howto for Suse 10.0 found by google. And the surprise: Problem solved! After rebooting /dev/dsp1 was not missing any longer. I obviously don't need to upgrade the kernel for my aim.

Perhaps this information might help others.

Cheers and thank you so much for all infos on this page.

Bogart


sounds like a devfs problem. 2.6.13 is depreciated anyway. 2.6.15+ is recommended since the usb subsystem causes problems in older versions, with 2.6.15 devfs got replaced with udev and might cause the same problem

Markus

Terratec Grabster AV250

Hi,

I have a Grabster AV250 (0ccd:003c) and I'm trying to get it to work with linux, unsuccesfully so far :(
It uses an SAA7113H chip, which should be supported by the driver, but the output of dmesg is

i2c-core: driver [tveeprom] registered
em28xx v4l2 driver version 0.0.1 loaded
usbcore: registered new driver em28xx

and nothing else.

Trying to modprobe saa711x module results in

i2c-core: driver [saa711x] registered
saa711x.c: starting probe for adapter SMBus I801 adapter at 0500 (0x0)
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x25
i801_smbus 0000:00:1f.3: Transaction (pre): CNT=00, CMD=05, ADD=4a, DAT0=02, DAT1=00
i801_smbus 0000:00:1f.3: Error: no response!
i801_smbus 0000:00:1f.3: Transaction (post): CNT=00, CMD=05, ADD=4a, DAT0=02, DAT1=00
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x21
i801_smbus 0000:00:1f.3: Transaction (pre): CNT=00, CMD=05, ADD=42, DAT0=02, DAT1=00
i801_smbus 0000:00:1f.3: Error: no response!
i801_smbus 0000:00:1f.3: Transaction (post): CNT=00, CMD=05, ADD=42, DAT0=02, DAT1=00
saa711x.c: starting probe for adapter NVIDIA I2C Device (0x0)
i2c_adapter i2c-1: SMBus Quick command not supported, can't probe for chips
saa711x.c: starting probe for adapter NVIDIA I2C Device (0x0)
i2c_adapter i2c-2: SMBus Quick command not supported, can't probe for chips
saa711x.c: starting probe for adapter NVIDIA I2C Device (0x0)
i2c_adapter i2c-3: SMBus Quick command not supported, can't probe for chips

Do I have any chance to get some video from this device?

Thanks for your help,
Piero

Is PAL-M supported?

Hello!

I finnaly got my Pinnacle PCTV USB2 to work home with cable TV (broadcast antenna still not working), but now I can't get colored images, just b/w.

Setting the color system to PAL-M on mplayer, kdetv, tvtime, etc.. do nothing. Image still stay b/w just like when I choose NTSC.

Could it be some modules parameters that I should pass or PAL-M is not supported?

Thank you very much!

Renato



Any news about supporting PAL-M ?? Are there anything that I could do to help??

Thanks.

Renato


Wrong Wiki - moved to 2880.

problem with gadmei utv310 not syncronised

i have a laptop(fujitsu siemens amilo m7405)and a tv card gadmei utv310. when i capture a program from tv card after 1 hour the sound not syncronised with the picture. But when i capture from nero 7 the capturing is good if i capture 2 hours and more Why?is hardware,software problem or anything alse?

pctv usb2 only one/fifth of the screen

UPDATE: i have maganed to get a fullsize image but only at 144x115 resolution thus the onli command that works for me is:

mplayer -tv driver=v4l2:device=/dev/video0:input=0:freq=495.25:norm=PAL:amode=0:width=144:height=115 tv://

hi all, this is my first wiki so forgive me if i make any mistakes... i installed em28xx driver and it is three days i try to make it work on my pctv usb2: the problem is always the same, only the top part of the screen (maybe one/fifth) is filled with the image (actually i only get white noise or some ghost images, but this is a tuning problem i guess...)

the rest of the image is green (on mplayer). This always happens irrespective of the resolution i choose in mplayer (or even if i interlaco or not as explained earlier in this wiki)

i opened my device, this is what i have:

-empia em2820

-emp202

-saa7113H

-tuner is LG TAPE-S701D

this tuner is not explicitly listed in CARDLIST.tuner but my device gets recognized as LG PAL (newer TAPC)

i tryied with lots of combinations of card=xx and tuner=xx module parameters and also experimented with alt=xx parameter, but nothing helps!

i have been using mplayer, xawtv, tvtime

i am in italy.

can someone out there give some advice please? i was so happy to make the tuner work with my linuxbox...

here follows my 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= 512

em28xx #0: Alternate setting 2, max size= 640

em28xx #0: Alternate setting 3, max size= 768

em28xx #0: Alternate setting 4, max size= 832

em28xx #0: Alternate setting 5, max size= 896

em28xx #0: Alternate setting 6, max size= 960

em28xx #0: Alternate setting 7, max size= 1020

saa7115 3-0025: saa7113 found (1f7113d0e100000) @ 0x4a (em28xx #0)

input: i2c IR (EM28XX Pinnacle PCTV) as /class/input/input4

ir-kbd-i2c: i2c IR (EM28XX Pinnacle PCTV) detected at i2c-3/3-0047/ir0 [em28xx #0]

i2c IR (EM28XX Pinnacle PCTV): unknown key: key=0x00 raw=0x00 down=1

tuner 3-0043: chip found @ 0x86 (em28xx #0)

tda9887 3-0043: tda988[5/6/7] found @ 0x43 (tuner)

tuner 3-0063: chip found @ 0xc6 (em28xx #0)

tuner 3-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 2a 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 2a 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 2f 00 53 00 45 00 43 00 41 00 4d 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 0c 22 17 56 02 aa 42 b6

EEPROM ID= 0x9567eb1a

Vendor/Product ID= 2304:0208

AC97 audio (5 sample rates)

500mA max power

Table at 0x06, strings=0x2a98, 0x2e6a, 0x0000

registered VBI

em28xx #0: V4L2 device registered as /dev/video0 and /dev/vbi0

em28xx #0: Found Pinnacle PCTV USB 2

em28xx audio device (2304:0208): interface 1, class 1

em28xx audio device (2304:0208): interface 2, class 1

usbcore: registered new driver em28xx


hi,


looks ok since your host only seems to support USB 1.1 beside that have a look at the Em2880 Documentation

pinnacle pctv usb2, sound problem

Hello

I wrote already in the section 1.24.

Now I have the same problem: In almost all my channels, my sound is very bad, I only hear a lot of noise. If I finetune the channel, the sound improves, but it doesn't become good. 1year ago I had almost the same problem, and I solved it by setting the tuner=56. Everything worked fine till I upgraded to the kernel2.6.18. Now the sound is also bad with the option "tuner=56".

Does anybody can help me?

I use Fedora Core 6.

Jerry


Now it works with tuner=38 and with tuner=63

Why did this change?


I can't load the module with "modprobe em28xx". I receive the message:

FATAL: Error inserting em28xx (/lib/modules/2.6.18-1.2849.fc6/kernel/drivers/media/video/em28xx/em28xx.ko): Unknown symbol in module, or unknown parameter (see dmesg)

I receive this message also when I start my laptop with the tv-card connected. in dmesg I only receive the message:

em28xx: Unknown parameter `index'

But I can load the module with:"insmod /lib/modules/2.6.18-1.2849.fc6/kernel/drivers/media/video/em28xx/em28xx.ko tuner=38" Does anybody knows how I can load the module with modprobe? I want that the module is loaded automaticaly when I start linux.


what does /etc/modules.conf show up? Please post the content somewhere and remove

option em28xx index=something


Markus


In fedora the file is called modprobe.conf. The content was:

alias eth0 e1000
remove em28xx { /usr/sbin/alsactl store 1 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove em28xx
options snd cards_limit=8 
alias snd-card-0 snd-intel8x0
options snd-intel8x0 index=0 
options snd-intel8x0m index=1 
alias snd-card-2 snd-usb-audio
options snd-usb-audio index=2 
alias net-pf-10 off
alias ipv6 off
alias ath0 ath_pci
options ath_pci autocreate=sta 
alias wifi0 ath_pci
alias snd-card-1 em28xx
options snd-card-1 index=1 
options em28xx index=1 

I removed now "options em28xx index=1" and I added "options em28xx tuner=38" and now everything works fine :)

Thank you very much for your help.

MSI USB Vox video modes

I downloaded the latest drivers, and am using kernel 2.6.18 (I think it was) and the TV tuner portion works, I can watch TV but when I change to Composite I get these black and white lines. Also, the audio line stays on the tuner but it should switch to Composite. When I switch to SVideo, I assume it is normal but I cannot test it since I don't have any outputs for Svideo. Are these inputs working at all in the drivers? Thanks


Hi,

can you send me a screenshot mrechberger at gmail dot com, please use the latest em2880 driver Em2880 Driver

thanks, Markus


Screenshot sent. This is the only thing thats keeping me from running Linux too so hopefully we find a resolution.


do you have an instant messenger, so that we can work it out together?

Markus

Sound synchronization

I have a PCTV USB 2 witch is working fine in tvtime for video but not audio.

To get video working, i used

modprobe card=3 tuner=38

(i'm in France)

However, the sound doesn't work with 'sox' or 'cat' : the "good" sound is not received on the same channel than video.

For instance, i receive video on channel 7 but sound on 8, or video on 25 and sound on 27... Everything is not synchronized!

Maybe there is a module option (for snd_usb_audio???) which could solve this issue....

Vincent



send an email regarding that issue to mrechberger at gmail dot com

Markus

Terratec Prodigy USB Hybrid

Am I the only one using this stick?

Analog seems to work fine, but it claims to not recognize the DVB-T part.

It seems to load all the modules, but it never creates the /dev/dvb devices.

i find this line:

[17180735.076000] em2880-dvb.c: unsupported device

in dmesg particularly disturbing...

Any ideas?

in Germany, PAL-BG

Stick is a Terratec Prodigy Hybrid T XS ( [2] )

DMESG:

[17179971.180000] usb 2-4: new high speed USB device using ehci_hcd and address 5
[17179971.316000] usb 2-4: configuration #1 chosen from 1 choice
[17179971.632000] em28xx v4l2 driver version 0.0.1 loaded
[17179971.636000] em28xx new video device (0ccd:0047): interface 0, class 255
[17179971.636000] em28xx #0: Alternate settings: 8
[17179971.636000] em28xx #0: Alternate setting 0, max size= 0
[17179971.636000] em28xx #0: Alternate setting 1, max size= 0
[17179971.636000] em28xx #0: Alternate setting 2, max size= 1448
[17179971.636000] em28xx #0: Alternate setting 3, max size= 2048
[17179971.636000] em28xx #0: Alternate setting 4, max size= 2304
[17179971.636000] em28xx #0: Alternate setting 5, max size= 2580
[17179971.636000] em28xx #0: Alternate setting 6, max size= 2892
[17179971.636000] em28xx #0: Alternate setting 7, max size= 3072
[17179971.796000] i2c_adapter i2c-3: SMBus Quick command not supported, can't probe for chips
[17179971.796000] i2c_adapter i2c-4: SMBus Quick command not supported, can't probe for chips
[17179971.796000] i2c_adapter i2c-5: SMBus Quick command not supported, can't probe for chips
[17179972.464000] attach_inform: eeprom detected.
[17179972.472000] tuner 6-0061: chip found @ 0xc2 (em28xx #0)
[17179972.472000] attach inform: detected I2C address c2
[17179972.472000] Loading base firmware: xc3028_init0.i2c.fw
[17179972.516000] XC3028: NO GPIO CALLBACK FUNCTION PROVIDED - SWITCHING MODES WON'T WORK (GPIO FW ARG: 0)!
[17179984.732000] Loading default analogue TV settings: xc3028_BG_PAL_A2_A.i2c.fw
[17179985.148000] em28xx #0: i2c eeprom 00: 1a eb 67 95 cd 0c 47 00 50 12 5c 03 6a 2e 98 12
[17179985.148000] em28xx #0: i2c eeprom 10: 00 00 06 57 46 07 00 00 00 00 00 00 00 00 00 00
[17179985.148000] em28xx #0: i2c eeprom 20: 46 00 01 00 f0 10 31 00 b8 00 14 00 5b 00 00 00
[17179985.148000] em28xx #0: i2c eeprom 30: 00 00 20 40 20 6e 02 20 10 01 00 00 00 00 00 00
[17179985.148000] em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[17179985.148000] em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[17179985.148000] em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 2e 03 50 00 72 00
[17179985.148000] em28xx #0: i2c eeprom 70: 6f 00 64 00 69 00 67 00 79 00 20 00 48 00 79 00
[17179985.148000] em28xx #0: i2c eeprom 80: 62 00 72 00 69 00 64 00 20 00 54 00 56 00 20 00
[17179985.148000] em28xx #0: i2c eeprom 90: 55 00 53 00 42 00 00 00 12 03 50 00 72 00 6f 00
[17179985.148000] em28xx #0: i2c eeprom a0: 64 00 69 00 67 00 79 00 00 00 67 00 79 00 20 00
[17179985.148000] em28xx #0: i2c eeprom b0: 48 00 79 00 62 00 72 00 69 00 64 00 20 00 54 00
[17179985.148000] em28xx #0: i2c eeprom c0: 56 00 20 00 55 00 53 00 42 00 00 00 00 00 00 00
[17179985.148000] em28xx #0: i2c eeprom d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[17179985.148000] em28xx #0: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[17179985.148000] em28xx #0: i2c eeprom f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[17179985.148000] EEPROM ID= 0x9567eb1a
[17179985.148000] Vendor/Product ID= 0ccd:0047
[17179985.148000] AC97 audio (5 sample rates)
[17179985.148000] 500mA max power
[17179985.148000] Table at 0x06, strings=0x2e6a, 0x1298, 0x0000
[17179985.220000] em28xx-video.c: requesting em2880-dvb!
[17179985.220000] em28xx-video.c: registering notifier!
[17179985.556000] em28xx #0: V4L2 VBI device registered as /dev/vbi1
[17179985.568000] em28xx #0: V4L2 device registered as /dev/video1
[17179985.568000] em28xx #0: Found Terratec Prodigy XS
[17179985.580000] usbcore: registered new driver snd-usb-audio
[17179985.600000] usbcore: registered new driver em28xx
[17180734.856000] --- PENDING CALL RETURNS state: 1
[17180734.860000] --- PENDING CALL RETURNS state: 1
[17180734.864000] --- PENDING CALL RETURNS state: 1
[17180734.896000] --- PENDING CALL RETURNS state: 1
[17180734.912000] --- PENDING CALL RETURNS state: 1
[17180735.040000] --- PENDING CALL RETURNS state: 1
[17180735.040000] /home/sdavis/driver/v4l-dvb/v4l/mt2060-tuner.c: mt2060_module_init
[17180735.064000] em2880-dvb.c: DVB Init
[17180735.076000] em2880-dvb.c: unsupported device
[17180735.076000] em2880-dvb.c: failed initializing zl10353 DVB-T demodulator
[17180735.076000] em2880-dvb.c: retrying with mt352 DVB-T demodulator
[17180735.088000] FIXME: Write failed, backtrace:
[17180735.088000] ===============================
[17180735.088000] 7f 
[17180735.088000] ================================
[17180735.088000] mt352_read_register: readreg error (reg=127, ret==-19)
[17180735.088000] em2880-dvb.c: no luck with mt352 demodulator, not attaching em2880-dvb
[17180735.088000] em2880-dvb.c: DVB-T demodulator not reachable, did you try "modprobe em28xx device_mode=1" 

lsusb:

Bus 003 Device 002: ID 046d:c211 Logitech, Inc. iTouch Cordless Reciever
Bus 003 Device 003: ID 0bc7:0004 X10 Wireless Technology, Inc. X10 Receiver
Bus 003 Device 001: ID 0000:0000  
Bus 001 Device 001: ID 0000:0000  
Bus 002 Device 005: ID 0ccd:0047 TerraTec Electronic GmbH 
Bus 002 Device 003: ID 05e3:0760 Genesys Logic, Inc. Card Reader
Bus 002 Device 001: ID 0000:0000   

lsmod:

Module                  Size  Used by
mt2060_tuner            3584  0 
em2880_dvb             15108  0 
dvb_core               83240  1 em2880_dvb
mt352                   7556  1 em2880_dvb
zl10353                 6532  1 em2880_dvb
drx3975d                6404  1 em2880_dvb
snd_usb_audio          80416  0 
snd_usb_lib            18816  1 snd_usb_audio
tvp5150                19344  0 
xc3028_tuner            8068  0 
em28xx                 82112  1 em2880_dvb
v4l1_compat            14980  1 em28xx
binfmt_misc            13448  1 
ipv6                  272288  21 
nls_cp437               6912  1 
cifs                  218904  1 
powernow_k8            15008  0 
cpufreq_userspace       5408  0 
cpufreq_stats           7744  0 
freq_table              6048  2 powernow_k8,cpufreq_stats
cpufreq_powersave       2944  0 
cpufreq_ondemand        8876  1 
cpufreq_conservative     8712  0 
video                  17540  0 
tc1100_wmi              8324  0 
sbs                    16804  0 
sony_acpi               6412  0 
pcc_acpi               14080  0 
i2c_ec                  6272  1 sbs
hotkey                 11556  0 
dev_acpi               12292  0 
button                  7952  0 
battery                11652  0 
container               5632  0 
ac                      6788  0 
asus_acpi              17688  0 
af_packet              24584  2 
ndiswrapper           208656  0 
sbp2                   24584  0 
parport_pc             37796  0 
lp                     12964  0 
parport                39496  2 parport_pc,lp
bt878                  12344  0 
snd_emu10k1_synth       8960  0 
snd_emux_synth         39296  1 snd_emu10k1_synth
snd_seq_virmidi         8576  1 snd_emux_synth
snd_seq_midi_emul       8192  1 snd_emux_synth
snd_seq_dummy           4996  0 
snd_seq_oss            36480  0 
snd_seq_midi            9984  0 
snd_seq_midi_event      8960  3 snd_seq_virmidi,snd_seq_oss,snd_seq_midi
snd_seq                59120  9   snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_emu10k1           128288  2 snd_emu10k1_synth
tuner                  56620  2 mt2060_tuner,xc3028_tuner
snd_rawmidi            27264  4 snd_usb_lib,snd_seq_virmidi,snd_seq_midi,snd_emu10k1
snd_seq_device          9868  8  snd_emu10k1_synth,snd_emux_synth,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_emu10k1,snd_rawmidi
msp3400                32800  0 
bttv                  175796  1 bt878
video_buf              23940  1 bttv
ir_common              29956  2 em28xx,bttv
tsdev                   9152  0 
joydev                 11200  0 
nvidia               4554836  12 
snd_util_mem            6016  2 snd_emux_synth,snd_emu10k1
compat_ioctl32          2304  2 em28xx,bttv
i2c_algo_bit           10376  1 bttv
v4l2_common            17024  4 em28xx,tuner,msp3400,bttv
btcx_risc               6024  1 bttv
tveeprom               15888  2 em28xx,bttv
videodev               10496  2 em28xx,bttv
i2c_nforce2             8192  0 
lirc_atiusb            19104  1 
lirc_dev               16244  1 lirc_atiusb
sg                     37404  0 
emu10k1_gp              4992  0 
snd_hwdep              10756  3 snd_usb_audio,snd_emux_synth,snd_emu10k1
analog                 12960  0 
snd_intel8x0           34844  1 
snd_ac97_codec         97696  2 snd_emu10k1,snd_intel8x0
snd_ac97_bus            3456  1 snd_ac97_codec
evdev                  11392  1 
snd_pcm_oss            47360  0 
snd_mixer_oss          19584  1 snd_pcm_oss
floppy                 63044  0 
psmouse                41352  0 
serio_raw               8452  0 
gameport               17160  3 emu10k1_gp,analog
i2c_core               23424  15  mt2060_tuner,mt352,zl10353,drx3975d,tvp5150,xc3028_tuner,em28xx,i2c_ec,tuner,msp3400,bttv,nvidia,i2c_algo_bit,tveeprom,i2c_nforce2
shpchp                 42144  0 
pci_hotplug            32828  1 shpchp
snd_pcm                84612  5 snd_usb_audio,snd_emu10k1,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              25348  3 snd_seq,snd_emu10k1,snd_pcm
amd64_agp              13124  0 
agpgart                34888  2 nvidia,amd64_agp
pcspkr                  4352  0 
snd                    58372  19  snd_usb_audio,snd_emux_synth,snd_seq_virmidi,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi,snd_seq_device,snd_hwdep,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              11232  1 snd
snd_page_alloc         11400  3 snd_emu10k1,snd_intel8x0,snd_pcm
ext3                  142856  1 
jbd                    62228  1 ext3
usb_storage            75072  0 
usbhid                 45152  0 
libusual               17040  1 usb_storage
ohci1394               37040  0 
ieee1394              306104  2 sbp2,ohci1394
forcedeth              32268  0 
ehci_hcd               34696  0 
ohci_hcd               22532  0 
usbcore               134912  12  em2880_dvb,snd_usb_audio,snd_usb_lib,em28xx,ndiswrapper,lirc_atiusb,usb_storage,usbhid,libusual,ehci_hcd,ohci_hcd
ide_generic             2432  0 
ide_cd                 33696  0 
cdrom                  38944  1 ide_cd
generic                 6276  0 
sd_mod                 22656  3 
amd74xx                15260  0 [permanent]
sata_nv                11268  2 
libata                 74892  1 sata_nv
scsi_mod              144648  5 sbp2,sg,usb_storage,sd_mod,libata
thermal                15624  0 
processor              31560  2 powernow_k8,thermal
fan                     6020  0 
fbcon                  41504  0 
tileblit                3840  1 fbcon
font                    9344  1 fbcon
bitblit                 7168  1 fbcon
softcursor              3328  1 bitblit
vesafb                  9244  0 
capability              5896  0 
commoncap               8704  1 capability 

I'm using Ubuntu Edgy, with Kernel 2.6.17-11-generic

Thanks.


have a look at: http://mcentral.de/wiki/index.php/Em2880

MarkusRechberger 18:28, 11 March 2007 (CET)