Archived talk:Em2820

From LinuxTVWiki
Revision as of 04:24, 19 April 2006 by MarkusRechberger (talk | contribs) (→‎Sound problem with UHF Channel)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)

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

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

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

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