Re: [gentoo-user] Re: audio with TV crd [solved]

2006-07-27 Thread Nick Rout

On Wed, 26 Jul 2006 09:10:42 +0100
Uwe Thiem wrote:

 On 26 July 2006 00:54, Nick Rout wrote:
 
  There is a current scratchy noise problem with PVR-150 drivers.
 
  AFTER you have started playing/recording the stream execute
 
  ivtvctl -qX
 
  where X is the audio input you are using. This fixes it for me and a
  number of other mythtv users. Some have even set up a cron script to
  execute that command every 10 seconds.
 
 I'll try that, weird as it is. ;-)
 
   
  To get as close as possible to a DVD compatible stream use
 
  ivtvctl -c stream_type=X where X is the stream type you want from :
 
  /* Stream types */
  #define IVTV_STREAM_PS  0
  #define IVTV_STREAM_TS  1
  #define IVTV_STREAM_MPEG1   2
  #define IVTV_STREAM_PES_AV  3
  #define IVTV_STREAM_PES_V   5
  #define IVTV_STREAM_PES_A   7
  #define IVTV_STREAM_DVD 10
  #define IVTV_STREAM_VCD 11
  #define IVTV_STREAM_SVCD12
  #define IVTV_STREAM_DVD_S1  13
  #define IVTV_STREAM_DVD_S2  14
 
  I cannot for the life of me remember whether you want 10,13 or 14.
 
 Interesting. is there actually any comprehensive documentation about ivtv? I 
 only found scratches and pieces.
 
 Uwe

Only what comes with it I think. The doc directory in the source is
worth a look.

This is also worth a look: http://ivtvdriver.org/index.php/Main_Page

The driver has been in such a rapid state of development that any
documentation would quickly be out of date. It is considerably more
mature lately.

The mythtv mailing list archives are also a very good source of
knowledge. I would say that a very big percentage of people using these
cards under linux do so in a mythtv box. The archives are very good and
appear here:

http://www.gossamer-threads.com/lists/mythtv/users/

simply running 

ivtvctl | less gives you a good idea of what you can control.


-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd [solved]

2006-07-26 Thread Uwe Thiem
On 26 July 2006 00:54, Nick Rout wrote:

 There is a current scratchy noise problem with PVR-150 drivers.

 AFTER you have started playing/recording the stream execute

 ivtvctl -qX

 where X is the audio input you are using. This fixes it for me and a
 number of other mythtv users. Some have even set up a cron script to
 execute that command every 10 seconds.

I'll try that, weird as it is. ;-)

  
 To get as close as possible to a DVD compatible stream use

 ivtvctl -c stream_type=X where X is the stream type you want from :

 /* Stream types */
 #define IVTV_STREAM_PS  0
 #define IVTV_STREAM_TS  1
 #define IVTV_STREAM_MPEG1   2
 #define IVTV_STREAM_PES_AV  3
 #define IVTV_STREAM_PES_V   5
 #define IVTV_STREAM_PES_A   7
 #define IVTV_STREAM_DVD 10
 #define IVTV_STREAM_VCD 11
 #define IVTV_STREAM_SVCD12
 #define IVTV_STREAM_DVD_S1  13
 #define IVTV_STREAM_DVD_S2  14

 I cannot for the life of me remember whether you want 10,13 or 14.

Interesting. is there actually any comprehensive documentation about ivtv? I 
only found scratches and pieces.

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd [solved]

2006-07-25 Thread Uwe Thiem
On 25 July 2006 01:37, Nick Rout wrote:

Audio is now working with PVR-150. Thanks, Nick, for all your input.

Problem is, I don't know why and I hate it when magic is part of IT. ;-)

