Thanks, I will try to replicate for you this weekend as well and provide the necessaries.
UPDATE: I’ve watched hours of TV today since enabling verbose logging on server and client and haven’t reproduced once when it typically happens to me at least daily…
I think I may have found a solution to this issue - if you go into the Roku settings>Audio>Audio Mode and change it from Auto to Stereo. I was having this issue a lot but that seems to have fixed it. At least, I’ve watched several movies that I know the audio was being transcoded on and they finished fine. Hasn’t been a massive sample size, but I feel good so far. Fingers crossed/YMMV. I just haven’t seen this fix suggested so I thought I’d see if it might work for other people. I have a Roku Streaming Stick and a pretty low-end Insignia 1080p TV for reference.
I’m pretty sure this is not a solution as I have encountered the issue on 3 different Roku devices, all of which are not set to ‘Auto’ for the audio mode. I have had the issue on a TCL Roku TV which uses 5.1 Dolby Digital audio, a Roku Streaming Stick 3800R (2018) which is set to Stereo, and a Roku 3810R (2019) which is also set to Stereo. I’ve narrowed down that the issue only happens when transcoding and seeking within the file. For example, skipping the intro of a TV Episode. I have seen it happen with both HEVC & H264 files, but as previously stated it is inconsistent. I can have the issue with a file and try to recreate it, but it doesn’t happen on a second play through — even when skipping the same section. It’s a very frustrating issue because I can’t seem to find a common cause or similarity as to why it happens other than transcoding and seeking. It’s as if Plex thinks the end of the episode is earlier than it actually is.
@Labrat2012 I also am using stereo as my audio mode on my Roku as that is the only way for the surround to truly work correctly with my Vizio TV and Vizio soundbar system. Problem in Plex only happens if I use seeking and I believe it’s only while it’s transcoding, direct stream seems to work as expected.
@Ridley responses inlined above. Basically, I wanted to watch the end of an episode that I fell asleep to. Playback started from beginning, I seeked to ~14 of 21m, and plex cut off the last 1m 30s of the episode.
So after nearly two weeks of trying to replicate with verbose logging enabled, not a single episode ended early. After upgrading to the latest version last night I noticed that verbose logging was disabled again and figured, “meh, seems to have been resolved” so did not reenable and of course, the one show I watched on the Roku today ended early.
I will try again to find time to replicate with logging enabled…
@spuniun for anything that transcodes, I can consistently reproduce the bug by watching halfway through, exiting, then resuming playback. dunno if that would work for you…I never see the issue if I watch an episode straight through without exiting the player
@Ridley, was my log helpful? sufficient? are more examples from me helpful, or do you need responses from others? do you need client logs, sample files, etc?
@robw83 this issue on roku clients pre-dates the skip intro feature by a number of months. if you’re interested in turning that back on, you might want to start a new thread to try to get more specific attention
Just had a remote user report it had happened. They left it paused so I killed it. They resumed it later and with 3 minutes of the film left it did this. This seems to support it happening when someone pauses or exits it and resumes.
Same issue for me since about January or possibly before. Appears to be about 10% of the show length which is why its different for so many people, also only occurs on a paused show that is then later restarted on a different device or just after the app is killed and resumed much later on the client side.
I have tried all the combinations of buffer size, audio and other logging and can not get any conclusion to the root cause. Its almost as if there is a math error in the transcoder that re-determines a restarted video stream actual length incorrectly.
My parents have experienced a similar issue when watching movies (4Mbps / 720p) from my server. It would cut off about 8-10 minutes before the end of the movie…or right at the climax.
It only happened when watching my server and not my cousin’s. We compared settings and the only difference was I had a value for Terminate Sessions Paused for Longer Than and he didn’t. I turned that functionality off and the issue went away for them. They have watched about 10 movies since then with no issues.
Note that this was with both a Roku Ultra (2019 -wired) and a Roku Premier (2016 -wireless). I’m not sure if the same issue exists with TV shows as they haven’t watched any TV shows from my server.
This issue has become 100% reproducible for me under the conditions already shared by everyone: transcoded stream resumed from somewhere after the beginning of the episode/film will now always terminate a few minutes prior to the end of the content. I finally put in the effort to collect verbose logs for you:
Hopefully these additional details help track down the problem as it certainly seems to be rather widespread based on these forums and it’s getting beyond annoying at this point.
plex, can we please get an update? Reports on this started in November and I’ve only seen one staff response in all that time. Does anyone know any staff to @ ?
I can also replicate this bug 100% of the time. If I resume a show and it’s transcoded it will cut off minutes from the end. This only happens with my roku express 3900x but it happens literally every time.