Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ivtv: users

ivtv, kernel 2.6.27, secam TV, Hauppauge PVR-350 : no sound on non stereo channels

 

 

ivtv users RSS feed   Index | Next | Previous | View Threaded


pascal at schirrms

Oct 12, 2008, 1:25 PM

Post #1 of 9 (2659 views)
Permalink
ivtv, kernel 2.6.27, secam TV, Hauppauge PVR-350 : no sound on non stereo channels

Hi,

I'm a very new member of this list, and I stat here to complains (how
bad !)

I use hauppauge cards since a few year, under linux and with ivtv. (a
PVR 350 and a PVR 150). each card is in a different system running freevo.

Yesterday, I updated one of the system to Mandriva 2009 (Thas is, a
kernel 2.6.27, and ivtv 1.3.0). Just before, my two systems were running
with a 2.6.24 kernel.

I live in France, and receive analog program trough a Cable Operator.
The 23 analog channel are in secam.

After the update, I noticed that most channel didn't have any sound.
Searching further, I discovered that channels I can hear are sendind the
audio signal in stereo (SECAM stereo is NICAM, a numeric soundtrack
encoded in some unseen video lines in the picture, because original
SECAM sound modulation was AM, and not updatable to stereo). Other
channel were muted.

I finaly found that this behavior can be changed :

By default, freevo set the tuner in 'generic secam' : v4l2-ctl -S tell me :

$ v4l2-ctl -S
Video Standard = 0x00ff0000
SECAM-B/D/G/H/K/K1/L/Lc

French flavour of SECAM is SECAM L. If I set the tuner for SECAM-L :

$ v4l2-ctl -s secam-L
Standard set to 00400000
$ v4l2-ctl -S
Video Standard = 0x00400000
SECAM-L

Then I have again sound.

Here the question : should I consider that new way like a bahaviour ? Or is that a 'bug' ?

In the later case, I should be able to do any needed tests, if useful.

Thanks,
Pascal




