[mythtv-users] Jittery Audio/video

Roger McClurg roger at mcclurgstudios.com
Fri Oct 28 19:00:09 EDT 2005


Hello List,
I've gone through a hundred messages from list archives, looked at I 
can't remember how many how-tos, searched the Gentoo and EPIA forums and 
wikis, and tried everything I can think of, but I can't get LiveTV and 
recording playback to play normally. The Audio stutters, and the video 
jitters when it tries to sync with the audio. I tried turning on extra 
audio buffers, but no soap. When I use MythVideo to playback mpg videos 
I made earlier, they play just fine. If I drop out of MythTV and play 
the Myth recordings in Mplayer, they play beautifully too. Why the 
difference? Shouldn't the problem exist everywhere?

A little background. Myth frontend and backend are on the same machine, 
a VIA EPIA M10000, which provides the audio and video. TV is from a 
PVR-350. I am running Gentoo Linux V2.6.12-r10, with the Xorg drm 
modules. Mplayer has the XvMC patch. I run ivtv from fb.

There are no errors I can find in dmesg, or the Xorg logs. Everything 
else in Mythtv looks and runs beautifully.

Has anyone else with this hardware had and solved this problem? Can 
anyone help?

------------------------------------------
Here is a sample mythfrontend log
-----------------------------------------
2005-10-27 10:42:39.604 prebuffer wait timed out..
2005-10-27 10:42:39.604 waiting for prebuffer...
2005-10-27 10:42:39.617 _AddSamples bytes=4608, used=19457, free=492543, 
timecode=5377
2005-10-27 10:42:39.622 _AddSamples bytes=4608, used=24065, free=487935, 
timecode=5401
2005-10-27 10:42:39.624 write->15 53      QUERY_RECORDER 
1[]:[]REQUEST_BLOCK_RI...
2005-10-27 10:42:39.635 Read(): reqd=128000, rcvd=128000, rept=128000, 
error=0
2005-10-27 10:42:39.671 _AddSamples bytes=4608, used=28673, free=483327, 
timecode=5425
2005-10-27 10:42:39.712 _AddSamples bytes=4608, used=33281, free=478719, 
timecode=5449
2005-10-27 10:42:39.739 prebuffer wait timed out..
2005-10-27 10:42:39.739 waiting for prebuffer...
2005-10-27 10:42:39.762 _AddSamples bytes=4608, used=37889, free=474111, 
timecode=5473
2005-10-27 10:42:39.767 _AddSamples bytes=4608, used=42497, free=469503, 
timecode=5497
2005-10-27 10:42:39.812 _AddSamples bytes=4608, used=47105, free=464895, 
timecode=5521
2005-10-27 10:42:39.856 _AddSamples bytes=4608, used=51713, free=460287, 
timecode=5545
2005-10-27 10:42:39.861 _AddSamples bytes=4608, used=56321, free=455679, 
timecode=5569
2005-10-27 10:42:39.874 prebuffer wait timed out..
2005-10-27 10:42:39.874 waiting for prebuffer...
2005-10-27 10:42:39.915 _AddSamples bytes=4608, used=60929, free=451071, 
timecode=5593
2005-10-27 10:42:39.968 write->15 53      QUERY_RECORDER 
1[]:[]REQUEST_BLOCK_RI...
2005-10-27 10:42:39.970 _AddSamples bytes=4608, used=65537, free=446463, 
timecode=5617
2005-10-27 10:42:39.980 Read(): reqd=128000, rcvd=128000, rept=128000, 
error=0
2005-10-27 10:42:40.009 prebuffer wait timed out..
2005-10-27 10:42:40.009 waiting for prebuffer...
2005-10-27 10:42:40.024 _AddSamples bytes=4608, used=70145, free=441855, 
timecode=5641
2005-10-27 10:42:40.030 _AddSamples bytes=4608, used=74753, free=437247, 
timecode=5665
2005-10-27 10:42:40.038 OutputAudioLoop: Play Event
2005-10-27 10:42:40.039 Broadcasting free space avail
2005-10-27 10:42:40.040 Broadcasting free space avail
2005-10-27 10:42:40.040 Broadcasting free space avail
2005-10-27 10:42:40.041 Broadcasting free space avail
2005-10-27 10:42:40.041 audio waiting for space on soundcard: have 256 
need 4096
2005-10-27 10:42:40.048 audio waiting for space on soundcard: have 1536 
need 4096
2005-10-27 10:42:40.055 audio waiting for space on soundcard: have 2880 
need 4096
2005-10-27 10:42:40.062 Broadcasting free space avail
2005-10-27 10:42:40.062 audio waiting for space on soundcard: have 224 
need 4096
2005-10-27 10:42:40.069 audio waiting for space on soundcard: have 1632 
need 4096
2005-10-27 10:42:40.077 audio waiting for space on soundcard: have 3008 
need 4096
2005-10-27 10:42:40.084 Broadcasting free space avail
2005-10-27 10:42:40.084 audio waiting for space on soundcard: have 352 
need 4096
2005-10-27 10:42:40.091 audio waiting for space on soundcard: have 1600 
need 4096
2005-10-27 10:42:40.098 audio waiting for space on soundcard: have 2944 
need 4096
2005-10-27 10:42:40.105 Broadcasting free space avail
----------------------------------------------------------------
This is what my modules look like:
-----------------------------------------------------------------
Module                  Size  Used by
via                    37792  1
drm                    67704  2 via
ivtv_fb                39132  0
tda9887                12728  0
tuner                  26760  0
ivtv                  217236  3 ivtv_fb
saa7127                12348  0
saa7115                14296  0
msp3400                25672  0
via_ircc               23316  0
via_agp                 7648  1
agpgart                29608  2 drm,via_agp
snd_pcm_oss            48128  0
snd_mixer_oss          17152  1 snd_pcm_oss
snd_seq_oss            32384  0
snd_seq_midi_event      6272  1 snd_seq_oss
snd_seq                49744  4 snd_seq_oss,snd_seq_midi_event
bttv                  148880  0
video_buf              17636  1 bttv
i2c_algo_bit            8808  2 ivtv,bttv
btcx_risc               3912  1 bttv
tveeprom               11640  1 bttv
lirc_i2c                6756  1
i2c_core               17840  9 
tda9887,tuner,saa7127,saa7115,msp3400,bttv,i2c_algo_bit,tveeprom,lirc_i2c
lirc_dev               11500  1 lirc_i2c
at76c503_rfmd           4972  0
at76c503              102144  1 at76c503_rfmd
at76_usbdfu             6052  1 at76c503
irda                  113496  1 via_ircc
snd_via82xx            22720  0
snd_ac97_codec         79768  1 snd_via82xx
snd_pcm                83144  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              21220  2 snd_seq,snd_pcm
snd_page_alloc          7620  2 snd_via82xx,snd_pcm
snd_mpu401_uart         6176  1 snd_via82xx
snd_rawmidi            20384  1 snd_mpu401_uart
snd_seq_device          6860  3 snd_seq_oss,snd_seq,snd_rawmidi
snd                    46916  11 
snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               7552  1 snd
usb_storage            47780  0
ehci_hcd               43304  0
uhci_hcd               30732  0
ohci_hcd               33668  0

