Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
annoying freevo/mplayer speedup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Tue Mar 14, 2006 11:42 am    Post subject: annoying freevo/mplayer speedup Reply with quote

Hi,

I have the following setup:

Attic - one Gentoo fileserver, large hard disk, movie collection exported via NFS
Living room - one Gentoo freevo box, tiny hard disk, movie collection mounted over NFS via ethernet

The problem I have is that when watching movies on the living room box, occasionally (avg. once per hour of viewing) the video speeds up drastically for about 10 seconds, with everyone running around like lunatics. The audio stays fine. Then the video freezes, while the audio catches up with where the video has got to. Then the video starts up again, slow-motion for a couple of seconds until everything is back in sync.... And then it continues fine.

Any ideas why this is happening?
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
~L~
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 154
Location: Finland

PostPosted: Thu Mar 16, 2006 9:59 am    Post subject: Reply with quote

I have the same problem. Although I have only one PC running freevo (on top of kde) on the projector and kde on the monitor. Sound goes through s/pdif. (I have ~amd64 in my make.conf.)

Sorry, that I don't have a solution, but it does not seem like playing the movie from the NFS share is to blame.
Back to top
View user's profile Send private message
bgradid
Apprentice
Apprentice


Joined: 21 Mar 2005
Posts: 162

PostPosted: Sun Apr 02, 2006 1:38 am    Post subject: Reply with quote

I've had the same problem
I thought it was something to do with the fact I was running on a laptop with speedstep
but I've been playing over an NFS share as well
Back to top
View user's profile Send private message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Mon Apr 03, 2006 12:54 pm    Post subject: Reply with quote

bgradid wrote:
I've had the same problem
I thought it was something to do with the fact I was running on a laptop with speedstep
but I've been playing over an NFS share as well


No speedstep on my box, that's not it. Hmmm...
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
ahubu
Guru
Guru


Joined: 16 Aug 2003
Posts: 400
Location: Groningen, The Netherlands

PostPosted: Mon Jun 12, 2006 7:45 pm    Post subject: Reply with quote

You could try to give mplayer the "-cache 8192" parameter somehow (I'm not sure if freevo allows you to add parameters to programs). When watching movies over my wlan it helps a great deal on nfs shares. I used to have stutters, but now it's gone. Another thing that could help is this in your fstab of the freevobox:

Code:
192.168.1.156:/path/to/movies/on/attic                 /mnt/movies             nfs     rw,users,noauto,hard,intr,tcp,retrans=5,rsize=8192,wsize=8192


of course, replace ip address and paths with your own. Either this or the cache or both have resolved my stutters (I did both at the same time ;)). It mounts it read-write so be careful. (ro instead of rw is read-only).

hth,
_________________
Anne // Light travels faster than sound. That's why people appear bright until
you hear them speak.
-Unknown
Back to top
View user's profile Send private message
DooBeDooBeDo
Apprentice
Apprentice


Joined: 21 Aug 2002
Posts: 220
Location: UK

PostPosted: Tue Jun 13, 2006 12:26 pm    Post subject: Reply with quote

My Mythtv box started doing this after I got my DVB stick, it's an EPIA SP1300 (net boot with NFS root, no HD) so pretty low powered. I traced it to happening when mythbackend was getting schedule updates over DVB and was grabbing pretty much all the CPU. I was surprised at how frequently it updated. I changed to getting schedule updates using xmltv and it went back to normal. Don't know if this'll help...
Back to top
View user's profile Send private message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Sun Dec 09, 2007 9:09 pm    Post subject: Reply with quote

Okay, this is still happening, and it's pretty much driving me crazy.

I've been using the same system for a long time, although due to hardware failures and upgrades I've replaced *all* the hardware in the box (gfx, processor, ram, mobo, hdd, psu) and done a complete gentoo/freevo reinstall from scratch.

I've tried playing files locally, and they still cause problems so it's nothing to do with the NFS.

I grab my xml TV listings at night, just as the last poster suggested, and I've tried messing with my cache settings for mplayer, from nocache up to lots.

If it *is* something else hogging the CPU, I don't know what it could be. Nothing else is scheduled to run.

The problem is still the same:
Quote:
The problem I have is that when watching movies on the living room box, occasionally (avg. once per hour of viewing) the video speeds up drastically for about 10 seconds, with everyone running around like lunatics. The audio stays fine. Then the video freezes, while the audio catches up with where the video has got to. Then the video starts up again, slow-motion for a couple of seconds until everything is back in sync.... And then it continues fine.


I'm running freevo under X.
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
ahubu
Guru
Guru


Joined: 16 Aug 2003
Posts: 400
Location: Groningen, The Netherlands

PostPosted: Tue Dec 11, 2007 4:56 am    Post subject: Reply with quote

Hmm, sounds weird. It could still be some cronjob running hourly, or something like that. In addition to your crontab (which you already checked), you could check the cron.d directories in /etc. They contain scripts for various system utilities that might be installed (like that blasted updatedb that brings my whole system down to a crawl at 4am :)). It could for instance be the ntpd daemon which tries to sync the time, but is having a tough job doing so (for instance, over a very slow wlan connection).

Most certainly you won't find anything there (since you probably already checked). Then you could check if it is the cpu by giving mplayer realtime priority. just renice it to -18 (or something like that). An alternative is to emerge the wonderful program "verynice". In the config you can set mplayer as a "priority" application, which will automatically renice it to -4 (or something else, if you wish) at startup.

Furthermore, make sure mplayer is using a hardware-assisted video output driver like xv, xvmc, gl(2). And particularly not x11, since that eats up a lot of cpu (and makes my mediacenter stutter too, athlon 1600+).

In the harddrive department, make sure dma is on with hdparm. But that is almost certainly the case already.

Another possibility that I can think of is that you are (still?) using an incredibly lousy videocard, somethings like a very old pcicard (trident,cirrus) with only 1 or 2mb of ram onboard. That might cause the occasional stutter (and you would be forced into x11 video output in mplayer anyway).

Since you didn't seem to have replaced the soundcard (onboard?), it might be some sound trying to play while you watch the movie, and without hardware mixing and no proper amix settings it might cause a stutter. But I'm reaching out here.

Just trying to give you some ideas, there are probably a lot more small things you could investigate.

Good luck! :roll:
_________________
Anne // Light travels faster than sound. That's why people appear bright until
you hear them speak.
-Unknown
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum