Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Milisecond lag on ncmpcpp (and other media players)
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
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Tue Jul 29, 2014 8:22 pm    Post subject: Milisecond lag on ncmpcpp (and other media players) Reply with quote

Randomly while listening to music on ncmpcpp I will get a short lag then the music resumes again. The music is music stored on the computer's local /home partition.

Last edited by MarioMaster100 on Thu Oct 09, 2014 9:14 pm; edited 3 times in total
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Wed Jul 30, 2014 6:03 pm    Post subject: Reply with quote

It appears to be not just an ncmpcpp issue but a vlc one as well :(
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Wed Jul 30, 2014 8:35 pm    Post subject: Reply with quote

Hmm haven't experienced it yet in moc but then again https://forums.gentoo.org/viewtopic-t-996254-highlight-.html plus ncmpcpp has more features.
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Thu Jul 31, 2014 12:26 am    Post subject: Reply with quote

3 lags/skips on one song on ncmpcpp is not cool O_O
Back to top
View user's profile Send private message
swathe
n00b
n00b


Joined: 04 Jul 2011
Posts: 73

PostPosted: Thu Jul 31, 2014 12:34 am    Post subject: Reply with quote

Any other audio issues when say watching a youtube video etc? Perhaps it's a hardware starting to fail issue
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Thu Jul 31, 2014 12:43 am    Post subject: Reply with quote

swathe wrote:
Any other audio issues when say watching a youtube video etc? Perhaps it's a hardware starting to fail issue

So far I haven't had any.
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Thu Jul 31, 2014 1:21 am    Post subject: Reply with quote

When I make music on programs I don't have any sound issues like this either...
Back to top
View user's profile Send private message
netixen
n00b
n00b


Joined: 26 Sep 2013
Posts: 31

PostPosted: Thu Jul 31, 2014 4:20 am    Post subject: Reply with quote

Issues where something is misbehaving but not completely failing are difficult to diagnose. Especially with so little information at hand.
So I can give you some general advice and hopefully point you in the right direction. Here's what I would do in your shoes:
1. Check your /var/log/{messages,syslog,dmesg,} for problems
2. Update
2. run the software with all --verbose and debug options it has and see if there are warnings or errors, etc.
3. google for bugs in the software/decoder etc.
4. run the software with strace,ltrace etc.
5. start eliminating variables such as your storage (play from a usb flash drive),
your OS (livecd) and anything suspect of problems.

It's a lot of work but at that point you should know more about the issue.
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Thu Jul 31, 2014 5:19 am    Post subject: Reply with quote

An irc buddy suggested I set hdparm -B 225 /dev/sda and I haven't had it happen since so I think it's solved :)
Back to top
View user's profile Send private message
swathe
n00b
n00b


Joined: 04 Jul 2011
Posts: 73

PostPosted: Thu Jul 31, 2014 5:53 am    Post subject: Reply with quote

Ahh so a drive issue perhaps, is it a 5400rpm drive?
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Thu Oct 09, 2014 9:23 pm    Post subject: Re: Milisecond lag on ncmpcpp (and other media players) Reply with quote

Well I thought I'd solved the issue once and for all (hadn't listened to music for a while on the computer since I've been busy). Well it's still doing it for a while now I've been running the 3.14.14 kernel, which I wasn't running at the original time of the post (I think). Laptop_mode is set to put advanced power management on 50 with hdparm when I run on just battery. If I just run the laptop on AC power with no battery plugged in it's supposed to be on 225.
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Fri Oct 17, 2014 12:03 am    Post subject: Reply with quote

If it helps to know I have powertop and laptop-mode-tools installed but it does this even when I'm just running on AC battery without the battery plugged in.
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Sat Oct 18, 2014 8:56 pm    Post subject: Reply with quote

Hmm strange, I tried out mpv and I played a big chunk of music for an hour or more and no skips/lags whatsoever. I specifically threw in a file or two I knew I had skip on ncmpcpp before. I got a few errors but it didn't interfere with the music playing, things like
Code:
libav/audio] mp3: Header missing
[libav/video] mjpeg: mjpeg: error, decode_app parser read over the end
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Sat Oct 18, 2014 10:48 pm    Post subject: Reply with quote

This could be related to the issue, but it's probably more of a connection issue on pianobar
Code:
[aac @ 0x7fbfb40bde40] Input buffer exhausted before END element found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbfb40c3da0] stream 0, offset 0xaa662: partial file
ao_alsa WARNING: Unable to open surround playback.  Trying default device...
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Wed Oct 29, 2014 1:55 am    Post subject: Reply with quote

Well it is skipping on mpv for some reason, good thing is it only happens once per song if it does and it's still random, doesn't happen on every song.
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