The whole difference between yesterday and today is that I tried to compile 
the new kernel 2.6.17-gentoo-r4 (as compared to r3). That compilation failed. 
Since I hadn't time to investigate, I just left it like that. Nothing 
installed, no reboot, noting. All of a sudden audio is coming out of that 
bugger at a decent volume. :-(

Audio quality is still poor, high noise level and it doesn't sound like 50Hz 
noise. So maybe, it's that VCR - have to check that by plugging the VCR 
directly into a TV.

Anyway, forward to the next step of creating a video DVD from that MPEG2 
stream!

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd [solved]

2006-07-25 Thread Nick Rout

On Tue, 25 Jul 2006 11:11:50 +0100
Uwe Thiem wrote:

 On 25 July 2006 01:37, Nick Rout wrote:
 
 Audio is now working with PVR-150. Thanks, Nick, for all your input.
 
 Problem is, I don't know why and I hate it when magic is part of IT. ;-)
 
 The whole difference between yesterday and today is that I tried to compile 
 the new kernel 2.6.17-gentoo-r4 (as compared to r3). That compilation failed. 
 Since I hadn't time to investigate, I just left it like that. Nothing 
 installed, no reboot, noting. All of a sudden audio is coming out of that 
 bugger at a decent volume. :-(
 
 Audio quality is still poor, high noise level and it doesn't sound like 50Hz 
 noise. So maybe, it's that VCR - have to check that by plugging the VCR 
 directly into a TV.
 
 Anyway, forward to the next step of creating a video DVD from that MPEG2 
 stream!
 
 Uwe

There is a current scratchy noise problem with PVR-150 drivers.

AFTER you have started playing/recording the stream execute 

ivtvctl -qX 

where X is the audio input you are using. This fixes it for me and a
number of other mythtv users. Some have even set up a cron script to
execute that command every 10 seconds.

To get as close as possible to a DVD compatible stream use 

ivtvctl -c stream_type=X where X is the stream type you want from :

/* Stream types */
#define IVTV_STREAM_PS  0
#define IVTV_STREAM_TS  1
#define IVTV_STREAM_MPEG1   2
#define IVTV_STREAM_PES_AV  3
#define IVTV_STREAM_PES_V   5
#define IVTV_STREAM_PES_A   7
#define IVTV_STREAM_DVD 10
#define IVTV_STREAM_VCD 11
#define IVTV_STREAM_SVCD12
#define IVTV_STREAM_DVD_S1  13
#define IVTV_STREAM_DVD_S2  14

I cannot for the life of me remember whether you want 10,13 or 14.



-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-24 Thread Uwe Thiem
On 24 July 2006 00:52, Nick Rout wrote:

 ivtv:   START INIT IVTV 
 ivtv:  version 0.4.4 (tagged release) loading
 ivtv:  Linux version: 2.6.15-chw-2 SMP preempt 586 gcc-3.3
 ivtv:  In case of problems please include the debug info between
 ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
 ivtv:  any module options, when mailing the ivtv-users mailinglist.
 ivtv0: Autodetected WinTV PVR 150 card (cx23416 based)
 ACPI: PCI Interrupt :00:14.0[A] - Link [LNKB] - GSI 10 (level, low)
 - IRQ 10 ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
 ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
 tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0)
 ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
 cx25840 0-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
 **cx25840 0-0044: loaded v4l-cx25840.fw firmware (14264 bytes)
 ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
 wm8775 0-001b: chip found @ 0x36 (ivtv i2c driver #0)
 ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
 tda9887 0-0043: chip found @ 0x86 (ivtv i2c driver #0)
 ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
 tveeprom 0-0050: The eeprom says no radio is present, but the tuner type
 tveeprom 0-0050: indicates otherwise. I will assume that radio is present.
 tveeprom 0-0050: Hauppauge model 26559, rev C260, serial# 2945285
 tveeprom 0-0050: tuner model is LG S001D MK3 (idx 60, type 38)
 tveeprom 0-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom
 0x74) tveeprom 0-0050: audio processor is CX25843 (idx 37)
 tveeprom 0-0050: decoder processor is CX25843 (idx 30)
 tveeprom 0-0050: has radio, has no IR remote
 *ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
 ivtv0: Encoder revision: 0x02050032
 ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
 ivtv0: Allocate DMA encoder YUV stream: 161 x 12960 buffers (2048KB total)
 ivtv0: Allocate DMA encoder VBI stream: 80 x 26208 buffers (2048KB total)
 ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB
 total) ivtv0: Create encoder radio stream
 tuner 0-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
 ivtv0: Initialized WinTV PVR 150, card #0
 ivtv:    END INIT IVTV  

Mine looks pretty much the same except that it detects the remote. Firmware 
gets loaded, all drivers get loaded, no errors.

Meanwhile I do have audio but very very faint if i raise everything to maximum 
(mixer, speaker amplifier, ivtvctl). 

I don't know. Maybe the hardware is fried.

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-24 Thread Nick Rout
On Mon, 24 Jul 2006 11:31:01 +0100
Uwe Thiem [EMAIL PROTECTED] wrote:

 On 24 July 2006 00:52, Nick Rout wrote:
 
  ivtv:   START INIT IVTV 
  ivtv:  version 0.4.4 (tagged release) loading
  ivtv:  Linux version: 2.6.15-chw-2 SMP preempt 586 gcc-3.3
  ivtv:  In case of problems please include the debug info between
  ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
  ivtv:  any module options, when mailing the ivtv-users mailinglist.
  ivtv0: Autodetected WinTV PVR 150 card (cx23416 based)
  ACPI: PCI Interrupt :00:14.0[A] - Link [LNKB] - GSI 10 (level, low)
  - IRQ 10 ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
  ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
  tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0)
  ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
  cx25840 0-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
  **cx25840 0-0044: loaded v4l-cx25840.fw firmware (14264 bytes)
  ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
  wm8775 0-001b: chip found @ 0x36 (ivtv i2c driver #0)
  ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
  tda9887 0-0043: chip found @ 0x86 (ivtv i2c driver #0)
  ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
  tveeprom 0-0050: The eeprom says no radio is present, but the tuner type
  tveeprom 0-0050: indicates otherwise. I will assume that radio is present.
  tveeprom 0-0050: Hauppauge model 26559, rev C260, serial# 2945285
  tveeprom 0-0050: tuner model is LG S001D MK3 (idx 60, type 38)
  tveeprom 0-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom
  0x74) tveeprom 0-0050: audio processor is CX25843 (idx 37)
  tveeprom 0-0050: decoder processor is CX25843 (idx 30)
  tveeprom 0-0050: has radio, has no IR remote
  *ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
  ivtv0: Encoder revision: 0x02050032
  ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
  ivtv0: Allocate DMA encoder YUV stream: 161 x 12960 buffers (2048KB total)
  ivtv0: Allocate DMA encoder VBI stream: 80 x 26208 buffers (2048KB total)
  ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB
  total) ivtv0: Create encoder radio stream
  tuner 0-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
  ivtv0: Initialized WinTV PVR 150, card #0
  ivtv:    END INIT IVTV  
 
 Mine looks pretty much the same except that it detects the remote. Firmware 
 gets loaded, all drivers get loaded, no errors.
 
 Meanwhile I do have audio but very very faint if i raise everything to 
 maximum 
 (mixer, speaker amplifier, ivtvctl). 
 
 I don't know. Maybe the hardware is fried.
 
 Uwe

