RPi-B, Rasplex .7.1, analog music playback skipping

I have a RPi-B setup via LAN and connected to my speaker bar via analog. I’ve configured Rasplax to output the audio to the speaker and it works however every 10-20 seconds during playback it skips. I’ve tried all sorts of audio settings, running it through HDMI even, and it all skips every few seconds. One 320 MP3 song skips every second. 1080p movie playback is fine, no issues.

My RPi-2 seems fine using Wifi to playback via analog out.

Now there are three posts from you on the same topic!

Regards

I know, my bad there! I didn’t mean to make 2 threads :frowning:

Suggest re flashing card with latest release 0.7.1

See here http://www.rasplex.com/get-started/rasplex-installers.html

See also the Overclock topic, RPi1 B and B+ need to be overclocked

Regards

@NedtheNerd said:
Suggest re flashing card with latest release 0.7.1

See here RasPlex Installers – RasPlex

See also the Overclock topic, RPi1 B and B+ need to be overclocked

Regards

I performed a fresh install and put in the overclock settings, still skips, seems like it takes a touch longer for it to skip though.

@zenithangunn said:
I performed a fresh install and put in the overclock settings, still skips, seems like it takes a touch longer for it to skip though.

The best, stable overclock settings are:

 arm_freq=900
 core_freq=450
 sdram_freq=450
 over_voltage=6

I use these settings on my B+'s without any issue, since you first posted I have successfully played 4 albums, one a 320 kbit/s MP3, one a 256 kbit/s, one a 256 kbit/s M4A, one FLAC.

Note there is an issue, much like your description, only affecting lossless WMA files which has been covered in previous topics

Regards

@NedtheNerd said:
Regards

Just put in the overclock settings, the menus run better but it still skips ever few seconds on music. I’ve tried all kinds of files now. mp3, m4a, etc. m4a skips much less but still does every 20s or so. Movies play fine, no skipping at all including movies with mp3 sound tracks.

Is there anyway I can see what’s causing the skipping? CPU use, access, network speed, etc?

Just another thought, does you TV have an audio out of any description (optical/coax/rca phono)? What type of inputs does your sound bar have?

Preferred method for sound bars is RPi->TV (via HDMI)->Soundbar (optical/coax/rca phono). That way you do not use analogue out.

Regards

@NedtheNerd said:
Just another thought, does you TV have an audio out of any description (optical/coax/rca phono)? What type of inputs does your sound bar have?

Preferred method for sound bars is RPi->TV (via HDMI)->Soundbar (optical/coax/rca phono). That way you do not use analogue out.

Regards

Our TV has an optical audio out which is connected to the sound bar on a separate input. This way audio the TV is getting can be routed to the speaker-bar.

I also hooked analog out on the RPi-B to the speaker bar’s analog input, the thought being when I just want to use the device for music and not have the TV on I could play something on the Rasplex via remote app and it would stream to the speakers over the analog. I ended up turning off all HDMI sound so all sounds were coming out analog for testing. Analog only sound works perfectly for my RPi2 which is hooked up to a monitor and old set of computer speakers which we use all the time.

I don’t get it, everything else seems to stream fine but just music seems to choke it up.

PMS - .9.12.11 running on Synology Diskstation DS415+, server shows music is direct playing when testing

EDIT: To add more confusion to it; I changed the audio to be HDMI only and sure enough, it still skipped. Doesn’t seem to matter if it’s analog or HDMI music playback skipped. Tried turning off the visualization (set to none) and slideshow feature with no changes.

I’m going to have to try to replicate your setup now I know what it is.

Regards

@NedtheNerd said:
I’m going to have to try to replicate your setup now I know what it is.

Regards

Thank you, I appreciate the assist and your time. You’ve helped me out a couple of times now :slight_smile:

Edit: I unplugged the analog so it was just HDMI video/audio to the TV and it still skipped during playback of music files

Same here :frowning:

@zenithangunn said:
Edit: I unplugged the analog so it was just HDMI video/audio to the TV and it still skipped during playback of music files

Sorry, haven’t got round to replicating this, hopefully over the next couple of days.

Regards

Thanks for your help. Would be awesome. Everything is running fine except the mp3 files… wich is bad because i use rasplex for the good night storys :slight_smile: and every 15 sec i got a hang in the playback. With other apps or webbrowser its working fine. Only Rasplex does this.

I seem to have a similar issue with audio skipping, ive a similar setup where I want to use it headless and connected via the analogue to a old amplifier.

According to this http://raspberryalphaomega.org.uk/2013/02/06/automatic-raspberry-pi-board-revision-detection-model-a-b1-and-b2/ I have a 0xe (Rev2 Model B, 512MB RAM) model, and it seems to skip whenever I play music.

After turning on debug logging every pause seems to happen when a “CSoftAEStream::GetFrame - Underrun” message appears.

