Sander Sweers a écrit : > On Sun, Oct 12, 2008 at 22:25, pascal <[EMAIL PROTECTED]> 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 [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-users
