Intermittant playback errors

Hi,

I am running plex media server Version 1.30.1.6562 on a raspberry pi. I have been trying to watch family guy and it goes for a few minutes then i get a message on my roku saying the server is not powerful enough to playback the hvec videos.

on my roku i have the plex app settings of direct stream set to on. direct play I have tried in auto force and disable.

Attached are my logs
Plex Media Server Logs_2023-08-19_21-06-36.zip (3.1 MB)

I have updated my server to Version 1.32.5.7349.

if you have any advice as per my logs it would be greatly appreciated.

You’d have to check and see what that particular model of raspi is capable of in terms of codecs, but as far as I know most systems need to transcode HVEC since it isn’t natively supported in PMS for direct stream. The raspi won’t be nearly powerful enough to transcode HVEC, the client/player would need to support HVEC so PMS doesn’t need to transcode and can direct play the media.

Plex has no ARMv8 HW hardware transcoding support.

When PMS was originally ported to ARMv8, we tested its capabilities.

We found it’s good for for about 20 Mbps of 1080p software transcoding (total throughput)

It can DirectStream (audio transcode only) a few more but DirectPlay is the optimal playback mode.

The Roku has a unique streaming protocol and, as such, often requires more videos be transcoded than other players.

Only the newer players have better compatibility with HEVC (4800-X for example)

Hi Chuck,

Well I updated my plex server on the raspberry pi to Version 1.32.5.7349. Everything plays in my libraries. Just when I start watching 1 tv show do i get buffering errors ever now and then.

can you please take a look at my recent logs that show something going on.

in the past if you might remember i had a hard time playing king of queens they were hevc videos and you had me put direct play to force and they worked after that.

