Asynchronous video playback

ZIYAD A. M. AL-BATLY zamb at saudi.net.sa
Mon Jul 18 16:11:16 UTC 2005


On Sun, 2005-07-17 at 23:37 -0700, Andrew Paul wrote:
> Hello all
> 
> I recently switched from Fedora Core 3 to Ubuntu 5.04
> (mainly due to the great packet management in Ubuntu).
> However, I am having the following problem with the
> sound.
> 
> When watching movies (DVDs, DVDs from hard disk, AVI
> (DivX or Xvid)) the sound becomes asynchronous after
> around five minutes. For the first five minutes, sound
> and video are perfectly synchronous. I experience the
> same behavior when the movie's sound is encoded in Mp3
> or AC3.
> 
> I can reproduce this in Totem and Xine.
> 
> I can temporarily fix the problem by pausing and
> unpausing the movie. Then the sound and video become
> synchronous again. However, after around three to five
> minutes, they become asynchronous. :-(
> 
> I did not have this problem with Fedora Core 3 using
> the same hardware.
> 
> I have also noted that when I adjust the volume in
> Beep Media Player there is a short (maybe 0.75s) delay
> between moving the volume slider bar and the volume
> actually changing. Maybe this is related to the above
> described symptoms.
> 
> Has anyone else experienced this behavior? And does
> anyone have a solution?
> 
> TIA
> 
> Andrew
> 
> 
> 		
> ____________________________________________________
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 
> 
> 
(In this message I'm assuming your HDD is "/dev/hda" and your CD-ROM/DVD
device is "/dev/cdrom".  Adjust when needed.)


WARNING:
        Some of these fixes may harm your system!!!  Backup all your
        data before trying any of them and prepare for the worst!
        
        This is not a juke!


Make sure DMA is on for the hard drive and CD-ROM/DVD devices.  Run:
        sudo hdparm /dev/hda /dev/cdrom
and see what it tills you about DMA and "Unmasking IRQ".  You should
turn those two options on unless they cause trouble in your system.

To turn them on run:
        sudo hdparm -d 1 -u 1 /dev/hda /dev/cdrom

These changes will lost when you restart your system.  To make them
permanent (assuming they didn't harm your system and fixed it):  Edit
the file "/etc/hdparm.conf" and include the following in it (make sure
each device is list *only once* at most!):
        /dev/hda {
                dma = on
                interrupt_unmask = on
        }

        /dev/cdrom {
                dma = on
                interrupt_unmask = on
        }

If this didn't fix your problem, just repost here again.
Ziyad.




More information about the ubuntu-users mailing list