ChuckPa
December 17, 2022, 9:41pm
22
I see transcoding access denied.
Dec 17, 2022 21:16:56.125 [0x7f141ac1db38] DEBUG - [Req#512a/Transcode] Streaming Resource: Added session 0x7f1422cb11d8:74reawevaugqr529yly58h9j
Dec 17, 2022 21:16:56.125 [0x7f141ac1db38] DEBUG - [Req#512a/Transcode] Streaming Resource: Reached Decision id=105135 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=178521 part=(id=226757 decision=transcode protocol=http streams=(Subtitle=(id=1082655 decision=copy languageCode=fra location=embedded))))
Dec 17, 2022 21:16:56.125 [0x7f141ac1db38] WARN - [Req#512a/Transcode] Denying access due to session lacking permission to transcode key /library/metadata/105135
Dec 17, 2022 21:16:56.126 [0x7f141ac1db38] DEBUG - Request: [127.0.0.1:33322 (Loopback)] PUT /video/:/transcode/session/hi78g3xvil01wcdiay3uh0c1/7fc84dbe-2e48-42dc-a6d3-3f367b1cb266/progress?status=startup (67 live) #512b Signed-in Token (Tabouret) (range: bytes=0-)
Dec 17, 2022 21:16:56.126 [0x7f141ac1db38] DEBUG - Request: [212.68.222.244:59716 (WAN)] GET /media/providers?includePreferences=1 (67 live) #5163 TLS GZIP Signed-in Token (flying_fox)
Dec 17, 2022 21:16:56.135 [0x7f142767c0d0] DEBUG - [com.plexapp.plugins.WebTools] Killing.
SRT embedded subtitles. Can you disable subtitles to see if the HW transcoding enables?
Dec 17, 2022 21:07:08.266 [0x7f1414dcab38] DEBUG - [Req#3c93/Transcode] TPU: hardware transcoding: final decoder: , final encoder:
Dec 17, 2022 21:07:08.266 [0x7f1414dcab38] DEBUG - [Req#3c93/Transcode/JobRunner] Job running: EAE_ROOT=/tmp/pms-c4765657-56f9-4f2f-ac27-ad3b6f8c316a/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/2427c16-4396-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx4817-bafc-e4da0b46aee0 "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 hevc -codec:1 truehd_eae -eae_prefix:1 hi78g3xvil01wcdiay3uh0c1_ -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i "/data/video/Films/Top Gun Maverick (2020)/Top Gun Maverick (2022) - (tt1745960)[IMAX][TRUEFRENCH MULTi][FR+EN][TRUEHD ATMOS 7.1][HDR][x265][Bluray-2160p] -QTZ.mkv" -map 0:0 -codec:0 copy -filter_complex "[0:1] aresample=async=1:ochl='7.1':rematrix_maxval=0.000000dB:osr=48000[0]" -map "[0]" -metadata:s:1 language=fra -codec:1 eac3_eae -eae_prefix:1 hi78g3xvil01wcdiay3uh0c1_ -b:1 1000k -break_non_keyframes 1 -f dash -seg_duration 1 -dash_segment_type mp4 -init_seg_name 'init-stream$RepresentationID$.m4s' -media_seg_name 'chunk-stream$RepresentationID$-$Number%05d$.m4s' -window_size 5 -delete_removed false -skip_to_segment 1 -time_delta 0.0625 -manifest_name "http://127.0.0.1:32400/video/:/transcode/session/hi78g3xvil01wcdiay3uh0c1/43d7e99e-05ac-46b7-b816-efbd0c635e18/manifest?X-Plex-Http-Pipeline=infinite" -format_options f_strict=unofficial -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -map 0:3 -metadata:s:0 language=fra -codec:0 copy -strict_ts:0 0 -f segment -segment_format srt -segment_time 1 -segment_header_filename sub-header -segment_start_number 0 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/hi78g3xvil01wcdiay3uh0c1/43d7e99e-05ac-46b7-b816-efbd0c635e18/manifest?stream=subtitles&X-Plex-Http-Pipeline=infinite" -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_list_unfinished 1 -fflags +flush_packets "sub-chunk-%05d" -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/hi78g3xvil01wcdiay3uh0c1/43d7e99e-05ac-46b7-b816-efbd0c635e18/progress
Dec 17, 2022 21:07:08.266 [0x7f1414dcab38] DEBUG - [Req#3c93/Transcode/JobRunner] Jobs: Starting child process with pid 132786
ChuckPa
December 17, 2022, 9:43pm
24
This is a whole new database / install, right?
If it is, the old one won’t help plus I’d chown instead of chwoning
What’s the client?
Most android mobile and Shield Pro will DirectPlay this stuff
it’s the whole /var/lib/plexmediaserver
ChuckPa
December 17, 2022, 9:45pm
26
Let’s figure out if it’s the host or the client.
What’s the player device ?
ChuckPa
December 17, 2022, 9:49pm
27
Create an “Other Videos” section.
Put this file in it.
Play
ChuckPa
December 17, 2022, 9:59pm
28
Looking at your app settings.
Dec 17, 2022 21:07:08.249 [0x7f1414dcab38] DEBUG - [Req#3c93/Transcode] TranscodeUniversalRequest: adapting profile with augmentation data: add-transcode-target(type=videoProfile&context=streaming&protocol=dash&container=mp4&videoCodec=h264,hevc&audioCodec=aac,ac3,eac3)+add-limitation(scope=videoCodec&scopeName=h264&type=upperBound&name=video.level&value=51)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=dash&type=upperBound&name=video.width&value=4096)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=dash&type=upperBound&name=video.height&value=2160)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=dash&type=upperBound&name=video.bitDepth&value=8)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=dash&type=upperBound&name=video.frameRate&value=60)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=dash&type=upperBound&name=video.bitrate&value=60000)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=dash&type=upperBound&name=video.width&value=4096)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=dash&type=upperBound&name=video.height&value=2160)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=dash&type=upperBound&name=video.bitDepth&value=10)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=dash&type=upperBound&name=video.frameRate&value=60)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=dash&type=upperBound&name=video.bitrate&value=80000)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&type=match&name=video.colorTrc&protocol=dash&list=bt709|bt470m|bt470bg|smpte170m|smpte240m|bt2020-10|smpte2084&isRequired=false)+add-limitation(scope=videoCodec&scopeName=hevc&type=notMatch&name=video.DOVIProfile&value=5)+add-transcode-target(type=subtitleProfile&protocol=http&context=all&subtitleCodec=srt&container=srt)+add-transcode-target-settings(type=videoProfile&context=streaming&protocol=dash&IncludeMapInEmptyVTT=true&BreakNonKeyframes=true)
Turn most/all of the “Matching” settings OFF.
There is a known problem with Android in Refresh Rate Matching on some devices.
(I don’t know all the details)
This is a whole new database / install, right?
If it is, the old one won’t help plus I’d chown instead of chwoning
No it’s a full backup of /var/lib/plexmediaserver, I do it every sunday. I’m sure that chwon might work with an asian keyboard tho
Let’s figure out if it’s the host or the client.
What’s the player device ?
If you’re talking about this one :
Dec 17, 2022 21:07:08.266 [0x7f1414dcab38] DEBUG - [Req#3c93/Transcode] TPU: hardware transcoding: final decoder: , final encoder:
Dec 17, 2022 21:07:08.266 [0x7f1414dcab38] DEBUG - [Req#3c93/Transcode/JobRunner] Job running: EAE_ROOT=/tmp/pms-c4765657-56f9-4f2f-ac27-ad3b6f8c316a/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/2427c16-4396-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx4817-bafc-e4da0b46aee0 "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 hevc -codec:1 truehd_eae -eae_prefix:1 hi78g3xvil01wcdiay3uh0c1_ -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i "/data/video/Films/Top Gun Maverick (2020)/Top Gun Maverick (2022) - (tt1745960)[IMAX][TRUEFRENCH MULTi][FR+EN][TRUEHD ATMOS 7.1][HDR][x265][Bluray-2160p] -QTZ.mkv" -map 0:0 -codec:0 copy -filter_complex "[0:1] aresample=async=1:ochl='7.1':rematrix_maxval=0.000000dB:osr=48000[0]" -map "[0]" -metadata:s:1 language=fra -codec:1 eac3_eae -eae_prefix:1 hi78g3xvil01wcdiay3uh0c1_ -b:1 1000k -break_non_keyframes 1 -f dash -seg_duration 1 -dash_segment_type mp4 -init_seg_name 'init-stream$RepresentationID$.m4s' -media_seg_name 'chunk-stream$RepresentationID$-$Number%05d$.m4s' -window_size 5 -delete_removed false -skip_to_segment 1 -time_delta 0.0625 -manifest_name "http://127.0.0.1:32400/video/:/transcode/session/hi78g3xvil01wcdiay3uh0c1/43d7e99e-05ac-46b7-b816-efbd0c635e18/manifest?X-Plex-Http-Pipeline=infinite" -format_options f_strict=unofficial -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -map 0:3 -metadata:s:0 language=fra -codec:0 copy -strict_ts:0 0 -f segment -segment_format srt -segment_time 1 -segment_header_filename sub-header -segment_start_number 0 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/hi78g3xvil01wcdiay3uh0c1/43d7e99e-05ac-46b7-b816-efbd0c635e18/manifest?stream=subtitles&X-Plex-Http-Pipeline=infinite" -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_list_unfinished 1 -fflags +flush_packets "sub-chunk-%05d" -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/hi78g3xvil01wcdiay3uh0c1/43d7e99e-05ac-46b7-b816-efbd0c635e18/progress
Dec 17, 2022 21:07:08.266 [0x7f1414dcab38] DEBUG - [Req#3c93/Transcode/JobRunner] Jobs: Starting child process with pid 132786
It’s from one of my distant user (I’m almost sure who by the media file xD), I can’t tell for sure about the player it’s either Plex app on IOS (iPad) or Plex app on Amazon Firestick
I’ve downloaded “Gods-Testfile.mkv” and add it to a new Other Videos library, should I just play it from my webplayer with the current settings and share the logs ?
I’ve played the file from the web app in local in direct stream then in 1080p 8mbps → no issue and server still available afterward
Then I’ve played from the Plex app on my iPhone, in local in direct stream then over WAN in 1080p 8mbps then in 720p 3mbps, → no issue and server still available afterward
Plex Media Server Logs_2022-12-18_00-23-16.zip (907.2 KB)
ChuckPa
December 18, 2022, 1:05am
31
So in all instances, with my test file, everything plays correctly ?
Now for one by LG
Yes, at least from the devices I use. I can’t say for the other users who I share my libraries with and their devices (I’ll try to ask few of them to watch this file tomorrow)
Gonna test the LG file right now, in the same conditions (Local + over Wan with plex webapp and plex app on iOS)
Ok so for the LG file :
Plex webapp (local):
Direct play : CPU under 5% ; no problem ; no glitch nor crash
Transcode (1080p@20m & 720p@4m) : buffering every 10 sec for 3/4sec, CPU @85 % and tautulli says transcoding speed is at 0.5 ; no glitch nor crash
Server didn’t crash afterward
Plex app on iOS (local & over wan):
Direct play (local only): CPU under 5% ; no problem ; Frame rate is a bit low (maybe the device, it’s an iPhone SE2) which cause an async with the sound by the end of the video, else no glitch no crash
Maximum 4K@40M (over wan only) : buffering every 2/3 sec, CPU @85 % and tautulli says transcoding speed is under 0.1 ; got warning banner from Plex app saying “sorry the server is working hard but bruh” ; no glitch no crash
Transcode (1080p@20m & 720p@3m) : buffering every 10 sec for 3/4sec, CPU @85 % and tautulli says transcoding speed is at 0.5 for 1080p@20m and 0.8 for 720p@3m; no glitch nor crash
Server didn’t crash afterward
Logs:
Plex Media Server Logs_2022-12-18_01-59-35.zip (3.6 MB)
ChuckPa
December 18, 2022, 2:13am
34
We can stop RIGHT here .
Your machine should HW transcode this and is not.
Dec 18, 2022 01:26:41.729 [0x7f128f101b38] DEBUG - [Req#1c630/Transcode] [Universal] Using local file path instead of URL: /data/video/Unsorted/LG Colors of Journey HDR UHD 4K Demo.mkv
Dec 18, 2022 01:26:41.729 [0x7f128f101b38] DEBUG - [Req#1c630/Transcode] TPU: hardware transcoding: final decoder: , final encoder:
Dec 18, 2022 01:26:41.729 [0x7f128f101b38] DEBUG - [Req#1c630/Transcode/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/2427c16-4396-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx4818-ac6d-2cfc0c2108b8 "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 hevc -ss 0 -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i "/data/video/Unsorted/LG Colors of Journey HDR UHD 4K Demo.mkv" -map 0:0 -metadata:s:0 language=eng -codec:0 copy -map 0:1 -metadata:s:1 language=eng -codec:1 copy -f dash -seg_duration 5 -dash_segment_type mp4 -init_seg_name 'init-stream$RepresentationID$.m4s' -media_seg_name 'chunk-stream$RepresentationID$-$Number%05d$.m4s' -window_size 5 -delete_removed false -skip_to_segment 1 -time_delta 0.0625 -manifest_name "http://127.0.0.1:32400/video/:/transcode/session/yq39g2fp295maxtlzz51gmkm/53ce58c5-4b42-4071-8c39-018e74958933/manifest?X-Plex-Http-Pipeline=infinite" -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/yq39g2fp295maxtlzz51gmkm/53ce58c5-4b42-4071-8c39-018e74958933/progress
Dec 18, 2022 01:26:41.729 [0x7f128f101b38] DEBUG - [Req#1c630/Transcode/JobRunner] Jobs: Starting child process with pid 8891
do the following:
ls -la /dev/dri
You should see render owns ‘renderD128’ and video owns ‘card0’
ASSUMING you’re running as the default plex user -
groups plex
You should see video and render listed
Ref:
Intel® Core™ i5-8259U Processor (6M Cache, up to 3.80 GHz) quick reference with specifications, features, and technologies.
I don’t see “render” for renderD128
ChuckPa
December 18, 2022, 2:20am
36
Is plex a member of video ?
This is Ubuntu 20.04.5 LTS
[chuck@lizum ~.2006]$ ls -la /dev/dri
total 0
drwxr-xr-x 3 root root 140 Dec 16 17:46 ./
drwxr-xr-x 21 root root 5120 Dec 16 17:46 ../
drwxr-xr-x 2 root root 120 Dec 16 17:46 by-path/
crw-rw----+ 1 root render 226, 0 Dec 16 17:46 card0
crw-rw----+ 1 root render 226, 1 Dec 17 12:57 card1
crw-rw----+ 1 root render 226, 128 Dec 16 17:46 renderD128
crw-rw----+ 1 root render 226, 129 Dec 16 17:46 renderD129
[chuck@lizum ~.2007]$
Is plex a member of video ?
Yes :
render group exists :
but there’s no user in it
ChuckPa
December 18, 2022, 2:30am
38
do it the easy way -
groups plex
If you don’t see render:x:117:plex then Plex isn’t a member of render – but that’s ok.
Your system (I do not know why) uses ‘video’ instead of ‘render’
That being the case, The installer should make plex a member of video group
ChuckPa
December 18, 2022, 2:32am
40
did you modify that? I don’t add all that when user plex is created.
I see plex is a member of lxd Are you running PMS in a LXC ?
did you modify that? I don’t add all that when user plex is created.
no I didn’t specifically modified that but plex is the main user of this server (dedicated to PMS and related) → iirc at the time (few years ago) I’ve used this guide : [Guide] Plex Media Server with Intel NUC and Ubuntu 16.04 LTS
I see plex is a member of lxd Are you running PMS in a LXC ?
I don’t use LXC only docker but for plex related stuff like ombi or tautulli, PMS is installed through apt
ChuckPa
December 18, 2022, 2:43am
42
That explains it.
Is user plex the admin/default/account-used-to-install-Ubuntu ?