The guy on the mythtv list thought his was OK too until someone else spotted 
the error - I'm not saying you cannot read a log file, but y'know it happens to 
the best of us :-(

As far as i recall you have been trying so far with composite/line in. Is it 
worth trying the tuner?

What sort of input does your line-in have? Mine is two RCA plugs, but I have 
heard of them having the 2.5mm stereo plugs too (like a headphone socket on a 
walkman). If so, make sure the plug is the right one.

Not sure where else to go from here, except back to the vendor.

 
 -- 
 Mark Twain: I rather decline two drinks than a German adjective.

I love that quote!

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-24 Thread Uwe Thiem
On 24 July 2006 12:30, Nick Rout wrote:

 The guy on the mythtv list thought his was OK too until someone else
 spotted the error - I'm not saying you cannot read a log file, but y'know
 it happens to the best of us :-(

Alright, here is my log:

ivtv:   START INIT IVTV 
ivtv:  version 0.7.0 (tagged release) loading
ivtv:  Linux version: 2.6.17-gentoo-r3 SMP preempt mod_unload PENTIUM4 
4KSTACKS gcc-3.4
ivtv:  In case of problems please include the debug info between
ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
ivtv:  any module options, when mailing the ivtv-users mailinglist.
intel8x0_measure_ac97_clock: measured 50865 usecs
intel8x0: clocking to 48000
ivtv0: Autodetected Hauppauge WinTV PVR-150 card (cx23416 based)
ACPI: PCI Interrupt :00:09.0[A] - GSI 17 (level, low) - IRQ 209
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
tveeprom 1-0050: The eeprom says no radio is present, but the tuner type
tveeprom 1-0050: indicates otherwise. I will assume that radio is present.
tveeprom 1-0050: Hauppauge model 26039, rev C1A5, serial# 8499471
tveeprom 1-0050: tuner model is TCL MPE05-2 (idx 105, type 38)
tveeprom 1-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) (eeprom 
0x74)
tveeprom 1-0050: audio processor is CX25842 (idx 36)
tveeprom 1-0050: decoder processor is CX25842 (idx 29)
tveeprom 1-0050: has radio, has IR remote
tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)
tda9887 1-0043: chip found @ 0x86 (ivtv i2c driver #0)
cx25840 1-0044: cx25842-23 found @ 0x88 (ivtv i2c driver #0)
cx25840 1-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0)
ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
ivtv0: Encoder revision: 0x02050032
ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv0: Allocate DMA encoder YUV stream: 161 x 12960 buffers (2048KB total)
ivtv0: Allocate DMA encoder VBI stream: 80 x 26208 buffers (2048KB total)
ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB 
total)
ivtv0: Create encoder radio stream
tuner 1-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
ivtv0: Initialized Hauppauge WinTV PVR-150, card #0
ivtv:    END INIT IVTV  


 As far as i recall you have been trying so far with composite/line in. Is
 it worth trying the tuner?

