VirtualBox

Opened 15 years ago

Closed 14 years ago

#4391 closed defect (fixed)

Choppy/skippy/stuttering audio and video playback

Reported by: Sam Morris Owned by:
Component: audio Version: VirtualBox 3.0.0
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

Since upgrading to VirtualBox 3.0.0, audio and video playback have become unusable with mplayer. Audio will stutter and skip constantly; video will pause for a moment and then catch up, repeatedly.

This does not happen to such a great degree with other audio/video playback programs, but all exhibit the behaviour to a noticeable degree.

My host is 64-bit Vista Home Basic and my guest is Debian using Linux versions 2.6.26 and 2.6.30.

My underlying CPU is a Core i7 920, I've tried changing the number of CPUs in the guest system from 8, to 4, to 1, but it doesn't seem to make a difference.

You may consider this a duplicate of #2580; I'm not sure since I didn't have this problem with any prior version of VirtualBox.

Attachments (2)

wintermute-2009-07-04-11-19-48.log (54.3 KB ) - added by Sam Morris 15 years ago.
log file
VBox-triode-20090709-1.log.gz (120.8 KB ) - added by Matt Kassawara 15 years ago.
VirtualBox log from Windows guest.

Download all attachments as: .zip

Change History (10)

by Sam Morris, 15 years ago

log file

comment:1 by Sam Morris, 15 years ago

mplayer doesn't output any relevant messages save the following when the stuttering gets particularly bad:

Your system is too SLOW to play this!

Possible reasons, problems, workarounds:

  • Most common: broken/buggy _audio_ driver
    • Try -ao sdl or use the OSS emulation of ALSA.
    • Experiment with different values for -autosync, 30 is a good start.
  • Slow video output
    • Try a different -vo driver (-vo help for a list) or try -framedrop!
  • Slow CPU
    • Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts, e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
  • Broken file
    • Try various combinations of -nobps -ni -forceidx -mc 0.
  • Slow media (NFS/SMB mounts, DVD, VCD etc)
    • Try -cache 8192.
  • Are you using -cache to play a non-interleaved AVI file?
    • Try -nocache.

Read DOCS/HTML/en/video.html for tuning/speedup tips. If none of this helps you, read DOCS/HTML/en/bugreports.html.

I also noticed, while experimenting with jackd, that it will regularly complain in burst like this:

alsa_pcm: xrun of at least 46.007 msecs alsa_pcm: xrun of at least 5.333 msecs alsa_pcm: xrun of at least 0.985 msecs alsa_pcm: xrun of at least 0.829 msecs alsa_pcm: xrun of at least 0.041 msecs alsa_pcm: xrun of at least 0.086 msecs

corresponding with choppy periods.

comment:2 by Matt Kassawara, 15 years ago

I'm also experiencing this problem but in a Windows (XP SP3/32-bit) guest on a Linux (Debian Lenny/64-bit) host. Rebooting the guest seems to fix the issue temporarily. Guest log (attached) contains thousands of messages similar to this:

TM: Giving up catch-up attempt at a 60 001 891 972 ns lag; new total: 52 861 249 165 838 ns

by Matt Kassawara, 15 years ago

VirtualBox log from Windows guest.

comment:3 by Sam Morris, 15 years ago

This is fixed for me in 3.0.2. Thanks!

comment:4 by Sander van Leeuwen, 15 years ago

Resolution: fixed
Status: newclosed

Thanks for the feedback.

comment:5 by Matt Kassawara, 15 years ago

Resolution: fixed
Status: closedreopened

I'm still experiencing this problem with 3.0.2 in a Windows XP guest on a Linux host. VirtualBox log contains same error messages about giving up on catch-up attempts.

comment:6 by Sam Morris, 14 years ago

ionosphere80, are you still seeing this with current releases (3.0.12)?

comment:7 by Matt Kassawara, 14 years ago

Just upgraded to 3.1.4... still seeing the issue.

comment:8 by Sander van Leeuwen, 14 years ago

Resolution: fixed
Status: reopenedclosed

Retry with 3.2.10 please.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use