If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

PlexAmp Win7 playback stutters

r100gsr100gs Posts: 41Members, Plex Pass, TunerTester Plex Pass
edited February 6 in Plex Labs

Hello,

I use plexamp at work on my win7 pc over internet connected to my local pc. Network upload of my internet connection is 667kbit/s
Playing starts fine but after a while playback stutters. If I switch to a new title it starts ok but than stutters again.

Playback from browser is fine all the time on same machine.

Best regards,
Stefan

Edit: seems to be a problem releated to this topic:
https://forums.plex.tv/discussion/300108/plexamp-bandwidth-usage

Tagged:

Answers

  • Dale LovingoodDale Lovingood Posts: 32Members, Plex Pass Plex Pass

    I'm seeing this same issue. I am also using a Windows 7 PC at work. Web client playback never begins stuttering.

  • majormojomajormojo Posts: 2Members, Plex Pass Plex Pass

    Experiencing the same issue with plexamp 1.0.2 on MacOS 10.13.3. Seems to be related to buffering, because pausing the track for a few seconds and then playing will usually resolve the issue (for that track).

  • elanelan CTO and Co-founder MauiPosts: 6,978Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    There's clearly something we're missing, as many of us listen all day, and never experience this issue... we'll keep reading and try to figure out what the common factors are.

    instagram @elan // the wife's photography site.
    the Medium page // the dog's twitter feed.

  • Dale LovingoodDale Lovingood Posts: 32Members, Plex Pass Plex Pass

    I’ve never experienced this problem at home on an iMac (local playback), but it happens 100% of the time at work (remote playback from the same library). For me, it begins stuttering anywhere from 1-3 hours into a continuous, non-paused playback session. Plexamp also seems to disconnect from the playlist until restarted. Sometimes after restart it will pick up the playlist automatically and other times I have to choose a playlist again. Is there a log that might point to what’s happening?

  • elanelan CTO and Co-founder MauiPosts: 6,978Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    OK, most of the time I'm locally playing back, so that might indicate some of the difference. Definitely check Server.log and Application.log for anything suspicious. Also curious as to whether:

    • If you stop and start a new PQ, does that fix?
    • If you kill the mpd process and then start a PQ, does that fix?

    Those two questions should help identify the culprit.

    instagram @elan // the wife's photography site.
    the Medium page // the dog's twitter feed.

  • Dale LovingoodDale Lovingood Posts: 32Members, Plex Pass Plex Pass
    edited February 26

    @elan said:

    • If you stop and start a new PQ, does that fix?
    • If you kill the mpd process and then start a PQ, does that fix?

    I finally had time to do some testing this morning.

    • While stuttering, if I stop playback and begin a new play queue, the new play queue also stutters immediately.
    • While stuttering, if I kill the mpd.exe process, the play queue ends and mpd.exe is respawned. If I begin a new play queue (without restarting Plexamp), the new play queue also stutters immediately.

    So far, the only way I've found to eliminate the stuttered playback (for a while) is to completely close and restart Plexamp.

    As for the logs: At the time playback begins stuttering, Server.log seems to continue with normal debug playback messages every 6 seconds (HTTP: Issuing request to https:// ... /timeline?state=playing&duration=...&time=...).

    Application.log might provide a clue, though: At about the time stuttering began this morning, there were warning messages about loss of connection to my Plex server (an iMac) for more than 5 seconds. The log also listed connection failures for my other Plex client devices (none of which had the Plex app open).

    UPDATE: The next time playback began stuttering, there were no messages about loss of connection. After closer inspection, I believe the connection warning messages occur after restarting Plexamp, not at the time stuttering begins.

    @elan, I can PM the logs to you, if it would help.

    UPDATE 2: The next time playback began stuttering, I was tailing both logs and looked at them immediately. The Application.log added nothing to signify a problem. Server.log didn't either -- it just continued to add "Issuing request" messages every 6 seconds.

    UPDATE 3: And the next time playback began stuttering, I paused the playback, waited a few seconds, and pressed play again. The play queue then exited completely and waited for me to select another playlist, artist, etc.

    Server.log file issued these errors and warnings:
    Feb 26, 2018 15:13:24 DEBUG - GET /player/playback/pause?commandID=3219 200 2 - 0.724 ms
    Feb 26, 2018 15:13:24 DEBUG - State changed from playing to paused
    Feb 26, 2018 15:13:24 DEBUG - HTTP: Issuing request to https://[ip address]:13556/:/timeline?state=paused&duration=311928&time=269653&playQueueItemID=132710&key=%2Flibrary%2Fmetadata%2F42068&ratingKey=42068&playQueueID=5073&playQueueVersion=1&containerKey=%2FplayQueues%2F5073&hasMDE=1
    Feb 26, 2018 15:13:33 DEBUG - GET /player/playback/play?commandID=3226 200 2 - 0.586 ms
    Feb 26, 2018 15:13:37 ERROR - [MPD] Error connecting:Error: write ECONNRESET
    Feb 26, 2018 15:13:37 DEBUG - Lost connection to MPD, reconnecting
    Feb 26, 2018 15:13:37 ERROR - [MPD] Error getting status! This socket is closed
    Feb 26, 2018 15:13:37 ERROR - [MPD] Error getting status! This socket is closed
    Feb 26, 2018 15:13:37 ERROR - [MPD] Error getting status! This socket is closed
    Feb 26, 2018 15:13:37 ERROR - [MPD] Error getting status! This socket is closed
    Feb 26, 2018 15:13:37 ERROR - [MPD] Error getting status! This socket is closed
    Feb 26, 2018 15:13:38 INFO - [MPD] Connecting...
    Feb 26, 2018 15:13:38 INFO - [MPD] Ready!
    Feb 26, 2018 15:13:38 DEBUG - GET /proxy/file.mp3?source=[alphanumeric string]&endpoint=%2Flibrary%2Fparts%2F44395%2F1236048802%2Ffile.mp3%3Fdownload%3D1%26X-Plex-Client-Identifier%[alphanumeric string]%26X-Plex-Session-Identifier%[alphanumeric string] 200 5924196 - 174.374 ms
    Feb 26, 2018 15:13:38 DEBUG - PROXY: Stream got closed after sending 5422044 bytes.
    Feb 26, 2018 15:13:38 DEBUG - State changed from paused to stopped
    Feb 26, 2018 15:13:38 DEBUG - HTTP: Issuing request to https://[ip address]:13556/:/timeline?state=stopped&duration=311928&playQueueItemID=132710&key=%2Flibrary%2Fmetadata%2F42068&ratingKey=42068&playQueueID=5073&playQueueVersion=1&containerKey=%2FplayQueues%2F5073&hasMDE=1
    Feb 26, 2018 15:13:38 DEBUG - PlayQueue: Skipping audio update for NaN, it was too old.
    Feb 26, 2018 15:18:24 WARN - [POWER] Turning power off!
    `Feb 26, 2018 15:18:38 WARN - [POWER] Turning power off!``

    Application.log looks uninteresting in the same time period:
    Feb 26, 2018 15:13:24.111 INFO - POWER: Enabling power save mode.
    Feb 26, 2018 15:13:24.129 INFO - Requesting /player/playback/pause?commandID=3219 from player Local.
    Feb 26, 2018 15:13:24.129 INFO - HTTP: Issuing request to http://127.0.0.1:20000/player/playback/pause?commandID=3219
    Feb 26, 2018 15:13:33.303 INFO - POWER: Disabling power save mode.
    Feb 26, 2018 15:13:33.316 INFO - Requesting /player/playback/play?commandID=3226 from player Local.
    Feb 26, 2018 15:13:33.316 INFO - HTTP: Issuing request to http://127.0.0.1:20000/player/playback/play?commandID=3226
    Feb 26, 2018 15:13:33.364 INFO - POWER: Enabling power save mode.
    Feb 26, 2018 15:13:38.342 INFO - HTTP: Issuing request to https://[ip address]:13556/hubs/sections/5?count=4&includeLibraryPlaylists=1&includeStations=1&excludeFields=summary
    Feb 26, 2018 15:13:38.343 INFO - POWER: Enabling power save mode.
    After the play queue was flushed when attempting to pause and play, the stuttering went away without having to restart Plexamp. At least temporarily.

    UPDATE 4: Very similar Server.log messages were produced the next time stuttered playback began, and pause/play again flushed the play queue, allowing playback without stuttering for a time.

    UPDATE 5: Same thing again. This is very repeatable. Plexamp is losing connection to MPD (the socket is getting closed).

    UPDATE 6: I took a look at the log.log file in %appdata%\local\programs\plexamp and noticed that when the stuttering begins, log.log starts filling up with 3-6 entries each second repeating the replay gain until playback is stopped:
    Feb 26 15:13:22: replay_gain: scale=0.904690
    Feb 26 15:13:22: replay_gain: scale=0.904690
    Feb 26 15:13:22: replay_gain: scale=0.904690
    Feb 26 15:13:22: replay_gain: scale=0.904690
    Feb 26 15:13:22: replay_gain: scale=0.904690
    Feb 26 15:13:22: replay_gain: scale=0.904690
    Feb 26 15:13:23: replay_gain: scale=0.904690
    Feb 26 15:13:23: replay_gain: scale=0.904690
    Feb 26 15:13:23: replay_gain: scale=0.904690
    Feb 26 15:13:23: replay_gain: scale=0.904690
    Feb 26 15:13:23: replay_gain: scale=0.904690
    I tried to remove logging by editing the mpd.conf file, but everything I tried resulted in Plexamp not starting playback at all (even after a restart). I guess the logfile is required.

Sign In or Register to comment.