Well, I am not interested in watching TV. Even if the tuner works that doesn't 
necessarily mean that the hardware dealing with composite and Line IN is 
working properly.

I may give it a try later but I don't even have an arial because I never watch 
TV. ;-)


 What sort of input does your line-in have? Mine is two RCA plugs, but I
 have heard of them having the 2.5mm stereo plugs too (like a headphone
 socket on a walkman). If so, make sure the plug is the right one.

The latter one - and yes, I think the plug is right.


 Not sure where else to go from here, except back to the vendor.

My feeling meanwhile. :-(


  --
  Mark Twain: I rather decline two drinks than a German adjective.

 I love that quote!

When I read it, I almost instantaneously fell in love with it. ;-)

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-24 Thread Nick Rout

On Mon, 24 Jul 2006 13:43:05 +0100
Uwe Thiem wrote:

 On 24 July 2006 12:30, Nick Rout wrote:
 
  The guy on the mythtv list thought his was OK too until someone else
  spotted the error - I'm not saying you cannot read a log file, but y'know
  it happens to the best of us :-(
 
 Alright, here is my log:
 
 ivtv:   START INIT IVTV 
 ivtv:  version 0.7.0 (tagged release) loading
 ivtv:  Linux version: 2.6.17-gentoo-r3 SMP preempt mod_unload PENTIUM4 
Very recent ivtv, more so than mine. the website says it is only for 2.6.17, 
but you seem to fit the criteria.

Looking at the ivtv website did say this:
http://ivtvdriver.org/index.php/Troubleshooting

Use the recommended firmware

* In particular, if you are experiencing sound problems then first
make sure you are using the correct audio firmware. It is a known
problem with older versions that the audio standard is detected but
remains muted. It seems to be fixed with the latest firmware. 

How you tell whether the firmware you have is correct ? There are some 
checksums here:

http://ivtvdriver.org/index.php/Firmware#Firmware_Checksums

(Although I just checked mine, they do not match whats on the website,
but they work fine??)


[snip]
 
  As far as i recall you have been trying so far with composite/line in. Is
  it worth trying the tuner?
 
 Well, I am not interested in watching TV. Even if the tuner works that 
 doesn't 
 necessarily mean that the hardware dealing with composite and Line IN is 
 working properly.
 
 I may give it a try later but I don't even have an arial because I never 
 watch 
 TV. ;-)


It was only a suggestion to eliminate the possibilty of the cable or
plugs being faulty. 

   Mark Twain: I rather decline two drinks than a German adjective.
 
  I love that quote!
 
 When I read it, I almost instantaneously fell in love with it. ;-)
 
 Uwe
 

Of course most people these days don't even know what a declension is!


-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-23 Thread Nick Rout
On Sat, 22 Jul 2006 10:18:48 +0100
Uwe Thiem [EMAIL PROTECTED] wrote:

 On 22 July 2006 03:45, Nick Rout wrote:
 
  When using composite in the sound should be coming in the line in
 
  However your driver may need to be switched to the right device, use
  ivtvctl
 
  ivtvctl -A   - lists the audio inputs
  ivtvctl -Q   - tells which one it is switched to now
  ivtvctl -qn   - switches to input n
 
 Hm...
 [EMAIL PROTECTED] ~ $ ivtvctl -A
 ioctl: VIDIOC_ENUMAUDIO
 Input   : 0
 Name: Tuner 1
 
 Input   : 1
 Name: Line In 1
 
 Input   : 2
 Name: Line In 2
 
 There is only one Line IN socket. Anyway, I tried both with iivtvctl -qn. 
 Still no sound when doing mplayer /dev/video0, and mplayer tv:// gives me 
 that damn ioctl error (see my other mail).
 
 Uwe

well I just learned something new:

[EMAIL PROTECTED]:/var/log$ ivtvctl -Y
ioctl: VIDIOC_QUERYCTRL
Brightness = 383
Contrast = 63
Saturation = 63
Hue = 0
Volume = 58880
Mute = 0


So there are volume and mute controls that are configurable from ivtvctl, like 
this:

ivtvctl -y mute=1   (will mute the output - set -0 to unmute)
ivtvctl -y volume=integer.

The volume allegedly has a range of 0-65535

Check them out, the vol may be zeroed, or the mute set.




 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-23 Thread Uwe Thiem
On 23 July 2006 02:38, Nick Rout wrote:
 On Sat, 22 Jul 2006 10:18:48 +0100

 I find that tv:// doesn't work at all when using composite in, but
 /dev/video0 does.

So far, I have to agree.


 My device also has one physical line in (two plugs, red=right, white=left),
 but ivtvctl -A shows four line-ins! I find that all of -q1, -q2, -q3 work
 with the line-in. -q0 is the tuner and -q4 is static.

 [EMAIL PROTECTED]:~$ ivtvctl -A
 ioctl: VIDIOC_ENUMAUDIO
 Input   : 0
 Name: Tuner Audio In

 Input   : 1
 Name: Audio Line 1

 Input   : 2
 Name: Audio Line 2

 Input   : 3
 Name: Audio Line 3

 Input   : 4
 Name: Audio Line 4

 Are you really sure that there is an audio signal coming out the line thats
 plugged into the line-in? (Obvious I know!)

Yes. If I plug that line into Line IN of my soundcard I get audio. I actually 
tried to feed composite into the TV card and audio into my soundcard. 
Used mplayer /dev/video0 and it kind of worked. But it isn't a solution for 
two reasons:

1. 
Audio and video are far out of sync that way.

2.
My goal isn't to watch tapes but to burn old tapes to DVDs. For that, I need 
the MPEG2 stream coming out of /dev/video0 to be combined video and audio.

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-23 Thread Uwe Thiem
On 23 July 2006 09:58, Nick Rout wrote:

 well I just learned something new:

Yeah, the documentation is awful. One has to dig deep to find all the knobs.


 [EMAIL PROTECTED]:/var/log$ ivtvctl -Y
 ioctl: VIDIOC_QUERYCTRL
 Brightness = 383
 Contrast = 63
 Saturation = 63
 Hue = 0
 Volume = 58880
 Mute = 0

I found that option already.



 So there are volume and mute controls that are configurable from ivtvctl,
 like this:

 ivtvctl -y mute=1   (will mute the output - set -0 to unmute)
 ivtvctl -y volume=integer.

 The volume allegedly has a range of 0-65535

 Check them out, the vol may be zeroed, or the mute set.

[EMAIL PROTECTED] ~ $ ivtvctl -Y
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 60928
Balance = 32768
Bass = 32768
Treble = 32768
Mute = 0

It isn't muted, and the volume seems to be quite high. :-(

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-23 Thread Nick Rout

On Sun, 23 Jul 2006 12:19:46 +0100
Uwe Thiem wrote:

 On 23 July 2006 02:38, Nick Rout wrote:
  On Sat, 22 Jul 2006 10:18:48 +0100
 
  I find that tv:// doesn't work at all when using composite in, but
  /dev/video0 does.
 
 So far, I have to agree.
 
 
  My device also has one physical line in (two plugs, red=right, white=left),
  but ivtvctl -A shows four line-ins! I find that all of -q1, -q2, -q3 work
  with the line-in. -q0 is the tuner and -q4 is static.
 
  [EMAIL PROTECTED]:~$ ivtvctl -A
  ioctl: VIDIOC_ENUMAUDIO
  Input   : 0
  Name: Tuner Audio In
 
  Input   : 1
  Name: Audio Line 1
 
  Input   : 2
  Name: Audio Line 2
 
  Input   : 3
  Name: Audio Line 3
 
  Input   : 4
  Name: Audio Line 4
 
  Are you really sure that there is an audio signal coming out the line thats
  plugged into the line-in? (Obvious I know!)
 
 Yes. If I plug that line into Line IN of my soundcard I get audio. I actually 
 tried to feed composite into the TV card and audio into my soundcard. 
 Used mplayer /dev/video0 and it kind of worked. But it isn't a solution for 
 two reasons:
 
 1. 
 Audio and video are far out of sync that way.
 
 2.
 My goal isn't to watch tapes but to burn old tapes to DVDs. For that, I need 
 the MPEG2 stream coming out of /dev/video0 to be combined video and audio.
 
 Uwe

Yes, exactly. There is a delay for buffering or processing or something
inherent in the pvr card. There is no such delay through the sound card.

I suppose the card could be broken. Sometimes they are. Any chance of
taking it back to the shop and asking for another one?

Or *cough* trying it in windows?

I also wonder whether you should try either the mythtv-users list or the
ivtv-dev mailing lists. Probably the first thing they will ask for is
the log information from dmesg between these two lines:

ivtv:   START INIT IVTV 

necessary info

ivtv:    END INIT IVTV  

Just looking at this I see mine contains:

tveeprom 0-0050: audio processor is CX25843 (idx 37)
tveeprom 0-0050: decoder processor is CX25843 (idx 30)


Also I note via lsmod that I have a cx25840 module loaded. Presumably
that takes care of the sound. It may pay to look at your output - there
are many variations of chipsets on these cards, particularly between PAL
and NTSC models. 


 --  gentoo-user@gentoo.org mailing list

-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-22 Thread Uwe Thiem
On 22 July 2006 03:45, Nick Rout wrote:

 When using composite in the sound should be coming in the line in

 However your driver may need to be switched to the right device, use
 ivtvctl

 ivtvctl -A   - lists the audio inputs
 ivtvctl -Q   - tells which one it is switched to now
 ivtvctl -qn   - switches to input n

Hm...
[EMAIL PROTECTED] ~ $ ivtvctl -A
ioctl: VIDIOC_ENUMAUDIO
Input   : 0
Name: Tuner 1

Input   : 1
Name: Line In 1

Input   : 2
Name: Line In 2

There is only one Line IN socket. Anyway, I tried both with iivtvctl -qn. 
Still no sound when doing mplayer /dev/video0, and mplayer tv:// gives me 
that damn ioctl error (see my other mail).

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-22 Thread Uwe Thiem
On 22 July 2006 03:45, Nick Rout wrote:

 The PVR-150 muxes the audio and video into an mpeg stream.

 When using composite in the sound should be coming in the line in

 However your driver may need to be switched to the right device, use
 ivtvctl

 ivtvctl -A   - lists the audio inputs
 ivtvctl -Q   - tells which one it is switched to now
 ivtvctl -qn   - switches to input n

