LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-02-2011, 04:11 PM   #1
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Rep: Reputation: 15
A/V playback stuttery and getting worse - how to troubleshoot? (ubuntu 10.10)


I've been having a problem with intermittent stuttering in video and audio playback since upgrading to Maverick (it also happened when I briefly installed Lucid). It started out as the odd skip every 20 minutes or so but now it can happen 5 or 6 times in 10 minutes when watching a film.

I've tried:

reformatting and clean installing
using a half-dozen players
installing every codec I could think of (only after the normal ones wouldn't help)
diangosing my 3 hard drives (the problem occurs on them all and they're not in a RAID setup)
changing then changing back my video drivers
disabling pulseaudio and ubuntuone-sync (these were not installed in my previous, working setup)
looking at every relevant log file (mplayer, smplayer, demsg...) I know of
running ubuntu's testing utilities

I'm out of ideas. Going back to Jaunty is the only solution I'm pretty sure will work but it's not exactly ideal. It will be a few months at least before I'm able to install a completely new distro.
 
Old 01-02-2011, 09:57 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Playback problem "Sound Skipping"
https://bugs.launchpad.net/ubuntu/+s...0?comments=all

Workaround is to open:
/etc/pulse/default.pa

Find the line that looks like this and add "tsched=0".


Code:
load-module module-udev-detect
change to
Code:
load-module module-udev-detect tsched=0
Then logout and back in.
 
Old 01-03-2011, 08:47 AM   #3
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
Will this have any effect with pulseaudio disabled?
 
Old 01-03-2011, 02:52 PM   #4
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
No, this file does not exist on my system.
 
Old 01-04-2011, 09:42 AM   #5
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
Anyone else got any suggestions at all?
 
Old 01-04-2011, 03:39 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Make sure the cable is good.

Watch CPU usage, is it high when playing ?

Try a different I/O scheduler (deadline), try a different filesystem.

If you use JFS, use deadline.

Code:
echo deadline > /sys/block/sda/queue/scheduler

Last edited by H_TeXMeX_H; 01-04-2011 at 03:41 PM.
 
Old 01-05-2011, 02:27 AM   #7
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
The three cables seem fine.
I've tried to monitor CPU usage during playback but it's hard to predict exactly when the problem will occur and by the time I switch over to top it's too late. Is there a more useful alternative that shows CPU spikes over a period of several minutes?

I don't understand what you mean by an I/O scheduler. I'm using ext3 on all hard drives currently.
 
Old 01-06-2011, 09:26 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Maybe a graphical cpu monitor, like gkrellm, conky, or I think XFCE comes with one.

I/O scheduler manages disk access, and it is important which filesystem you use it with (at least for JFS).
http://en.wikipedia.org/wiki/I/O_scheduling
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CD Audio Playback (Ubuntu 9.04) Bill Gates 666 Linux - General 2 10-21-2009 02:31 PM
no sound playback or video playback..on ubuntu 8.10 thelastquincy Linux - Newbie 3 04-20-2009 11:14 PM
DVD Playback in Ubuntu 8.10 msuleyman Linux - Newbie 3 03-14-2009 07:09 PM
Mp3 playback ubuntu khdani Linux - Newbie 3 10-14-2008 11:33 AM
Dvd playback at ubuntu 7.04 FunkyChicken Linux - Software 2 07-08-2007 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration