sound delay with saa7134 based Terratec Cinergy 600?!
- From: tormen (at) gmx.net
- Date: Tue, 28 Feb 2006 19:41:54 +0100
Hi.
Sorry, I just realised, that my last posting might have been a bit SHORT...
...so here is my problem more in detail:
If I record with mencoder (no matter if sound via ALSA or via OSS)
OR
every time I switch the channels watching tv (with tvtime):
I always have a DELAY of a 1-3 seconds, befor the tv-sound is recorded!
As the problem occurs with different programs,
it might be a problem with the MODULE parameters, or???
///KERNEL///
2.6.15-gentoo-r1-jolie #15
///HARDWARE///
I have TWO tv-cards in my linux-box (lspci):
1.)
02:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
2.)
02:0c.0 Multimedia controller: Philips Semiconductors SAA7134 Video Broadcast Decoder (rev 01)
And on-board sound:
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
///MODULES///
( /etc/modules.autoload.d/kernel-2.6: )
======================================================================================================
bttv gbuffers=32 v4l2=1
snd_bt87x enable=1
saa7134 alsa=1
saa7134_alsa
======================================================================================================
///dmesg///
======================================================================================================
[17179602.484000] Linux video capture interface: v1.00
[17179602.492000] bttv: driver version 0.9.16 loaded
[17179602.492000] bttv: using 32 buffers with 2080k (520 pages) each for capture
[17179602.492000] bttv: Bt8xx card found (0).
[17179602.492000] ACPI: PCI Interrupt 0000:02:0a.0[A] -> Link [LNKG] -> GSI 5 (level, low) -> IRQ 5
[17179602.492000] bttv0: Bt878 (rev 17) at 0000:02:0a.0, irq: 5, latency: 64, mmio: 0xf7efe000
[17179602.492000] bttv0: detected: Hauppauge WinTV [card=10], PCI subsystem ID is 0070:13eb
[17179602.492000] bttv0: using: Hauppauge (bt878) [card=10,autodetected]
[17179602.492000] bttv0: gpio: en=00000000, out=00000000 in=00ffffdb [init]
[17179602.492000] bttv0: Hauppauge/Voodoo msp34xx: reset line init [5]
[17179602.588000] tveeprom 1-0050: Hauppauge model 44354, rev A321, serial# 5061892
[17179602.588000] tveeprom 1-0050: tuner model is Philips FM1216 (idx 21, type 5)
[17179602.588000] tveeprom 1-0050: TV standards PAL(B/G) (eeprom 0x04)
[17179602.588000] tveeprom 1-0050: audio processor is MSP3415 (idx 6)
[17179602.588000] tveeprom 1-0050: has radio
[17179602.588000] bttv0: using tuner=5
[17179602.616000] bttv0: i2c: checking for MSP34xx (at) 0x80... found
[17179602.652000] msp3400 1-0040: chip=MSP3415D-B3 +nicam +simple mode=simple
[17179602.652000] msp3400 1-0040: msp3410 daemon started
[17179602.680000] bttv0: i2c: checking for TDA9875 (at) 0xb0... not found
[17179602.684000] bttv0: i2c: checking for TDA7432 (at) 0x8a... not found
[17179602.704000] bttv0: i2c: checking for TDA9887 (at) 0x86... not found
[17179602.720000] tuner 1-0061: chip found (at) 0xc2 (bt878 #0 [sw])
[17179602.720000] tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles))
[17179602.764000] bttv0: registered device video0
[17179602.764000] bttv0: registered device vbi0
[17179602.764000] bttv0: registered device radio0
[17179602.780000] bttv0: PLL: 28636363 => 35468950 .. ok
[17179602.856000] ACPI: PCI Interrupt 0000:02:0a.1[A] -> Link [LNKG] -> GSI 5 (level, low) -> IRQ 5
[17179602.868000] input: i2c IR (Hauppauge) as /class/input/input2
[17179602.876000] saa7130/34: v4l2 driver version 0.2.14 loaded
[17179602.880000] ACPI: PCI Interrupt 0000:02:0c.0[A] -> Link [LNKE] -> GSI 5 (level, low) -> IRQ 5
[17179602.880000] saa7134[0]: found at 0000:02:0c.0, rev: 1, irq: 5, latency: 64, mmio: 0xfeaff000
[17179602.880000] saa7134[0]: subsystem: 153b:1143, board: Terratec Cinergy 600 TV [card=11,autodetected]
[17179602.880000] saa7134[0]: board init: gpio is 50000
[17179602.880000] input: saa7134 IR (Terratec Cinergy 60 as /class/input/input3
[17179603.024000] tuner 2-0060: All bytes are equal. It is not a TEA5767
[17179603.024000] tuner 2-0060: chip found (at) 0xc0 (saa7134[0])
[17179603.024000] tuner 2-0060: type set to 5 (Philips PAL_BG (FI1216 and compatibles))
[17179603.060000] saa7134[0]: i2c eeprom 00: 3b 15 43 11 ff ff ff ff ff ff ff ff ff ff ff ff
[17179603.060000] saa7134[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[17179603.060000] saa7134[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[17179603.060000] saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[17179603.060000] saa7134[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[17179603.060000] saa7134[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[17179603.060000] saa7134[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[17179603.060000] saa7134[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[17179603.084000] saa7134[0]: registered device video1 [v4l2]
[17179603.084000] saa7134[0]: registered device vbi1
[17179603.084000] saa7134[0]: registered device radio1
[17179603.092000] saa7134 ALSA driver for DMA sound loaded
[17179603.092000] saa7134[0]/alsa: saa7134[0] at 0xfeaff000 irq 5 registered as card -1
======================================================================================================
///WHAT-I-DID///
When I record from my bt878 based tv-card (Haupauge winTV pci) via mencoder:
/usr/bin/mencoder tv://E9 -tv driver=v4l2:device=/dev/v4l/video0:width=640:height=480:chanlist=europe-west:adevice=hw.1,0:alsa:audiorate=32000:amode=1:forceaudio:volume=80:immediatemode=0:norm=PAL -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3600 -vf pp=lb -oac mp3lame -lameopts cbr:br=128:mode=0 -o /LINKS/tv-recordings/REC_sat1_23911.avi
I ALWAYS get the following output:
=========================================================================================
MP3 Audio selected
Building audio filter chain for 32000Hz/2ch/s16le -> 32000Hz/2ch/s16le...
Wrting AVI-Header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Forcing Audio-Preload of 0, maximal pts-correction of 0
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos: 9.2s 231f ( 0%) 24fps Trem: 0min 0mb A-V:0.000 [3562:128]
=========================================================================================
In this case everything is fine with AUDIO-VIDEO-sync.
---
But when I record from my saa7134 based tv-card (Terratec Cinergy 600) via mencoder:
/usr/bin/mencoder tv://E9 -tv driver=v4l2:device=/dev/v4l/video1:width=640:height=480:chanlist=europe-west:adevice=hw.2,0:alsa:audiorate=32000:amode=1:forceaudio:volume=80:immediatemode=0:norm=PAL -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3600 -vf pp=lb -oac mp3lame -lameopts cbr:br=128:mode=0 -o /LINKS/tv-recordings/REC_sat1_24081.avi
Then I ALWAYS get the following output:
=========================================================================================
MP3 Audio selected
Building audio filter chain for 32000Hz/2ch/s16le -> 32000Hz/2ch/s16le...
Writing AVI-Header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Forcing Audio-Preload of 0, maximal pts-correction of 0
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos: 0.2s 5f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
1 doppelte(r) Frame(s)!
Pos: 0.3s 7f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
1 doppelte(r) Frame(s)!
Pos: 5.2s 127f ( 0%) 23fps Trem: 0min 0mb A-V:0.000 [3619:128]
=========================================================================================
But in this case:
If I play the resulting video with mplayer: video and audio are NOT in sync!
If I play the resulting video with vlc: I have 1-3 seconds silence and then everything is fine and in sync!
---
I lived with this "problem" for the last year(s), but maybe someone knows a solution for this issue?!
Any help would be very apreciated!
Greetings,
tormen.
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list