Dropped audio causes jerky video
#1
Sad 
Hi guys,

XBMC dharma beta 3 from Ubuntu ppa
Ubuntu 10.04 x86 with pulseaudio uninstalled (for pass-through audio).
Nvidia ION + 330 atom, 2GB RAM, 256M as video RAM
pass-through sound and video over HDMI
sync playback to refresh ON, sync to video clock (drop or resample) ON

Video modes:
Code:
for i in 24 60; do xrandr -r $i; nvidia-settings -q RefreshRate | grep -o "[0-9][0-9].*Hz"; done
23.97 Hz
59.94 Hz

Problem:
sometimes when I start video, seek video or pop-up into GUI I get dropped audio, at roughly 1 block every second. That somehow makes the video jerky too (seems like a video frame is dropped). I do not have video frames dropped during playback in fact (at least according to "o" screen, only audio)! Also I'm synced to vide clock, not audio. That seems to happen with higher quality videos. After roughly 20 minutes of jerky playback it gradually goes away. Disabling pass-through and downmixing to 2 does not matter. Is is not specific to a single video file. Changing any playback sync method or not synching at all does not matter. Using pulseaudio or alsa does not matter. CPU does not get above 15% when playing.

I am attaching a log where I start a video, for some time it's OK until I drop into GUI, then ~20 minutes of jerky playback and back to normal playback.

http://pastebin.com/raw.php?i=0siLcnLv

mediainfo of the file played:
Code:
Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 5 frames
Muxing mode                      : Container [email protected]
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 1h 34mn
Bit rate                         : 5 073 Kbps
Width                            : 1 280 pixels
Height                           : 544 pixels
Display aspect ratio             : 2.35:1
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.304
Stream size                      : 3.29 GiB (87%)
Writing library                  : x264 core 104 r1703 cd21d05
Encoding settings                : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=5073 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language                         : English

Audio #1
ID                               : 2
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : A_AC3
Duration                         : 1h 34mn
Bit rate mode                    : Constant
Bit rate                         : 448 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Stream size                      : 304 MiB (8%)
Title                            : многоголосый (Амальгама)
Language                         : Russian

Audio #2
ID                               : 3
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : A_AC3
Duration                         : 1h 34mn
Bit rate mode                    : Constant
Bit rate                         : 192 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Stream size                      : 130 MiB (3%)
Title                            : НТВ+
Language                         : Russian

Please help! What other info may be required?
Thanks for your great work!
Michael.
Reply
#2
Can you point to a timestamp in the log where this is happening?
Reply
#3
Oo WOW! This is pure magic:
Yesterday just after I posted my Ubuntu pulled some updates and the issue was immediately... GONE! I checked apt logs and could not find anything related to sound or video except a kernel update. I did not see any xbmc updates there.

I can now seek, drop into GUI and back with no lasting playback issues whatsoever. I also noticed a video file that previously played as green garbage on screen now playing OK... go figure! Blush

Another issue was introduced: most of the time XBMC exits/crashes when I pause, regardless of file played. I'll observe it for a while and open another thread for it.

Thanks...
Reply

Logout Mark Read Team Forum Stats Members Help
Dropped audio causes jerky video0