Pinnacle Hybrid TV Tuner PCTV 330e in Ubuntu 10.10 Maverick

Hi

The command

ls -a /dev | grep dsp*

simply returns me to the command prompt whether or not the card is plugged in.

sudo modprobe em28xx card=30

Whilst I’ve not been able to connect it to an audio source, it is still shown by vlc as being device (0), which I assume is wrong.

Can we pick this up again tomorrow… I need to re-familiarise myself with what we were doing, I’ve kinda forgot where we were :o

Yes of course, I’m really grateful for your help on this. Many thanks

Ooops sorry, nearly forgot about this thread, I should have marked it “unread”… anyway.

Did we ever try installing oss-compat ? … which if I’m understanding properly, should provide a dev/audio(n) device that hopefully could be used with the:

vlc v4l2:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/audio2" :v4l-norm=3 :v4l-frequency=-1 :v4l-caching=300 :v4l-chroma="" :v4l-fps=-1.000000 :v4l-samplerate=44100 :v4l-channel=0 :v4l-tuner=-1 :v4l-audio=-1 :v4l-stereo :v4l-width=640 :v4l-height=480 :v4l-brightness=-1 :v4l-colour=-1 :v4l-hue=-1 :v4l-contrast=-1 :no-v4l-mjpeg :v4l-decimation=1 :v4l-quality=100

command.

See here:
http://wiki.debian.org/SoundFAQ

Might also be worth trying a later kernel.

Hi

I think I did have oss-compat installed but tbh I can’t entirely remember.

A couple of developments: Firstly I have upgraded to kubuntu 11.10 beta 2, in the hope that it might be detected properly. Nope. It’s still shown as device (0) in vlc and is silent.

However, I have found another usb card

http://www.amazon.co.uk/1226-bus-powered-interface-compatible-operating/dp/B0048UJ24S/ref=pd_cp_ce_1

In contrast to the other one, there is very good sound input into vlc (at least from my mp3 player) so we seem to be making some progress there.

I’ll do a test in a couple of days and let you know how I get on. If this works I think it will make sense to stick with it as I fear otherwise we will simply be flogging a dead horse :slight_smile:

Thanks

ian

Yup, you’re probably right :wink:

Hi

I’ve got somewhere I think as I can now get audio but for some reason I can only get one or the other.

I asked a couple of questions at the VLC forum (given that’s the application I’m running) and I think the basic problem is that to get video I need to enable composite but when I work within the vlc GUI I knock it out again (and when I enable composite in the terminal I knock out the VLC audio device settings)

http://forum.videolan.org/viewtopic.php?f=13&t=94519&p=313949#p313949