------------------------------------------------------------
This is what DMESG says:
----------------------------------------
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected VIA CLE266 chipset
agpgart: AGP aperture is 128M @ 0xd0000000
via-ircc: dongle probing not supported, please specify dongle_id module 
parameter.
IrDA: Registered device irda0 (via-ircc)
ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 0.4.0 (tagged release) loading
ivtv:  Linux version: 2.6.12-gentoo-r10 preempt VIAC3-2 gcc-3.3
ivtv:  In case of problems please include the debug info
ivtv:  between the START INIT IVTV and END INIT IVTV lines when
ivtv:  mailing the ivtv-devel mailinglist.
ivtv0: Autodetected WinTV PVR 350 card (iTVC15 based)
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
lirc_i2c: chip found @ 0x18 (Hauppauge IR)
ivtv0: i2c attach to card #0 ok [client=Hauppauge IR, addr=18]
lirc_dev: lirc_register_plugin:sample_rate: 10
msp34xx: init: chip=MSP3448W-A2 +nicam +simple +simpler +radio mode=simpler
msp34xxg: daemon started
ivtv0: i2c attach to card #0 ok [client=MSP3448W-A2, addr=40]
msp3400: error while reading chip version
saa7115 0-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=saa7115, addr=21]
saa7127 0-0044: saa7127 found @ 0x88 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=saa7127, addr=44]
tveeprom: Hauppauge: model = 48132, rev = I123, serial# = 6179076
tveeprom: tuner = Philips FM1236 (idx = 23, type = 2)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio_processor = MSP3440 (type = 11)
ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0)
ivtv0: loading /lib/modules/ivtv-fw-enc.bin
ivtv0: loading /lib/modules/ivtv-fw-dec.bin
ivtv0: Encoder revision: 0x02050032
ivtv0: Decoder revision: 0x02020023
ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB 
total)
ivtv0: Create encoder radio stream
ivtv0: Allocate DMA decoder MPEG stream: 16 x 65536 buffers (1024KB total)
ivtv0: Allocate DMA decoder VBI stream: 512 x 2048 buffers (1024KB total)
ivtv0: Create decoder VOUT stream
ivtv0: Allocate DMA decoder YUV stream: 24 x 43200 buffers (1024KB total)
ivtv0: loading /lib/modules/ivtv_init_mpeg.bin
tuner 0-0061: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles))
spurious 8259A interrupt: IRQ7.
ivtv0: Initialized WinTV PVR 350, card #0
ivtv:  ====================  END INIT IVTV  ====================
ivtv0-osd: Framebuffer module loaded (attached to ivtv card id 0)
ivtv0-osd warning: Framebuffer is at decoder-relative address 0x00510000 
and has 1704960 bytes.
ivtv0-osd: screen coords: [0 0] -> [720 480]
ivtv0-osd: original global alpha = 208
ivtv0-osd: current OSD state = 39
ivtv0-osd: new global alpha = 208 (1 255 0)
ivtv0-osd: framebuffer at 0xdd510000, mapped to 0xdfc90000, size 1350k
ivtv0-osd: mode is 720x480x32, linelength=2880
ivtv0-osd: fb1: iTVC15 TV out frame buffer device
ivtv0: Allocate DMA decoder OSD stream: 16 x 65536 buffers (1024KB total)
[drm] Initialized drm 1.0.0 20040925
PCI: Unable to reserve mem region #1:4000000 at d8000000 for device 
0000:01:00.0
[drm] Initialized via 2.6.4 20050715 on minor 0: VIA Technologies, Inc. 
VT8623 [Apollo CLE266] integrated CastleRock graphics
[drm] Used old pci detect: framebuffer loaded
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode




More information about the mythtv-users mailing list