_______________________________________________
ivtv-users mailing list
ivtv-users [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-users


sander.sweers at gmail

Oct 13, 2008, 12:02 AM

Post #2 of 9 (2576 views)
Permalink
Re: ivtv, kernel 2.6.27, secam TV, Hauppauge PVR-350 : no sound on non stereo channels [In reply to]

On Sun, Oct 12, 2008 at 22:25, pascal <pascal [at] schirrms> wrote:
> I use hauppauge cards since a few year, under linux and with ivtv. (a
> PVR 350 and a PVR 150). each card is in a different system running freevo.

It would be interesting to not start freevo and do:
cat /dev/videX > test.mpg

And see if this does give you sound.

> After the update, I noticed that most channel didn't have any sound.
> Searching further, I discovered that channels I can hear are sendind the
> audio signal in stereo (SECAM stereo is NICAM, a numeric soundtrack
> encoded in some unseen video lines in the picture, because original
> SECAM sound modulation was AM, and not updatable to stereo). Other
> channel were muted.
>
> I finaly found that this behavior can be changed :
>
> By default, freevo set the tuner in 'generic secam' : v4l2-ctl -S tell me :
>
> $ v4l2-ctl -S
> Video Standard = 0x00ff0000
> SECAM-B/D/G/H/K/K1/L/Lc
>
> French flavour of SECAM is SECAM L. If I set the tuner for SECAM-L :
>
> $ v4l2-ctl -s secam-L
> Standard set to 00400000
> $ v4l2-ctl -S
> Video Standard = 0x00400000
> SECAM-L
>
> Then I have again sound.
>
> Here the question : should I consider that new way like a bahaviour ? Or is that a 'bug' ?

Probably not a bug. Before you run freevo run v4l2-ctl --log-status.
Could you post this? It is always good to include the complete ivtv
init start to end (don't grep for only ivtv) from the kernel log.

Greets
Sander

_______________________________________________
ivtv-users mailing list
ivtv-users [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-users


ps1 at schirrms

Oct 13, 2008, 11:03 AM

Post #3 of 9 (2583 views)
Permalink
ivtv, kernel 2.6.27, secam TV, Hauppauge PVR-350 : no sound on non stereo channels [In reply to]

Attachments: message-rfc822.eml (1.83 KB)


sander.sweers at gmail

Oct 13, 2008, 11:19 AM

Post #4 of 9 (2568 views)
Permalink
Re: ivtv, kernel 2.6.27, secam TV, Hauppauge PVR-350 : no sound on non stereo channels [In reply to]

On Mon, Oct 13, 2008 at 20:03, ps1 <ps1 [at] schirrms> wrote:
> I'm a very new member of this list, and I stat here to complains (how bad !)

And now I complain as I already replied to your e-mail [1].

Greets
Sander

[1] http://www.gossamer-threads.com/lists/ivtv/users/39120#39120

_______________________________________________
ivtv-users mailing list
ivtv-users [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-users


ps1 at schirrms

Oct 13, 2008, 12:47 PM

Post #5 of 9 (2558 views)
Permalink
Re: ivtv, kernel 2.6.27, secam TV, Hauppauge PVR-350 : no sound on non stereo channels [In reply to]

Sander Sweers a écrit :
> On Sun, Oct 12, 2008 at 22:25, pascal <pascal [at] schirrms> wrote:
>
>> I use hauppauge cards since a few year, under linux and with ivtv. (a
>> PVR 350 and a PVR 150). each card is in a different system running freevo.
>>
>
> It would be interesting to not start freevo and do:
> cat /dev/videX > test.mpg
>
> And see if this does give you sound.
>
To begin, thanks for your answer !

Reading your mail, I just stopped (power off) and started again my test
server.
After that, to be able to test something, I did the following :
v4l2-ctl -s secam (default value to PAL)
v4l2-ctl -f 679.250 (One of the faulty channels)
cat /dev/video0 > a.mpeg (around 10 seconds)
mplayer a.mpeg --> no sound
v4l2-ctl -s secam-l
cat /dev/video0 > a.mpeg (around 10 seconds)
mplayer a.mpeg --> sound !
v4l2-ctl -s secam and again no sound


>
>> After the update, I noticed that most channel didn't have any sound.
>> Searching further, I discovered that channels I can hear are sendind the
>> audio signal in stereo (SECAM stereo is NICAM, a numeric soundtrack
>> encoded in some unseen video lines in the picture, because original
>> SECAM sound modulation was AM, and not updatable to stereo). Other
>> channel were muted.
>>
>> I finaly found that this behavior can be changed :
>>
>> By default, freevo set the tuner in 'generic secam' : v4l2-ctl -S tell me :
>>
>> $ v4l2-ctl -S
>> Video Standard = 0x00ff0000
>> SECAM-B/D/G/H/K/K1/L/Lc
>>
>> French flavour of SECAM is SECAM L. If I set the tuner for SECAM-L :
>>
>> $ v4l2-ctl -s secam-L
>> Standard set to 00400000
>> $ v4l2-ctl -S
>> Video Standard = 0x00400000
>> SECAM-L
>>
>> Then I have again sound.
>>
>> Here the question : should I consider that new way like a bahaviour ? Or is that a 'bug' ?
>>
>
> Probably not a bug. Before you run freevo run v4l2-ctl --log-status.
> Could you post this? It is always good to include the complete ivtv
> init start to end (don't grep for only ivtv) from the kernel log.
>
>
Here is the v4l2-ctl --log-status just after a system power down / power
up :
ivtv0: ================= START STATUS CARD #0 =================
ivtv0: Version: 1.4.0 Card: Hauppauge WinTV PVR-350
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 48139, rev K257, serial# 2980036
tveeprom 1-0050: tuner model is Philips FM1216 ME MK3 (idx 57, 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 MSP4418 (idx 25)
tveeprom 1-0050: decoder processor is SAA7115 (idx 19)
tveeprom 1-0050: has radio, has IR receiver, has no IR transmitter
saa7115 1-0021: Audio frequency: 48000 Hz
saa7115 1-0021: Input: Composite 4
saa7115 1-0021: Video signal: bad
saa7115 1-0021: Frequency: 50 Hz
saa7115 1-0021: Detected format: BW/No color
saa7115 1-0021: Width, Height: 720, 576
saa7127 1-0044: Standard: 50 Hz
saa7127 1-0044: Input: normal
saa7127 1-0044: Output: S-Video + Composite
saa7127 1-0044: WSS: disabled
saa7127 1-0044: VPS: disabled
saa7127 1-0044: CC: disabled
msp3400 1-0040: msp3400 rev1 = 0x0217 rev2 = 0x1243
msp3400 1-0040: Audio: volume 58880
msp3400 1-0040: Standard: could not detect sound standard (mono)
msp3400 1-0040: Audmode: 0x0001
msp3400 1-0040: Routing: 0x00000000 (input) 0x00000044 (output)
msp3400 1-0040: ACB: 0x0c00
tda9887 1-0043: Data bytes: b=0x14 c=0x6e e=0x49
tuner 1-0061: Tuner mode: analog TV
tuner 1-0061: Frequency: 400.00 MHz
tuner 1-0061: Standard: 0x0000000f
ivtv0: Video Input: Tuner 1
ivtv0: Audio Input: Tuner 1
ivtv0: Video Output: S-Video + Composite
ivtv0: Audio Output: A/V Audio Out (Stereo/Bilingual: Stereo/Left)
ivtv0: Output Mode: None
ivtv0: Overlay: Off, Alpha: Global, Pixel Format: ARGB 8:8:8:8
ivtv0: Tuner: TV
ivtv0: Stream: MPEG-2 Program Stream
ivtv0: VBI Format: No VBI
ivtv0: Video: 720x576, 25 fps
ivtv0: Video: MPEG-2, 4x3, Variable Bitrate, 6000000, Peak 8000000
ivtv0: Video: GOP Size 12, 2 B-Frames, GOP Closure
ivtv0: Audio: 48 kHz, Layer II, 224 kbps, Stereo, No Emphasis, No CRC
ivtv0: Spatial Filter: Manual, Luma 1D Horizontal, Chroma 1D
Horizontal, 0
ivtv0: Temporal Filter: Manual, 8
ivtv0: Median Filter: Off, Luma [0, 255], Chroma [0, 255]
ivtv0: Status flags: 0x00200080
ivtv0: Stream encoder MPG: status 0x0000, 0% of 4096 KiB (128
buffers) in use
ivtv0: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (64 buffers)
in use
ivtv0: Stream encoder VBI: status 0x0000, 0% of 1049 KiB (41 buffers)
in use
ivtv0: Stream encoder PCM: status 0x0000, 0% of 324 KiB (72 buffers)
in use
ivtv0: Stream decoder MPG: status 0x0000, 0% of 1024 KiB (16 buffers)
in use
ivtv0: Stream decoder VBI: status 0x0000, 0% of 65 KiB (29 buffers)
in use
ivtv0: Stream decoder YUV: status 0x0000, 0% of 1024 KiB (16 buffers)
in use
ivtv0: Read MPG/VBI: 0/0 bytes
ivtv0: ================== END STATUS CARD #0 ==================

Also, I noticed these diff between a soud working an a sound non working
situation :
diff bad good
28c28
< msp3400 1-0040: Standard: 6.5/6.25 D/K1 Dual FM-Stereo (mono)
---
> msp3400 1-0040: Standard: 6.5/5.85 L NICAM AM (mono)
32c32
< tda9887 1-0043: Data bytes: b=0x04 c=0x10 e=0x49
---
> tda9887 1-0043: Data bytes: b=0x04 c=0x0e e=0x4b
35c35
< tuner 1-0061: Standard: 0x00ff0000
---
> tuner 1-0061: Standard: 0x00400000
52c52
< ivtv0: Status flags: 0x40200080
---
> ivtv0: Status flags: 0x00200080
60c60
< ivtv0: Read MPG/VBI: 5132224/0 bytes
---
> ivtv0: Read MPG/VBI: 6272960/0 bytes

Finally, here is the whole dmesg extract, with some unneeded lines !
ivtv: Start initialization, version 1.4.0
ivtv0: Initializing card #0
ivtv0: Autodetected Hauppauge card (cx23415 based)
ivtv 0000:00:11.0: PCI INT A -> Link[LNKB] -> GSI 3 (level, low) -> IRQ 3
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 48139, rev K257, serial# 2980036
tveeprom 1-0050: tuner model is Philips FM1216 ME MK3 (idx 57, 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 MSP4418 (idx 25)
tveeprom 1-0050: decoder processor is SAA7115 (idx 19)
tveeprom 1-0050: has radio, has IR receiver, has no IR transmitter
ivtv0: Autodetected Hauppauge WinTV PVR-350
saa7115 1-0021: saa7115 found (1f7115d0e100000) @ 0x42 (ivtv i2c driver #0)
ov511: Sensor is an OV7620
saa7127 1-0044: saa7129 found @ 0x88 (ivtv i2c driver #0)
msp3400 1-0040: MSP4418G-B3 found @ 0x80 (ivtv i2c driver #0)
msp3400 1-0040: msp3400 supports nicam and radio, mode is autodetect and
autoselect
sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
sr 1:0:0:0: [sr0] Sense Key : Hardware Error [current]
sr 1:0:0:0: [sr0] Add. Sense: Logical unit communication CRC error
(Ultra-DMA/32)
end_request: I/O error, dev sr0, sector 40
Buffer I/O error on device sr0, logical block 5
Buffer I/O error on device sr0, logical block 6
Buffer I/O error on device sr0, logical block 7
Buffer I/O error on device sr0, logical block 8
Buffer I/O error on device sr0, logical block 9
Buffer I/O error on device sr0, logical block 10
Buffer I/O error on device sr0, logical block 11
Buffer I/O error on device sr0, logical block 12
Buffer I/O error on device sr0, logical block 13
Buffer I/O error on device sr0, logical block 14
tuner 1-0043: chip found @ 0x86 (ivtv i2c driver #0)
tda9887 1-0043: creating new instance
tda9887 1-0043: tda988[5/6/7] found
tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)
tuner-simple 1-0061: creating new instance
tuner-simple 1-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
ivtv0: Registered device video0 for encoder MPG (4096 kB)
ivtv0: Registered device video32 for encoder YUV (2048 kB)
ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
ivtv0: Registered device video24 for encoder PCM (320 kB)
ivtv0: Registered device radio0 for encoder radio
ivtv0: Registered device video16 for decoder MPG (1024 kB)
ivtv0: Registered device vbi8 for decoder VBI (64 kB)
ivtv0: Registered device vbi16 for decoder VOUT
ivtv0: Registered device video48 for decoder YUV (1024 kB)
ivtv0: Initialized card #0: Hauppauge WinTV PVR-350
Intel ICH 0000:00:02.7: PCI INT C -> Link[LNKC] -> GSI 10 (level, low)
-> IRQ 10
ivtv: End initialization

> Greets
> Sander
>
>
Thanks agian,
Pascal

_______________________________________________
ivtv-users mailing list
ivtv-users [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-users


hverkuil at xs4all

Oct 13, 2008, 1:22 PM

Post #6 of 9 (2565 views)
Permalink
Re: ivtv, kernel 2.6.27, secam TV, Hauppauge PVR-350 : no sound on non stereo channels [In reply to]

On Sunday 12 October 2008 22:25:52 pascal wrote:
> Hi,
>
> I'm a very new member of this list, and I stat here to complains (how
> bad !)
>
> I use hauppauge cards since a few year, under linux and with ivtv.
> (a PVR 350 and a PVR 150). each card is in a different system running
> freevo.
>
> Yesterday, I updated one of the system to Mandriva 2009 (Thas is, a
> kernel 2.6.27, and ivtv 1.3.0). Just before, my two systems were
> running with a 2.6.24 kernel.
>
> I live in France, and receive analog program trough a Cable Operator.
> The 23 analog channel are in secam.
>
> After the update, I noticed that most channel didn't have any sound.
> Searching further, I discovered that channels I can hear are sendind
> the audio signal in stereo (SECAM stereo is NICAM, a numeric
> soundtrack encoded in some unseen video lines in the picture, because
> original SECAM sound modulation was AM, and not updatable to stereo).
> Other channel were muted.
>
> I finaly found that this behavior can be changed :
>
> By default, freevo set the tuner in 'generic secam' : v4l2-ctl -S
> tell me :
>
> $ v4l2-ctl -S
> Video Standard = 0x00ff0000
> SECAM-B/D/G/H/K/K1/L/Lc
>
> French flavour of SECAM is SECAM L. If I set the tuner for SECAM-L :
>
> $ v4l2-ctl -s secam-L
> Standard set to 00400000
> $ v4l2-ctl -S
> Video Standard = 0x00400000
> SECAM-L
>
> Then I have again sound.
>
> Here the question : should I consider that new way like a bahaviour ?
> Or is that a 'bug' ?
>
> In the later case, I should be able to do any needed tests, if
> useful.

Hi Pascal,

It's not a bug, it's the right behavior. I'm even a bit surprised that
this has worked in the past. Setting generic secam is a bad thing to do
as there is really no such thing. In practice you have SECAM-BG,
SECAM-DK and SECAM-L. And it is basically undefined what will happen if
you just set SECAM.

Regards,

Hans

_______________________________________________
ivtv-users mailing list
ivtv-users [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-users


ps1 at schirrms

Oct 13, 2008, 2:03 PM

Post #7 of 9 (2560 views)
Permalink
Re: ivtv, kernel 2.6.27, secam TV, Hauppauge PVR-350 : no sound on non stereo channels [In reply to]

Attachments: message-rfc822.eml (1.21 KB)


hverkuil at xs4all

Oct 13, 2008, 2:18 PM

Post #8 of 9 (2567 views)
Permalink
Re: ivtv, kernel 2.6.27, secam TV, Hauppauge PVR-350 : no sound on non stereo channels [In reply to]

On Monday 13 October 2008 23:03:07 ps1 wrote:
> Hans Verkuil a écrit :
> > Hi Pascal,
> >
> > It's not a bug, it's the right behavior. I'm even a bit surprised
> > that this has worked in the past. Setting generic secam is a bad
> > thing to do as there is really no such thing. In practice you have
> > SECAM-BG, SECAM-DK and SECAM-L. And it is basically undefined what
> > will happen if you just set SECAM.
> >
> > Regards,
> >
> > Hans
>
> Thanks for your answer, Hans.
>
> Your explanation is logical, but the "unlogical way of ivtv" before
> was very helpful :-)
>
> I follow your answer on the freevo list, to see if freevo can deal
> with that.

I'm not sure how freevo handles standards, but the right way is to use
VIDIOC_ENUMSTD to enumerate the standards that a driver supports. That
should give a valid list of formats.

Regards,

Hans

_______________________________________________
ivtv-users mailing list
ivtv-users [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-users


ps1 at schirrms

Oct 14, 2008, 11:24 AM

Post #9 of 9 (2541 views)
Permalink
Re: ivtv, kernel 2.6.27, secam TV, Hauppauge PVR-350 : no sound on non stereo channels [In reply to]

Hans Verkuil a écrit :
>> Thanks for your answer, Hans.
>>
>> Your explanation is logical, but the "unlogical way of ivtv" before
>> was very helpful :-)
>>
>> I follow your answer on the freevo list, to see if freevo can deal
>> with that.
>>
>
> I'm not sure how freevo handles standards, but the right way is to use
> VIDIOC_ENUMSTD to enumerate the standards that a driver supports. That
> should give a valid list of formats.
>
> Regards,
>
> Hans
>
Hi,

Just for the record : finaly, freevo is able to deal with SECAM sub norm
(PAL also, by the way).

So, and at least on my system ;-) since ivtv 1.4.0, I can no more use
the secam generic mode witch was working before. I have to set in the
freevo.conf file secam_l (with an underscore and not a minus sign).

Thanks again,
Pascal

_______________________________________________
ivtv-users mailing list
ivtv-users [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-users

ivtv users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.