tv card: bad quality in TVTime
Hi
I have a Pinnacle pctv usb2 tv card. I have installed the v4l2 driver with the em2820 module from (linuxtv.org). I have to use sox(sox -t ossdsp -r 48000 -b -c 2 /dev/dsp2 -t ossdsp /dev/dsp) to make the sound work. Now the card works, but the quality of most senders is very bad. I use tvtime. In windows the quality is good. In some senders, the sound is so bad that I can't understand anything.(even if I use finetune), but the pictures are ok. With other senders I can receive a good sound quality with finetune, but with this adjustement, the pictures are bad and when I adjust that the pictures are good, the sound is bad. So I can choose between a good sound or good pictures, but both together doesn't work. Some rare senders work perfectly. |
Please describe these "senders". If they are media players, you can try using MPlayer or Xine. Really USB has high latency for multimedia transfer, so I suggest using Firewire.
Try using a DV camcorder that has analog to digital pass-thru if you want high quality. If you can use a PCI card, I suggest any card based on Philips SAA713x chip. Conexant based video captures cards decodes poor video quality or grainy video. |
I have the same problem as you, huepfendes_schaf.
This pinnacle tv-card annoyes me so much, it took me such a long time to make it work and the quality is awful. I would be glad if somebody could help. |
Quote:
<station name="dsf" active="1" position="95" band="UHF" channel="U24" finetune="-3"/> A sender where the adjustement of best audio and best video aren't together is e.g. RTL: <station name="RTL" active="1" position="6" band="VHF E2-E12" channel="E6" finetune="16" norm="PAL" audio="bg"/> I live in Switzerland. Quote:
mplayer -tv driver=v4l2:amode=0:input=0:norm=PAL:outfmt=yuy2:forceaudio:immediatemode=0 tv:// In xine I didn't succeed to make the tv work. Perhaps somebody can give me some advice, because I didn't find a good howto an google. Quote:
|
Try the following command. I added a video filter so mplayer will not convert back to yv12 and lose video quality and you can get some acceleration from the video card. The command may work with audio sync lagging behind the vidoe or may not work. Play around with command. You do need xawtv and its utilities.
v4lctl setattr mute 0 ; mplayer -tv driver=v4l2:amode=0:input=0:norm=PAL:outfmt=yuy2:forceaudio:immediatemode=0 -audiofile /dev/dsp2 -audio-cache 8192 -channels 1 -rawaudio on:channels=1:rate=48000 -vf scale=-1,-1:yuy2 -ao oss:dsp-device=/dev/dsp -vo xv tv:// && v4lctl setattr mute 1 Another way is to use mencoder and pipe it to mplayer. There will be some video lag time if you compare what is recieved by a regular TV. The TV viewing programs in Linux was written for a PCI card that has a loop cable going towards a sound card. This is the reason why I suggest a PCI video capture in the first place. You want to stick with a USB video capture device. That is fine, but you are on your own. If you know how to program, you can make a TV viewing program that works with these types of devices. |
Quote:
I live in the US where we use NTSC and there are no audio stations that is carry along the TV channels. The audio is carried on a FM signal at a fixed frequency. The TV channels are very accurate sending at a certain RF, so fine tunning is not needed. You can try using MythTV if mplayer does not work. |
With the command: "v4lctl setattr mute 0" and with sox I receive sound in mplayer.
But I receive some errors with your mplayer command. The option "-audiofile /dev/dsp2" provides: Quote:
Quote:
Quote:
Quote:
Quote:
"mplayer -tv driver=v4l2:amode=0:input=0:norm=PAL:outfmt=yuy2:forceaudio:immediatemode=0 -channels 1 -rawaudio channels=1:rate=48000 -vf scale=-1 -ao oss:dsp-device=/dev/dsp tv://" I receive the pictures with the sound. But I don't yet see the advantages of this complicated command, compared to the command: "mplayer -tv driver=v4l2:amode=0:input=0:norm=PAL:outfmt=yuy2:forceaudio:immediatemode=0 tv://" I think that the first command has more channels, but I didn't have yet the time to compare the quality. But I saw already that the quality of some channels is still bad, but I think that other channels are better. Sorry for my english. Now I know that the channels are not senders :-) |
the channels, where I didn't understand anything in tvtime, are as bad in mplayer.
in mplayer I receive often the message: Quote:
Quote:
|
I did say you have to play around the settings. Did you ever check man mplayer.
The following command does two things. One it previews the video in a window and it plays the audio stream with out the need for sox. I changed it and add a few things like using larger cache to compensate for high latency that USB has. mplayer -tv driver=v4l2:amode=0:input=0:norm=PAL:outfmt=yuy2:forceaudio:immediatemode=0 -channels 1 -rawaudio channels=1:rate=48000 -vf scale=-1:-1,yuy2 -audiofile-cache 8192 -cache 32768 -cache-min 25 -ao oss:dsp-device=/dev/dsp tv:// You do need a lot of memory to do the command above. I think it may be better to change outfmt to some RGB color space. I suggest doing mplayer -tv outfmt=help to get a list of supported colorspace for your video capture device. I still recommend that you get a PCI video capture card so you do not have any future problems. |
I have only a laptop,so I can't buy a pci card.
I read the man of player but I am quite a newbie in linux, so I don't understand everything and there is not written everything. For example you said to use -ao dsp-device=/dev/dsp. In the man is nothing written of this suboption: Quote:
Quote:
Thanks for your help electro |
Quote:
I did not include -ao dsp-device=/dev/dsp. I included -ao oss:dsp-device=/dev/dsp. Not all distributions set /dev/dsp to /dev/dsp0 by a symbolic link. Also if you get device busy for /dev/dsp0. You will have to close the program(s) that is using it and then run it again. Laptop sound can only handle one PCM (audio) at a time. To ge around this issue is to use artsd or alsa dmix library. If you have a desktop computer and it has an open PCI slot, use a MPEG-1/MPEG-2 PVR or bt878 based video capture card. Then use Video Lan Client to broadcast the video to your notebook computer. I suggest a PVR card because you can setup a web server and write a perl script to change the TV channels or switch to other inputs. Have you looked in using PCMCIA. Sorry about the simile in the mplayer syntax. Below is with out the simile enabled. mplayer -tv driver=v4l2:amode=0:input=0:norm=PAL:outfmt=yuy2:forceaudio:immediatemode=0 -channels 1 -rawaudio channels=1:rate=48000 -vf scale=-1:-1,yuy2 -audiofile-cache 8192 -cache 32768 -cache-min 25 -ao oss:dsp-device=/dev/dsp tv:// |
huepfendes_schaf -- slightly off-topic but did you try the composite video input on this card? I am looking for a way to get composite video on my laptop so I am wondering if that part of this card works well. I posted a question about it here:
http://www.linuxquestions.org/questi...d.php?t=395117 |
Quote:
"[AO OSS] audio_setup: Can't open audio device dsp-device=/dev/dsp: No such file or directory Could not open/initialize audio device -> no sound. Audio: no sound" It was clear to me, that I only can run one programm which uses oss. This is not the Problem Many thanks Electro To gradedcheese: The composite audio works with tvtime and sox perfectly. I couldn't test the video yet, but this week-end, when I go home from school, I will test it. then I tell you if it works. But I am pretty sure that it works. |
I succeeded now to make the sound work without sox. I only have to use the option "alsa:adevice=hw.2" (because it's the /dev/dsp2)
Quote:
|
You might want to use freq for each channel. You can not change channels if you use this setting. To get around this issue, you can try making a perl or python script that closes and opens up mplayer for every channel. The hard part is finding the channel's frequency.
|
All times are GMT -5. The time now is 12:26 AM. |