22:35:19 T:1865413712 INFO: NetworkServiceBrowser: SERVICE updated: 192.168.0.5
22:35:26 T:1969979392 DEBUG: CPlexTimelineManager::ReportProgress updating server: (playing) A Thing Called Love [19626/222275]
22:35:26 T:1823470672 DEBUG: CPlexFile::BuildHTTPURL translated ‘plexserver://0822736c3ce31e47ef434b4d173ae6739474b683/:/timeline?containerKey=%2fplayQueues%2f1175&duration=222275&guid=local%3a%2f%2f24801%2f2&key=%2flibrary%2fmetadata%2f24803&playQueueItemID=5972&playQueueVersion=1&ratingKey=24803&state=playing&time=19626’ to ‘http://192.168.0.5:32400/:/timeline?containerKey=%2FplayQueues%2F1175&duration=222275&guid=local%3A%2F%2F24801%2F2&key=%2Flibrary%2Fmetadata%2F24803&playQueueItemID=5972&playQueueVersion=1&ratingKey=24803&state=playing&time=19626
22:35:26 T:1823470672 DEBUG: CurlFile::Open(0x4f98b44) http://192.168.0.5:32400/:/timeline?containerKey=%2FplayQueues%2F1175&duration=222275&guid=local%3A%2F%2F24801%2F2&key=%2Flibrary%2Fmetadata%2F24803&playQueueItemID=5972&playQueueVersion=1&ratingKey=24803&state=playing&time=19626
22:35:31 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:35:36 T:1969979392 DEBUG: CPlexTimelineManager::ReportProgress updating server: (playing) A Thing Called Love [28674/222275]
22:35:36 T:1693803600 DEBUG: CPlexFile::BuildHTTPURL translated ‘plexserver://0822736c3ce31e47ef434b4d173ae6739474b683/:/timeline?containerKey=%2fplayQueues%2f1175&duration=222275&guid=local%3a%2f%2f24801%2f2&key=%2flibrary%2fmetadata%2f24803&playQueueItemID=5972&playQueueVersion=1&ratingKey=24803&state=playing&time=28674’ to ‘http://192.168.0.5:32400/:/timeline?containerKey=%2FplayQueues%2F1175&duration=222275&guid=local%3A%2F%2F24801%2F2&key=%2Flibrary%2Fmetadata%2F24803&playQueueItemID=5972&playQueueVersion=1&ratingKey=24803&state=playing&time=28674
22:35:36 T:1693803600 DEBUG: CurlFile::Open(0x4f98b44) http://192.168.0.5:32400/:/timeline?containerKey=%2FplayQueues%2F1175&duration=222275&guid=local%3A%2F%2F24801%2F2&key=%2Flibrary%2Fmetadata%2F24803&playQueueItemID=5972&playQueueVersion=1&ratingKey=24803&state=playing&time=28674
22:35:37 T:1969979392 INFO: CheckIdle - Closing session to http://192.168.0.5 (easy=0x6379e350, multi=0x5c3efc48)
22:35:46 T:1969979392 DEBUG: CPlexTimelineManager::ReportProgress updating server: (playing) A Thing Called Love [38725/222275]

Ive got the overclocking as recommended, tried forcing transcoding but had no joy. Any ideas what I should tweak? This happens far too often for my liking.

RasPlex:~/.plexht/temp # grep Underrun plexhometheater.log
22:13:24 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:13:37 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:13:44 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:13:52 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:14:07 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:14:21 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:14:34 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:14:46 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:14:58 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:15:16 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:15:55 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:16:27 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:16:46 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:16:57 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:17:22 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:26:44 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:27:19 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:27:33 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:29:07 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:31:52 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:32:03 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:32:14 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:32:26 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:32:58 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:33:34 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:33:48 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:33:57 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:34:11 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:34:32 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:34:40 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:34:51 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:35:31 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun
22:35:57 T:1907356752 DEBUG: CSoftAEStream::GetFrame - Underrun

@zenithangunn @kampfkarnickel @twm77 If you can share any sample files that suffers from skipping it would be very helpful.

@Kwiboo I assume you mean the audio file that I’m streaming? (sent link via PM)

@kampfkarnickel @twm77

Just a thought, ‘Audio output’ should always be set to ‘HDMI’ and ‘Audio output device’ should be set to ‘HDMI and Analogue’ or just ‘Analogue’

Hi Ned, I played with those settings earlier, and I just verified that they are set as you said, but I still experience skipping.
I’m happy to gather logs or perform other debug, let me know what would be useful.

I don’t believe its a network connectivity issue as my SSH session never hangs, to either the PMS or the RPI and the media plays fine on other devices (using plex app on my phone/tablet/tv).

Anecdotally I do believe the skipping is worse when the RPI isn’t in the preferences menu, but its still not 100% even in the menu.

CPU load and memory look good too while the skipping is happening.

RasPlex:~/.plexht/temp # cat /proc/loadavg
0.72 0.78 0.82 1/97 620
RasPlex:~/.plexht/temp # head /proc/meminfo
MemTotal: 309664 kB
MemFree: 37784 kB
MemAvailable: 103952 kB
Buffers: 15732 kB
Cached: 92720 kB
–snip–

@twm77 Correct, the audio file you are streaming. As @NedtheNerd mentions earlier we have only been able to reproduce skipping with wma lossless files.