Wonder if you have any thoughts on this, before I give up and get my daughter to do it on her vista laptop (ugh! but at least it should work :()

Thanks

Ian

Here’s a list of v4l2-ctl optiions (click the spoiler button, then see the options in bold)

[spoiler]Common options:
–all display all information available
-B, --get-fmt-sliced-vbi
query the sliced VBI capture format [VIDIOC_G_FMT]
-b, --set-fmt-sliced-vbi=
set the sliced VBI capture format to [VIDIOC_S_FMT]
is a comma separated list of:
off: turn off sliced VBI (cannot be combined with other modes)
teletext: teletext (PAL/SECAM)
cc: closed caption (NTSC)
wss: widescreen signal (PAL/SECAM)
vps: VPS (PAL/SECAM)
-C, --get-ctrl=[,…]
get the value of the controls [VIDIOC_G_EXT_CTRLS]
-c, --set-ctrl==[,=…]
set the controls to the values specified [VIDIOC_S_EXT_CTRLS]
-D, --info show driver info [VIDIOC_QUERYCAP]
-d, --device= use device instead of /dev/video0
if is a single digit, then /dev/video is used
-F, --get-freq query the frequency [VIDIOC_G_FREQUENCY]
-f, --set-freq=
set the frequency to MHz [VIDIOC_S_FREQUENCY]
-h, --help display this help message
-I, --get-input query the video input [VIDIOC_G_INPUT]
-i, --set-input=
set the video input to [VIDIOC_S_INPUT]
-l, --list-ctrls display all controls and their values [VIDIOC_QUERYCTRL]
-L, --list-ctrls-menus
display all controls, their values and the menus [VIDIOC_QUERYMENU]
-N, --list-outputs display video outputs [VIDIOC_ENUMOUTPUT]
-n, --list-inputs display video inputs [VIDIOC_ENUMINPUT]
-O, --get-output query the video output [VIDIOC_G_OUTPUT]
-o, --set-output=
set the video output to [VIDIOC_S_OUTPUT]
-S, --get-standard
query the video standard [VIDIOC_G_STD]
-s, --set-standard=
set the video standard to [VIDIOC_S_STD]
can be a numerical v4l2_std value, or it can be one of:
pal-X (X = B/G/H/N/Nc/I/D/K/M/60) or just ‘pal’ (V4L2_STD_PAL)
ntsc-X (X = M/J/K) or just ‘ntsc’ (V4L2_STD_NTSC)
secam-X (X = B/G/H/D/K/L/Lc) or just ‘secam’ (V4L2_STD_SECAM)
–list-standards display supported video standards [VIDIOC_ENUMSTD]
-T, --get-tuner query the tuner settings [VIDIOC_G_TUNER]
-t, --set-tuner=
set the audio mode of the tuner [VIDIOC_S_TUNER]
Possible values: mono, stereo, lang2, lang1, bilingual
–list-formats display supported video formats [VIDIOC_ENUM_FMT]
-V, --get-fmt-video
query the video capture format [VIDIOC_G_FMT]
-v, --set-fmt-video=width=,height=
set the video capture format [VIDIOC_S_FMT]
–verbose turn on verbose ioctl error reporting.

Uncommon options:
–get-fmt-video-out
query the video output format [VIDIOC_G_FMT]
–set-fmt-video-out=width=,height=
set the video output format [VIDIOC_S_FMT]
–get-fmt-overlay
query the video overlay format [VIDIOC_G_FMT]
–get-fmt-output-overlay
query the video output overlay format [VIDIOC_G_FMT]
–set-fmt-output-overlay=chromakey=,global_alpha=
set the video output overlay format [VIDIOC_S_FMT]
–get-sliced-vbi-cap
query the sliced VBI capture capabilities [VIDIOC_G_SLICED_VBI_CAP]
–get-sliced-vbi-out-cap
query the sliced VBI output capabilities [VIDIOC_G_SLICED_VBI_CAP]
–get-fmt-sliced-vbi-out
query the sliced VBI output format [VIDIOC_G_FMT]
–set-fmt-sliced-vbi-out=
set the sliced VBI output format to [VIDIOC_S_FMT]
is a comma separated list of:
off: turn off sliced VBI (cannot be combined with other modes)
teletext: teletext (PAL/SECAM)
cc: closed caption (NTSC)
wss: widescreen signal (PAL/SECAM)
vps: VPS (PAL/SECAM)
–get-fmt-vbi query the VBI capture format [VIDIOC_G_FMT]
–get-fmt-vbi-out query the VBI output format [VIDIOC_G_FMT]
–overlay= turn overlay on (1) or off (0) (VIDIOC_OVERLAY)
–get-fbuf query the overlay framebuffer data [VIDIOC_G_FBUF]
–set-fbuf=chromakey=<0/1>,global_alpha=<0/1>,local_alpha=<0/1>,local_inv_alpha=<0/1>
set the overlay framebuffer [VIDIOC_S_FBUF]
–get-cropcap query the crop capabilities [VIDIOC_CROPCAP]
–get-crop query the video capture crop window [VIDIOC_G_CROP]
–set-crop=top=,left=,width=,height=
set the video capture crop window [VIDIOC_S_CROP]
–get-cropcap-output
query the crop capabilities for video output [VIDIOC_CROPCAP]
–get-crop-output query the video output crop window [VIDIOC_G_CROP]
–set-crop-output=top=,left=,width=,height=
set the video output crop window [VIDIOC_S_CROP]
–get-cropcap-overlay
query the crop capabilities for video overlay [VIDIOC_CROPCAP]
–get-crop-overlay query the video overlay crop window [VIDIOC_G_CROP]
–set-crop-overlay=top=,left=,width=,height=
set the video overlay crop window [VIDIOC_S_CROP]
–get-cropcap-output-overlay
query the crop capabilities for video output overlays [VIDIOC_CROPCAP]
–get-crop-output-overlay
query the video output overlay crop window [VIDIOC_G_CROP]
–set-crop-output-overlay=top=,left=,width=,height=
set the video output overlay crop window [VIDIOC_S_CROP]
–get-audio-input
query the audio input [VIDIOC_G_AUDIO]
–set-audio-input=
set the audio input to [VIDIOC_S_AUDIO]
–get-audio-output
query the audio output [VIDIOC_G_AUDOUT]
–set-audio-output=
set the audio output to [VIDIOC_S_AUDOUT]
–list-audio-outputs
display audio outputs [VIDIOC_ENUMAUDOUT]
–list-audio-inputs
display audio inputs [VIDIOC_ENUMAUDIO]

Expert options:
–streamoff turn the stream off [VIDIOC_STREAMOFF]
–streamon turn the stream on [VIDIOC_STREAMOFF]
–log-status log the board status in the kernel log [VIDIOC_LOG_STATUS][/spoiler]

I’m guessing the command you’ve been using to set video as composite -

v4l2-ctl -d /dev/video0 -i 1

is starting the card without audio because no “audio input” option is being specified.

So maybe you need to:-

v4l2-ctl --list-audio-inputs
or
v4l2-ctl --get-audio-input

To get an idea of the audio input, then start the card with something like:-

v4l2-ctl -d /dev/video0 -i 1 --set-audio-input=

Where is the number of the audio input.


Source of v4l2-ctl options:

Success!!! ;D ;D ;D ;D ;D ;D ;D ;D ;D I have connected the RCA outputs from the DVD player and I now get working video and sound within VLC. A quick summary.

  1. Recognise that Empia 2861 audio won’t work in linux and that you need either your computers sound card or (as I have done) a usb plug-in thingy and a 2RCA into a 3.5mm jack cable.

  2. Plug the hardware into the computer and connect them up (video to card and audio to the usb plugin obviously ;))

  3. Start vlc and load the device manager

  4. Select the video and audio sections - right click on your chosen devices and select information. In the bottom of the resulting pane you will see the verbose version of your device names.

  5. Select file/open capture device . In the video section you’ll probably need to type ///dev/video0. i.e you will drop “v4l2:” from the “full” device name. In audio it will likely be either plughw:1,0 or plughw:2,0 (depending on the order in which the system has registered both of the audio devices (remember the video card also gets registered as an audio device - but simply won’t work). Interestingly with that device name you drop “alsa://” so it’s a bit different to the video.

  6. Now the magic - hit the advance options button. In video mode select 1 for composite (S video is either 0 or 2 I think). That is vlcs way of implementing the command I was previously using. Click okay to close that dialog, start your output device and then select play.

  7. Hey presto, it works! Video and audio. I found that they were out of sync. I was able to adjust this, however, in tools/preferences and then selecting the “all options” box. That then gave some of the more advanced audio functions, including de-synchronisation which I set to -3. In the dvd sample I played voices were now in synch with the movement of the mouth.

So far so good. I now need to figure out the function within VLC to enable me to save that footage as a file so I can then test it - not least the synchronisation. However, I would consider that to be a trivial matter considering how far we’ve come.

So with hindsight it’s a darned sight easier than it looked 4 months ago, where we struggled to breathe any life into it at all. However, to quote Tarrant “it’s only easy if you know the answer”!

I tip my cap to you (well I would if I wore one), they certainly haven’t made that as straightforward as they could … but as you say, “easy when you know how” … well done, and thanks for the writeup.

Many thanks to you too, because if you hadn’t been prepared to stick with this for so long, I would have given up yonks ago :slight_smile:

Sometimes it seems we get there despite the best efforts of the manufacturers. When I’ve recorded some video I’ll do a proper how to - your efforts will of course be given acknowledgement.

Thanks a lot

Ian

Hey, you did the work and found the answer, not me … but I’ll accept that maybe our combined tenacity played a role :wink: