Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

mplayer - video plays too fast, audio plays normal (solved)

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
Dr Evil
n00b
n00b
Posts: 41
Joined: Sun Jan 25, 2004 3:25 am

mplayer - video plays too fast, audio plays normal (solved)

  • Quote

Post by Dr Evil » Wed Jun 30, 2004 3:48 pm

Hello everyone!

I'm not as familiar as I might like to be with mplayer and some of the options it has. And from what I've read in the man pages, I'm not sure if my problem can be solved with options or not.

What I'm running into is a problem with playing videos. For example, I have a 45 second AVI from my digital camera that I made. I play it with mplayer, and it only lasts about 20 seconds. The video is going really fast, while the audio is normal.

I'm having this problem with all of the video formats that I've tried so far (AVI, MOV, MPEG, and WMV). The speed of the video varies, but you can definitely tell that there's a problem.

Any suggestions? It seems to be a significant problem since after my system rebuild, but it may also have been a problem prior to it as well.

Thanks in advance!
Last edited by Dr Evil on Sat Jul 03, 2004 8:20 pm, edited 1 time in total.
Top
Dr Evil
n00b
n00b
Posts: 41
Joined: Sun Jan 25, 2004 3:25 am

  • Quote

Post by Dr Evil » Wed Jun 30, 2004 11:06 pm

Okay, I installed xine, and that works fine. Other than that, I'm still clueless about what might be going on.

Any ideas?
Top
DrKayBee
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 143
Joined: Tue May 11, 2004 3:27 pm
Location: Columbus, OH

  • Quote

Post by DrKayBee » Thu Jul 01, 2004 1:22 am

Going off a hunch here...
Do you have RTC compiled in your kernel? Are you overclocking or something?
I have RTC compiled in and I know mplayer acknowledges its presence when it starts up. If it uses a hardware clock to keep time, then perhaps it doesn't have to rely on the time information in the movie..

Just a hunch.
Top
Dr Evil
n00b
n00b
Posts: 41
Joined: Sun Jan 25, 2004 3:25 am

  • Quote

Post by Dr Evil » Thu Jul 01, 2004 2:03 am

Forgive the ignorance, but what's RTC? I'm going to go see if I can find something that might be it regardless though, but not exactly sure what RTC is.
Top
iamben
Apprentice
Apprentice
Posts: 278
Joined: Mon May 10, 2004 1:23 am

  • Quote

Post by iamben » Thu Jul 01, 2004 2:30 am

have you tried manually specifying the sample rate and/or frame rate?
Top
Dr Evil
n00b
n00b
Posts: 41
Joined: Sun Jan 25, 2004 3:25 am

  • Quote

Post by Dr Evil » Thu Jul 01, 2004 2:35 am

iamben, Yes.. Doesn't make any difference. :(

I did not originally have RTC compiled in the kernel, and I am not overclocking. Now I do have it compiled into the kernel, and sitll not overclocking. :)

And, sadly, still having problems with it.. :(
Top
Dr Evil
n00b
n00b
Posts: 41
Joined: Sun Jan 25, 2004 3:25 am

  • Quote

Post by Dr Evil » Thu Jul 01, 2004 10:53 pm

Anybody else with any suggestions? I'm very confuzzled by this.
Top
Dr Evil
n00b
n00b
Posts: 41
Joined: Sun Jan 25, 2004 3:25 am

  • Quote

Post by Dr Evil » Sat Jul 03, 2004 8:19 pm

Okay, I have the issue solved.

Turns out it was apparently an issue with where mplayer was sending the audio. Even though I was getting sound at the proper rate, the video was sped up to over double what it should have been.

Well, after hunting around on the web, I came across this link. Down towards the bottom the user gave the suggestion to try -ao null to see if it corrected it. Well, you can read the little bit of chat there.

But, anyway, I tried it, and it corrected the video problem, and killed the sound. So, I did some more research on the -ao option, and after trying an incorrect setting or two, I have it figured out.

So, I added this line to my .bashrc after testing it out on several known problem files:

Code: Select all

alias mplayer="/usr/bin/mplayer -ao sdl"
Worked like a charm. So far everything I have tested is playing the way it should be.

Just thought I'd share that I solved the problem.

Thanks to those that offered suggestions!
Top
Anime_Fan
Guru
Guru
Posts: 366
Joined: Tue Jul 01, 2003 9:04 am
Location: Linköping, Sweden

  • Quote

Post by Anime_Fan » Sat Jul 03, 2004 9:30 pm

Dr Evil wrote:

Code: Select all

alias mplayer="/usr/bin/mplayer -ao sdl"
Worked like a charm. So far everything I have tested is playing the way it should be.
You didn't try changing /etc/mplayer.conf, did you?
That's where I keep my beloved `ao=alsa1x`.
Top
Dr Evil
n00b
n00b
Posts: 41
Joined: Sun Jan 25, 2004 3:25 am

  • Quote

Post by Dr Evil » Sat Jul 03, 2004 10:22 pm

That I haven't. I keep forgetting about some of those silly conf files. Going to do that right now. Thanks for the reminder!
Top
Post Reply

10 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic