Archived talk:Em2820: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
Line 348: Line 348:
Have you some ideas.
Have you some ideas.
Many thanks
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

== Tune UHF channels ==
== Tune UHF channels ==



Revision as of 13:11, 14 December 2005

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

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

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!!

Cabn'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

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

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.