Uh-huh! I'll give it a try.

The other big question is, what to make of this error when using something 
like mplayer tv:// blablabla:

v4l2: current audio mode is : MONO
v4l2: ioctl request buffers failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.


The ioctl failure doesn't seem to be a permission problem.

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-21 Thread Uwe Thiem
On 21 July 2006 16:09, Marco Costa wrote:
 Hi,

 Actually, that is what I _have_ to do with my old TV card.
 It doesn't have a input for audio and no internal mixer, so I have to
 record the sound directly from the soundcard.

 I use menconder to do just that:


 mencoder tv:// -tv
 driver=v4l2:device=/dev/video0:input=3:width=640:height=480:alsa -oac
 mp3lame alsa -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=8800:vme=3 -o
 outfile.avi

I'll try something like that. What do you think of this error message:

Playing tv://.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski [EMAIL PROTECTED]
 comment: first try, more to come ;-)
Selected device: Hauppauge WinTV PVR-150
 Tuner cap: STEREO LANG1 LANG2
 Tuner rxs: MONO LANG2
 Capabilites:  video capture  VBI capture device  tuner  audio  read/write
 supported norms: 0 = PAL-BGH; 1 = PAL-DK; 2 = PAL-I; 3 = PAL-M; 4 = PAL-N; 5 
= PAL-Nc; 6 = SECAM-BGH; 7 = SECAM-DK; 8 = SECAM-L; 9 = SECAM-L'; 10 = 
NTSC-M; 11 = NTSC-J; 12 = NTSC-K;
 inputs: 0 = Tuner 1; 1 = S-Video 1; 2 = Composite 1; 3 = S-Video 2; 4 = 
Composite 2;
 Current input: 2
 Current format: unknown (0x4745504d)
v4l2: current audio mode is : MONO
v4l2: ioctl request buffers failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.

That ioctl failure doesn't seem to be a permission problem. The relevant 
devices all have group video rw permissions and I am member of video.


 The man page for mencoder is quite undertandable, if you want to customize
 the parameters.

Not really. I think that man page is a big mess. ;-) Though one can find one's 
way around in it with tons of time.

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: audio with TV crd

2006-07-21 Thread Nick Rout
On Fri, 21 Jul 2006 16:40:07 + (UTC)
James [EMAIL PROTECTED] wrote:

 Uwe Thiem uwix at iway.na writes:
 
   how would I be able to record video *and* audio from the TV card 
  into an MPEG2 file?
 
 Hello Uwe,
 
 In my experienes, you need to build a 'mixing studio' or at least 
 a very simple A/V mixing system. There are too many A/V tools to use.
 I'd first look at the MoBo book and see what onboard hardware you have
 plus 'lspci' -v and 'lshw'. Using the core mobo chips is usually the
 most straightforward. Also look at what sound cards you have.
 
 
 Then 'eix keyword' using mixer, audio, jack, alsa etc to 
 discover the various packages and try them out. Also use
 google to search for keywords + audio chips where
 audio chips are the actual chips you find on your hardware.
 
 'kmix' is a quick and simple mixer that often provides control
 over the various audio chips. You'll also have to rebuild your
 kernel many times to find the right combo of drivers to compile
 in and/or load as modules. Often the various audio chip drivers
 conflict at the kernel, udev or application level. There is
 no 'silver bullet' to build a mixer/mux for A/V, in my experience.
 It all depends on what you need. Moving over old movies, one
 of your greatest challenges will be keeping the audio and
 video synchronized over the duration of the recorded stream.
 
 
 hth,
 
 James

this is all completely irrelevant to the question.

The PVR-150 muxes the audio and video into an mpeg stream.

When using composite in the sound should be coming in the line in

However your driver may need to be switched to the right device, use ivtvctl

ivtvctl -A   - lists the audio inputs
ivtvctl -Q   - tells which one it is switched to now
ivtvctl -qn   - switches to input n



 
 
 
 -- 
 gentoo-user@gentoo.org mailing list
 
-- 
gentoo-user@gentoo.org mailing list