the current videos are of family guy and im not really sure the type of file it is(I think theres a cmd in terminal i can use to determine this.

Nonetheless my logs are attached and it will or should show my buffering error(they are not showing as transcoding errors).

on my roku plex app I have it set as local and remote both to 2Mbps.

[Plex Media Server Logs_2023-08-21_19-18-28.zip|attachment]

(upload://6gpeUNLjAZeO0RE0uMPiYblNsYJ.zip) (2.8 MB)

be it as i re read your msg earlier should i shut off trancoding on my server. I really dont see why bc my other cideos play just fine. At least since the last time i tried it.

-Steve

You did not allow the upload to complete before hitting “Reply”

I get an empty link.

Please retry. Wait for the converted URL to show in your reply window before hitting “Reply” button

If you used email - that will not work.
The forum does not accept email attachments (potential disallowed content)

Hello Chuck,

I shut off trancoding on the rp server of plex, so far so good. Will try watching a full episode tommorow and see if it does that buffering every now and then.

When you reply on this forum i get notified by email. can i respond by email too to this thread?

my raspberry pi 4 is a rp 4 model B 4GB of ram with an ARM v 7 processor quad core.

Anyways heres my logs.
Plex Media Server Logs_2023-08-21_21-02-35.zip (2.8 MB)

Here, you see it transcoding HEVC to H264 .

In a nuthshell “Not going to happen” . The ARMv7 doesn’t come close to transcoding HEVC.

ARMv8 can’t do it either.

Aug 20, 2023 17:57:17.599 [2955965296] DEBUG - [Req#17a/Transcode/Req#17d] Selecting best audio stream for part ID 4972 (language: )
Aug 20, 2023 17:57:17.599 [2955965296] DEBUG - [Req#17a/Transcode/Req#17d] Audio Stream: 10994, Subtitle Stream: 0
Aug 20, 2023 17:57:17.605 [2955965296] DEBUG - [Req#17a/Transcode] MDE: Selected protocol http; container: mkv
Aug 20, 2023 17:57:17.605 [2955965296] DEBUG - [Req#17a/Transcode] MDE: analyzing media item 4972
Aug 20, 2023 17:57:17.605 [2955965296] DEBUG - [Req#17a/Transcode] MDE: E5 - A Hero Sits Next Door: Direct Play is disabled
Aug 20, 2023 17:57:17.605 [2955965296] DEBUG - [Req#17a/Transcode] MDE: E5 - A Hero Sits Next Door: no direct play video profile exists for http/mkv/hevc
Aug 20, 2023 17:57:17.605 [2955965296] DEBUG - [Req#17a/Transcode] MDE: E5 - A Hero Sits Next Door: no direct play video profile exists for http/mkv/hevc/ac3
Aug 20, 2023 17:57:17.605 [2955965296] DEBUG - [Req#17a/Transcode] A Hero Sits Next Door - video.width limitation applies: 1920 > 1024
Aug 20, 2023 17:57:17.605 [2955965296] DEBUG - [Req#17a/Transcode] MDE: E5 - A Hero Sits Next Door: Direct Streaming is disabled, so video stream will be transcoded
Aug 20, 2023 17:57:17.605 [2955965296] DEBUG - [Req#17a/Transcode] MDE: E5 - A Hero Sits Next Door: no remuxable profile found, so video stream will be transcoded
Aug 20, 2023 17:57:17.605 [2955965296] DEBUG - [Req#17a/Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations
Aug 20, 2023 17:57:17.606 [2955965296] DEBUG - [Req#17a/Transcode] MDE: Cannot direct stream audio stream due to codec ac3 when profile only allows aac
Aug 20, 2023 17:57:17.606 [2955965296] DEBUG - [Req#17a/Transcode] MDE: Family Guy - S1 E5 - A Hero Sits Next Door: selected media 0 / 4972
Aug 20, 2023 17:57:17.606 [2955965296] DEBUG - [Req#17a/Transcode] Streaming Resource: Required bandwidth unknown (media requires deep analysis) Changing decision parameters provided by client to fit bandwidth limit of 2000kbps
Aug 20, 2023 17:57:17.606 [2955965296] DEBUG - [Req#17a/Transcode] Streaming Resource: Determining preferred transcode encoders through transcode only decision.
Aug 20, 2023 17:57:17.608 [2955965296] DEBUG - [Req#17a/Transcode] Streaming Resource: Reducing playback quality for 1904kbps stream bitrate: video resolution to 1024x576, audio channels to 2, quality to 0
Aug 20, 2023 17:57:17.608 [2955965296] DEBUG - [Req#17a/Transcode] MDE: Selected protocol http; container: mkv
Aug 20, 2023 17:57:17.608 [2955965296] DEBUG - [Req#17a/Transcode] MDE: analyzing media item 4972
Aug 20, 2023 17:57:17.608 [2955965296] DEBUG - [Req#17a/Transcode] MDE: E5 - A Hero Sits Next Door: Direct Play is disabled
Aug 20, 2023 17:57:17.609 [2955965296] DEBUG - [Req#17a/Transcode] MDE: E5 - A Hero Sits Next Door: no direct play video profile exists for http/mkv/hevc
Aug 20, 2023 17:57:17.609 [2955965296] DEBUG - [Req#17a/Transcode] MDE: E5 - A Hero Sits Next Door: no direct play video profile exists for http/mkv/hevc/ac3
Aug 20, 2023 17:57:17.609 [2955965296] DEBUG - [Req#17a/Transcode] A Hero Sits Next Door - video.width limitation applies: 1920 > 1024
Aug 20, 2023 17:57:17.609 [2955965296] DEBUG - [Req#17a/Transcode] A Hero Sits Next Door - audio.channels limitation applies: 6 > 2
Aug 20, 2023 17:57:17.609 [2955965296] DEBUG - [Req#17a/Transcode] MDE: E5 - A Hero Sits Next Door: Direct Streaming is disabled, so video stream will be transcoded
Aug 20, 2023 17:57:17.609 [2955965296] DEBUG - [Req#17a/Transcode] MDE: E5 - A Hero Sits Next Door: no remuxable profile found, so video stream will be transcoded
Aug 20, 2023 17:57:17.609 [2955965296] DEBUG - [Req#17a/Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations
Aug 20, 2023 17:57:17.609 [2955965296] DEBUG - [Req#17a/Transcode] A Hero Sits Next Door - audio.channels limitation applies: 6 > 2
Aug 20, 2023 17:57:17.609 [2955965296] DEBUG - [Req#17a/Transcode] MDE: Cannot direct stream audio stream due to profile or setting limitations
Aug 20, 2023 17:57:17.609 [2955965296] DEBUG - [Req#17a/Transcode] MDE: Family Guy - S1 E5 - A Hero Sits Next Door: selected media 0 / 4972
Aug 20, 2023 17:57:17.610 [2955965296] DEBUG - [Req#17a/Transcode] Streaming Resource: Session 0xb095e8a0:1f57ad77e3ad00449e96c6f1bf9a23b5 changed transcode slot usage to used.  Used slots is now 1
Aug 20, 2023 17:57:17.612 [2955965296] DEBUG - [Req#17a/Transcode] Streaming Resource: Reached Decision id=4210 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=4972 part=(id=4972 decision=transcode container=mkv protocol=http streams=(Video=(id=10993 decision=transcode bitrate=1769 encoder=libx264 width=1024 height=576) Audio=(id=10994 decision=transcode bitrate=96 encoder=aac channels=2 rate=48000))))
Aug 20, 2023 17:57:17.617 [2996777840] DEBUG - Completed: [192.168.10.8:44996] 200 GET /video/:/transcode/universal/decision?protocol=http&mediaIndex=0&waitForSegments=1&videoQuality=60&session=1188aca1-569c-4dc0-b56c-752ad9898a65-4&mediaBufferSize=50000&location=lan&directPlay=0&copyts=1&maxVideoBitrate=2000&offset=0&partIndex=0&videoResolution=1024x768&path=%2Flibrary%2Fmetadata%2F4210&directStream=0&hasMDE=1&skipSubtitles=1 (6 live) #17a TLS GZIP 61ms 2683 bytes (pipelined: 6)
Aug 20, 2023 17:57:18.106 [2925609840] DEBUG - Request: [192.168.10.8:45013 (Subnet)] GET /video/:/transcode/universal/start.mkv?protocol=http&mediaIndex=0&waitForSegments=1&videoQuality=60&session=1188aca1-569c-4dc0-b56c-752ad9898a65-4&mediaBufferSize=50000&location=lan&directPlay=0&copyts=1&maxVideoBitrate=2000&offset=1095&partIndex=0&videoResolution=1024x768&path=%2Flibrary%2Fmetadata%2F4210&directStream=0&skipSubtitles=1 (7 live) #162 TLS Signed-in Token (Stevo808) (Roku Streaming Stick+)
Aug 20, 2023 17:57:18.106 [2925609840] DEBUG - [Req#162/Transcode] Found session GUID of 1188aca1-569c-4dc0-b56c-752ad9898a65-4 in session start.
Aug 20, 2023 17:57:18.107 [2925609840] DEBUG - [Req#162/Transcode] TranscodeUniversalRequest: adapting profile with augmentation data: append-transcode-target-codec(type=videoProfile&context=streaming&protocol=http&videoCodec=vp9)+add-limitation(scope=videoCodec&scopeName=vp9&type=upperBound&name=video.bitDepth&value=10&isRequired=false)+add-limitation(scope=videoCodec&scopeName=hevc&type=notMatch&name=video.DOVIProfile&value=5)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=http&type=match&name=video.colorTrc&list=bt709|bt470m|bt470bg|smpte170m|smpte240m|bt2020-10|bt2020-10|smpte2084&isRequired=false)+append-transcode-target-codec(type=videoProfile&context=streaming&protocol=http&videoCodec=hevc)+add-limitation(scope=videoCodec&scopeName=hevc&type=upperBound&name=video.bitDepth&value=10&isRequired=false)+add-limitation(scope=videoCodec&scopeName=h264&type=upperBound&name=video.level&value=41)+add-limitation(scope=videoCodec&scopeName=h264&type=upperBound&name=video.refFrames&value=14&replace=true)+add-limitation(scope=videoAudioCodec&scopeName=mp3&type=upperBound&name=audio.channels&replace=true&value=0)
Aug 20, 2023 17:57:18.108 [2925609840] DEBUG - [Req#162/Transcode] TranscodeUniversalRequest: using augmented profile Roku-7.x
Aug 20, 2023 17:57:18.109 [2925609840] DEBUG - [Req#162/Transcode] Downloading document http://127.0.0.1:32400/library/metadata/4210?checkFiles=1&includeBandwidths=1&offset=1095&X-Plex-Client-Capabilities=videoDecoders%3dh264%7bprofile%3ahigh%26resolution%3a1080%26level%3d41%7d%3baudioDecoders%3daac%7bchannels%3a2%7d&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=1f57ad77e3ad00449e96c6f1bf9a23b5
Aug 20, 2023 17:57:18.138 [2925609840] DEBUG - [Req#162/Transcode/Req#182] We're going to try to auto-select an audio stream for account 1.
Aug 20, 2023 17:57:18.138 [2925609840] DEBUG - [Req#162/Transcode/Req#182] Selecting best audio stream for part ID 4972 (language: )
Aug 20, 2023 17:57:18.138 [2925609840] DEBUG - [Req#162/Transcode/Req#182] Audio Stream: 10994, Subtitle Stream: 0
Aug 20, 2023 17:57:18.142 [2925609840] DEBUG - [Req#162/Transcode] Cleaning directory for session 1188aca1-569c-4dc0-b56c-752ad9898a65-4 ()
Aug 20, 2023 17:57:18.142 [2925609840] DEBUG - [Req#162/Transcode] Starting a transcode session 1188aca1-569c-4dc0-b56c-752ad9898a65-4 at offset -1.0 (state=3)
Aug 20, 2023 17:57:18.144 [2925609840] DEBUG - [Req#162/Transcode] [Universal] Using local file path instead of URL: /home/media/2_TB_RHDD/Plex/tv series/Family Guy - Season 1/Family Guy - S01E05 - A Hero Sits Next Door (Uncensored + PEZ Scene).mkv
Aug 20, 2023 17:57:18.145 [2925609840] DEBUG - [Req#162/Transcode/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/8217c1c-4578-linux-armv7neon/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 hevc -codec:1 ac3 -ss 1095 -analyzeduration 20000000 -probesize 20000000 -i "/home/media/2_TB_RHDD/Plex/tv series/Family Guy - Season 1/Family Guy - S01E05 - A Hero Sits Next Door (Uncensored + PEZ Scene).mkv" -filter_complex "[0:0]scale=w=1024:h=576:force_divisible_by=4[0];[0]format=pix_fmts=yuv420p|nv12[1]" -map "[1]" -codec:0 libx264 -crf:0 24 -maxrate:0 1769k -bufsize:0 3538k -r:0 23.809999999999999 -preset:0 veryfast -level:0 4.1 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -filter_complex "[0:1] aresample=async=1:ochl='stereo':rematrix_maxval=0.000000dB:osr=48000[2]" -map "[2]" -metadata:s:1 language=eng -codec:1 aac -b:1 96k -f segment -segment_format matroska -segment_format_options live=1 -segment_time 1 -segment_header_filename header -segment_start_number 0 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/1188aca1-569c-4dc0-b56c-752ad9898a65-4/70470ff3-e23c-4276-af44-8001a7f6f96d/manifest?X-Plex-Http-Pipeline=infinite" -segment_list_type csv -segment_list_unfinished 1 -segment_list_size 5 -segment_list_separate_stream_times 1 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 "chunk-%05d" -start_at_zero -copyts -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/1188aca1-569c-4dc0-b56c-752ad9898a65-4/70470ff3-e23c-4276-af44-8001a7f6f96d/progress

Hi Chuck,

Yea last night after i read your message at first i didnt get it. But then i read it backwards and chronigically and i saw the common thread. to disable transcoding.

I did that last night and I watched a full length episode today and everything is fine.

I have been told in other forums in the past to disable trancoding on the pi. I have tried this in the past and it caused more issues.

Thank you very much for the help so far i really appreciate it.

I will let you know if i have any issues going forward. But for now im good.

Have a great day

-Steve

Goood morning Chuck,

Well everything was working well up until today.

Today I was watching an item, it buffered ok. Then i got an error mshg that it couldnt play the item bc direct play was disabled.

So i set direct play as auto it buffered ok, but got an error msg that no audio detected.

So I set direct play to auto, upon playing the video i got the error that it cannot play the item bc direct play is disabled.

I have tried all different combinations of direct play settings and to no avail.

Clearly when i set it to auto i get a false message that it is disabled.

ohh does direct stream need to be on, bc it was on for all these tests.

please advise

May I please have a set of DEBUG logs which captures the

  1. DirectPlay = Auto
  2. error playing because directplay is disabled

(Also, which player ?)

Hi Chuck,

Thanks for getting back to me so quickly.

I have a roku streaming stick plus with the plex app. I havetried plaing my videos using direct play in force, auto and disable. I have direct stream enabled. with direct play in force mode it buffers but no audio error message. In disabled mode for direct play it doesnt work. if i set it as direct play as auto i get an error that i still have it disabled so it does not play.

Attached are my logs i hope this suffices.
Plex Media Server Logs_2023-08-23_14-06-39.zip (2.3 MB)

Hi Chuck,
I think i figured it out.

I was watching other stuff on my plex and everything else requires direct play on auto or force. So I deduced direct play has to stay on so I skipped that one episode as it was corrupt of somesort and everything else plays.

am i right to say if some videos if you have direct play on auto or force and you get an error saying it is disabled that itself is a corrupt copy of the video.

If you have it on Auto then it will do what’s needed but a bad video makes it unpredictable.

If you have it on Force, and you know the content is DirectPlay 100% compatible, then it’s definitely damaged somewhere. The server won’t know (unless you look through all the Scheduled Task logs).

Hi Chuck,

Thanks I think were getting somewhere.

I hav a lot of videos on my plex server on my rp4.

Assuming non of my videos are corrupt. What setting should i have for direct play and direct stream for all my videos to play.

Why do some require direct play as force??

Hi Chuck,

Its ok i remember now.

seems my videos were corrupt which would explain why i got that false error msg saying direct play was disabled when it wasnt.

thank you for your help.

-Steve

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.