Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Perhaps I have a hardware problem, but all "movie" software wont keep the video and sound in sync. Mplayer, Xine and many others all have the same problem. When I play any kind of movie - avi mpeg wmv etc - it starts off well but rapidly loses sync with the sound trailing up to 30 seconds behind the video.
Is it my machine only, or do others have this problem?
It is the same on all distributions of Linux. I need help so that I can finally get rid of Windoze98 that currently is only used to play movies, which I hate to admit does so perfectly.
Kernel 2.6.16 Sound: VIA 82c686A/B rev 50 on /dev/dsp
System: 550 mhz Celeron, 256mb ram, Trident Cyberblade videocard.
Tried your suggestion with the following results:-
Only sdl and oss worked. Alsa can't find various things, arts hangs the computer!
Sdl produces terribly distorted sound but works everytime. Oss produces good quality sound but only works about once in three attempts, hanging the computer or "failed to find sound device / device busy" on the other occassions.
Working from command line, the sync problem appeared to be fixed. The gui is by default sdl and is very out of sync.
I was convinced that this was the right line of investigation until...
I switched to Slax (Popcorn) which is running from harddisk, not CD! I repeated the command line tests.
Oss now produced a number of "Video frame size errors" which didn't occur or were not reported under my main system. After many tries, it became clear that the errors were coming consistantly and were indeed causing the sync problem. I first assumed that the video media was bad, but on changing the movie, the same results were found.
It would appear to be a video related timing problem.
Only sdl and oss worked. Alsa can't find various things, arts hangs the computer!
Well, that's certainly not the same on all distributions. Most major distributions are using ALSA for sound support now, and that should work (no sync problems here - unless the source is not sync'd).
Quite frankly, I've seen ALSA on so many distributions and on a large variety of hardware and it never works straight out of the box! It's a pain!
I wish we still had the days of "sndconfig" and the old sound systems of RedHat 5.0 and the like. Sometimes things don't get better with time.
I have ALSA on 8 (different hardware) machines; I never had a problem with it. Have you remembered to apply maintenance after installation as the first step?
Whatever! Forget ALSA.
I've tried every available video driver and none fix the problem.
I tried all the cache / nocache options and the so-called bad media fixes but nothing works. It would seem that the data just isn't flowing through my system fast enough.
The strange thing is that starting mplayer by xterm, it nearly works - well it does work using sdl if you ignore the sound quality, but gui gmplayer always has the problem.
Actually I prefer Xine, so anyone have any ideas in this area?
Your main problem is probably that 550 Mhz. Celeron. That's a week machine and will only do so much. When you are playing a video is your processor maxed out? I use FreeBSD and Linux on some PII types and they work ok but video won't keep up all the time. Depends on how large in resolution it is. Using a lighter window manager like fluxbox will help. KDE will make that older box kinda slow. Also the video card that came with that vintage may not have the mem to keep up with modern vids. Anyway here is mplayers pages. Good luck. You may want to make the video smaller in resolution to fix it. Or you can try hard frame dropping.
teckk - you are probably right in many areas, but seeing is believing! I tried hard frame dropping but it had no effect. So in desperation, I decided to change my distribution (again!). I installed Zenwalk 3.0.
Surprise!!! gxine works perfectly. I have tried it on all my available movie CD's and it works perfectly using every codec.
My next task is to figure out what video and audio drivers gzine is using (haven't had time yet).
The previous distro, and many others before, hung the computer so completely that it was impossible to debug the cause. And yes, KDE was probably a major part of the problem - now using Xfce. Yet, Slax popcorn, also using Xfce, has the problem too!
Although my problem is solved, I would still like to get to the bottom of it for my own satisfaction and knowledge.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.