PMS 1.32.6+ HW transcoding issues and corrections

@ChuckPa i followed your instructions and the segfault happened again. i have the logs for you but i cant DM you the logs. it says something about you arent accepting messages right now.

Attach them here, the logs are anonimized anyway, they don’t contain authentication tokens

1 Like

@ChuckPa

I deleted all the files inside of the codex folder (except for the .devices.id) at around 21:38.

I then started the scheduled tasks run at around 21:40.

In the PMS container i get these crashes recorded,

****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.32.6.7521-24e4dff81/PLEX MEDIA SCANNER/4b0e072a-b8ed-48d4-a6699880-8b764442.dmp
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec … or kill -l [sigspec]
s6-svwait: fatal: timed out
****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.32.6.7521-24e4dff81/PLEX MEDIA SCANNER/f3fd3e7c-cd89-4b28-d449bbb2-07a05b64.dmp

and in the Unraid log i get this,

Sep 21 21:41:50 Server kernel: Plex Media Scan[18736]: segfault at 0 ip 0000153af74fb8cd sp 00007ffd08f6a040 error 4 in libavcodec.so.59[153af7385000+3e0000] likely on CPU 10 (core 20, socket 0)
Sep 21 21:41:50 Server kernel: Code: 41 56 41 54 53 0f 57 c0 0f 11 46 20 0f 11 46 10 0f 11 06 48 c7 46 30 00 00 00 00 8b 6f 10 48 8b 17 89 e9 48 89 e8 48 c1 e8 03 <8b> 04 02 0f c8 80 e1 07 d3 e0 8d 4d 10 8b 57 18 c1 e8 f0 39 ca 0f
Sep 21 21:44:10 Server kernel: Plex Transcoder[25216]: segfault at 0 ip 00001473c1afb8cd sp 00007ffe0992ef80 error 4 in libavcodec.so.59[1473c1985000+3e0000] likely on CPU 10 (core 20, socket 0)
Sep 21 21:44:10 Server kernel: Code: 41 56 41 54 53 0f 57 c0 0f 11 46 20 0f 11 46 10 0f 11 06 48 c7 46 30 00 00 00 00 8b 6f 10 48 8b 17 89 e9 48 89 e8 48 c1 e8 03 <8b> 04 02 0f c8 80 e1 07 d3 e0 8d 4d 10 8b 57 18 c1 e8 f0 39 ca 0f

Complete logs have been attached with Debug logging enabled.
I hope you can find something as to the cause in here :slight_smile:

I upgraded the plex in the docker container to 1.32.6.7521 through the deb file, but I mentioned before that there is no problem with hardware decoding when playing from 0:00. When the playback progress is adjusted to exceed the hardware transcoding progress, for example, the hardware transcoding at 20:00 will fail. And the problem of the following error is still not solved. I have submitted the debugging log twice. I have also uploaded the debugging log below that showed the error when playing three videos. I hope the team can pay attention to the issues I raised! Thanks!

Sep 21, 2023 22:34:41.273 [22457250200376] 错误 — [Req#1226/Transcode/wffhhtjqsgie1qwo7svqhdie/e8f77fdb-be3a-4087-a3f1-ce3b703466df] Impossible to convert between the formats supported by the filter ‘Parsed_hwupload_2’ and the filter ‘auto_scale_0’
Sep 21, 2023 22:34:41.274 [22457313532728] 错误 — [Req#1237/Transcode/wffhhtjqsgie1qwo7svqhdie/e8f77fdb-be3a-4087-a3f1-ce3b703466df] Error reinitializing filters!
Sep 21, 2023 22:34:41.274 [22457250200376] 错误 — [Req#123a/Transcode/wffhhtjqsgie1qwo7svqhdie/e8f77fdb-be3a-4087-a3f1-ce3b703466df] Failed to inject frame into filter network: Function not implemented
Sep 21, 2023 22:34:41.274 [22457313532728] 错误 — [Req#123e/Transcode/wffhhtjqsgie1qwo7svqhdie/e8f77fdb-be3a-4087-a3f1-ce3b703466df] Error while processing the decoded data for stream #0:0
Sep 21, 2023 22:35:22.693 [22457291918136] 错误 — [Req#18fb] Transcoder: Failed to delete session directory (boost::filesystem::remove: Directory not empty [system:39]: “/config/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-wffhhtjqsgie1qwo7svqhdie-7dabda29-2148-4995-b9b7-73daebe39ad9”)
Sep 21, 2023 22:35:53.323 [22457326508856] 错误 — [Req#26a4/Transcode/00yx6asutuoti96a4s2jnt8w/6cd424a0-43ec-435a-834e-8faeaca52e69] Impossible to convert between the formats supported by the filter ‘Parsed_hwupload_2’ and the filter ‘auto_scale_0’
Sep 21, 2023 22:35:53.323 [22457250200376] 错误 — [Req#26bf/Transcode/00yx6asutuoti96a4s2jnt8w/6cd424a0-43ec-435a-834e-8faeaca52e69] Error reinitializing filters!
Sep 21, 2023 22:35:53.323 [22457326508856] 错误 — [Req#26c3/Transcode/00yx6asutuoti96a4s2jnt8w/6cd424a0-43ec-435a-834e-8faeaca52e69] Failed to inject frame into filter network: Function not implemented
Sep 21, 2023 22:35:53.323 [22457250200376] 错误 — [Req#26c5/Transcode/00yx6asutuoti96a4s2jnt8w/6cd424a0-43ec-435a-834e-8faeaca52e69] Error while processing the decoded data for stream #0:0
Sep 21, 2023 22:36:15.739 [22457269029688] 错误 — [Req#2b63] Failed to delete session directory (boost::filesystem::remove: Directory not empty [system:39]: “/config/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-00yx6asutuoti96a4s2jnt8w-6cd424a0-43ec-435a-834e-8faeaca52e69”)
Sep 21, 2023 22:36:15.739 [22457273248568] 错误 — [Req#2b63] Transcoder: Failed to delete session directory (boost::filesystem::remove: Directory not empty [system:39]: “/config/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-00yx6asutuoti96a4s2jnt8w-6cd424a0-43ec-435a-834e-8faeaca52e69”)
Sep 21, 2023 22:36:59.076 [22457250200376] 错误 — [Req#373a/Transcode/c1o43fry32pl2bqzoitpp8nd/93304db1-ae1f-435f-bc75-f1c39e1da0f6] Impossible to convert between the formats supported by the filter ‘Parsed_hwupload_2’ and the filter ‘auto_scale_0’
Sep 21, 2023 22:36:59.076 [22457311423288] 错误 — [Req#3740/Transcode/c1o43fry32pl2bqzoitpp8nd/93304db1-ae1f-435f-bc75-f1c39e1da0f6] Error reinitializing filters!
Sep 21, 2023 22:36:59.076 [22457250200376] 错误 — [Req#3743/Transcode/c1o43fry32pl2bqzoitpp8nd/93304db1-ae1f-435f-bc75-f1c39e1da0f6] Failed to inject frame into filter network: Function not implemented
Sep 21, 2023 22:36:59.076 [22457311423288] 错误 — [Req#3745/Transcode/c1o43fry32pl2bqzoitpp8nd/93304db1-ae1f-435f-bc75-f1c39e1da0f6] Error while processing the decoded data for stream #0:0
Plex Media Server Logs_2023-09-21_22-37-49.zip (607.5 KB)

@V3nom

Can you get me a sample of this file please ?

All indications are the audio stream in the file is bad / incorrectly re-encoded.

I would like to test here on various devices and debugger to see better what’s happening.

Sep 21, 2023 21:45:30.921 [22494982327096] DEBUG - [Req#688] Streaming Resource: Added session 0x147592c98cd8:1c4f6ef9-39de-4fcf-8b7d-55c32888a07a
Sep 21, 2023 21:45:30.921 [22494982327096] DEBUG - [Req#688] [Universal] Using local file path instead of URL: /tv_shows/Law & Order - Special Victims Unit (1999) [imdb-tt0203259]/Season 01/Law & Order - Special Victims Unit (1999) - S01E06 - Sophomore Jinx [HDTV-720p][AAC 2.0][h264].mkv
Sep 21, 2023 21:45:30.921 [22494982327096] DEBUG - [Req#688] TPU: hardware transcoding: final decoder: , final encoder: 
Sep 21, 2023 21:45:30.921 [22494982327096] DEBUG - [Req#688/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/a31c019-4614-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 aac_lc -analyzeduration 20000000 -probesize 20000000 -i "/tv_shows/Law & Order - Special Victims Unit (1999) [imdb-tt0203259]/Season 01/Law & Order - Special Victims Unit (1999) - S01E06 - Sophomore Jinx [HDTV-720p][AAC 2.0][h264].mkv" -filter_complex "[0:0] aresample=async=1:ochl='stereo':rematrix_maxval=0.000000dB:osr=48000[0]" -map "[0]" -metadata:s:0 language=eng -codec:0 flac -b:0 4096k -f flac -map_metadata -1 -map_chapters -1 -t 1295.8610000000001 /transcode/Transcode/Detection/3638262f-e991-4623-960c-956ecc965228 -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress
Sep 21, 2023 21:45:30.921 [22494982327096] DEBUG - [Req#688/JobRunner] In directory: "/transcode/Transcode/Sessions/plex-transcode-1c4f6ef9-39de-4fcf-8b7d-55c32888a07a-cdb259be-7105-473a-b9b1-1d7029024f50"
Sep 21, 2023 21:45:30.921 [22494982327096] DEBUG - [Req#688/JobRunner] Jobs: Starting child process with pid 1805
Sep 21, 2023 21:45:30.923 [22495043570488] DEBUG - Request: [127.0.0.1:40688 (Loopback)] PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress?status=startup (16 live) #57f59 Signed-in Token (Devon.****) (range: bytes=0-) 
Sep 21, 2023 21:45:30.923 [22495323175736] DEBUG - Completed: [127.0.0.1:40688] 204 PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress?status=startup (16 live) #57f59 0ms 203 bytes (pipelined: 1) (range: bytes=0-) 
Sep 21, 2023 21:45:30.924 [22495098022712] DEBUG - Request: [127.0.0.1:40688 (Loopback)] PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress?status=startup (16 live) #58215 Signed-in Token (Devon.****) (range: bytes=0-) 
Sep 21, 2023 21:45:30.924 [22495321066296] DEBUG - Completed: [127.0.0.1:40688] 204 PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress?status=startup (16 live) #58215 0ms 203 bytes (pipelined: 2) (range: bytes=0-) 
Sep 21, 2023 21:45:30.924 [22495270083384] DEBUG - Request: [127.0.0.1:40688 (Loopback)] PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress?status=opening (16 live) #58216 Signed-in Token (Devon.****) (range: bytes=0-) 
Sep 21, 2023 21:45:30.924 [22495323175736] DEBUG - Completed: [127.0.0.1:40688] 204 PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress?status=opening (16 live) #58216 0ms 203 bytes (pipelined: 3) (range: bytes=0-) 
Sep 21, 2023 21:45:30.946 [22494992603960] DEBUG - Request: [127.0.0.1:40688 (Loopback)] PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress?status=opened (16 live) #58217 Signed-in Token (Devon.****) (range: bytes=0-) 
Sep 21, 2023 21:45:30.946 [22495321066296] DEBUG - Completed: [127.0.0.1:40688] 204 PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress?status=opened (16 live) #58217 0ms 203 bytes (pipelined: 4) (range: bytes=0-) 
Sep 21, 2023 21:45:30.946 [22495046388536] DEBUG - Request: [127.0.0.1:40688 (Loopback)] PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress/stream?index=1&id=0&codec=h264&type=video (16 live) #58218 Signed-in Token (Devon.****) (range: bytes=0-) 
Sep 21, 2023 21:45:30.946 [22495321066296] DEBUG - Completed: [127.0.0.1:40688] 200 PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress/stream?index=1&id=0&codec=h264&type=video (16 live) #58218 0ms 195 bytes (pipelined: 5) (range: bytes=0-) 
Sep 21, 2023 21:45:30.954 [22495272192824] DEBUG - Request: [127.0.0.1:40688 (Loopback)] PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress/stream?index=0&id=0&codec=aac&type=audio&profile=LC (16 live) #58219 Signed-in Token (Devon.****) (range: bytes=0-) 
Sep 21, 2023 21:45:30.954 [22495323175736] DEBUG - Completed: [127.0.0.1:40688] 200 PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress/stream?index=0&id=0&codec=aac&type=audio&profile=LC (16 live) #58219 0ms 195 bytes (pipelined: 6) (range: bytes=0-) 
Sep 21, 2023 21:45:30.954 [22495095913272] DEBUG - Request: [127.0.0.1:40688 (Loopback)] PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress/streamDetail?index=0&id=0&codec=aac&type=audio&profile=LC&language=eng&channels=2&layout=stereo&sampleRate=48000&disp_default=1 (16 live) #5821a Signed-in Token (Devon.****) (range: bytes=0-) 
Sep 21, 2023 21:45:30.954 [22495321066296] DEBUG - Completed: [127.0.0.1:40688] 200 PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress/streamDetail?index=0&id=0&codec=aac&type=audio&profile=LC&language=eng&channels=2&layout=stereo&sampleRate=48000&disp_default=1 (16 live) #5821a 0ms 195 bytes (pipelined: 7) (range: bytes=0-) 
Sep 21, 2023 21:45:30.955 [22495043570488] DEBUG - Request: [127.0.0.1:40688 (Loopback)] PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress/streamDetail?index=1&id=0&codec=h264&type=video&profile=High&language=eng&width=1280&height=720&interlaced=0&sar=1:1&level=31&frameRate=23.976&disp_default=1 (16 live) #5821b Signed-in Token (Devon.****) (range: bytes=0-) 
Sep 21, 2023 21:45:30.955 [22495323175736] DEBUG - Completed: [127.0.0.1:40688] 200 PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress/streamDetail?index=1&id=0&codec=h264&type=video&profile=High&language=eng&width=1280&height=720&interlaced=0&sar=1:1&level=31&frameRate=23.976&disp_default=1 (16 live) #5821b 0ms 195 bytes (pipelined: 8) (range: bytes=0-) 
Sep 21, 2023 21:45:30.955 [22495098022712] DEBUG - Request: [127.0.0.1:40688 (Loopback)] PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress/streamDetail?index=2&id=0&codec=subrip&type=subtitle&disp_default=1 (16 live) #5821c Signed-in Token (Devon.****) (range: bytes=0-) 
Sep 21, 2023 21:45:30.955 [22495321066296] DEBUG - Completed: [127.0.0.1:40688] 200 PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress/streamDetail?index=2&id=0&codec=subrip&type=subtitle&disp_default=1 (16 live) #5821c 0ms 195 bytes (pipelined: 9) (range: bytes=0-) 
Sep 21, 2023 21:45:30.956 [22495270083384] DEBUG - Request: [127.0.0.1:40688 (Loopback)] PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress?duration=2591.723000 (16 live) #5821d Signed-in Token (Devon.****) (range: bytes=0-) 
Sep 21, 2023 21:45:30.956 [22495323175736] DEBUG - Completed: [127.0.0.1:40688] 204 PUT /video/:/transcode/session/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50/progress?duration=2591.723000 (16 live) #5821d 0ms 203 bytes (pipelined: 10) (range: bytes=0-) 
Sep 21, 2023 21:45:30.956 [22494982327096] DEBUG - [Req#688] Using default transcode duration of 120 minutes
Sep 21, 2023 21:45:30.956 [22494982327096] DEBUG - [Req#688] Started session successfully: 1c4f6ef9-39de-4fcf-8b7d-55c32888a07a
Sep 21, 2023 21:45:30.957 [22494992603960] DEBUG - [Req#5821e/Transcode/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50] Streaming Resource: Unthrottling session 0x147592c98cd8:1c4f6ef9-39de-4fcf-8b7d-55c32888a07a which is using static transcoder slot.  Used slots is now 1
Sep 21, 2023 21:45:30.965 [22495321066296] DEBUG - CERT: incomplete TLS handshake from 192.168.1.87:63894: sslv3 alert certificate unknown (SSL routines)
Sep 21, 2023 21:45:30.967 [22495046388536] DEBUG - Request: [192.168.1.87:63895 (Allowed Network (Subnet))] GET /status/sessions/background (18 live) #58224 TLS GZIP Signed-in Token (Devon.****) (Microsoft Edge)
Sep 21, 2023 21:45:30.967 [22495321066296] DEBUG - Completed: [192.168.1.87:63895] 200 GET /status/sessions/background (18 live) #58224 TLS GZIP 0ms 397 bytes (pipelined: 1)
Sep 21, 2023 21:45:31.065 [22495272192824] ERROR - [Req#58223/Transcode/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50] [matroska,webm @ 0x14a8596e1040] Element at 0x140a4b3 ending at 0x15b80d2 exceeds containing master element ending at 0x14e5068
Sep 21, 2023 21:45:31.069 [22495095913272] ERROR - [Req#58227/Transcode/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50] [aac_lc @ 0x14a858efc140] invalid band type
Sep 21, 2023 21:45:31.069 [22495043570488] ERROR - [Req#58228/Transcode/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50] Error while decoding stream #0:0: Invalid data found when processing input
Sep 21, 2023 21:45:31.069 [22495098022712] ERROR - [Req#58229/Transcode/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50] [aac_lc @ 0x14a858efc140] invalid band type
Sep 21, 2023 21:45:31.069 [22495270083384] ERROR - [Req#5822a/Transcode/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50] Error while decoding stream #0:0: Invalid data found when processing input
Sep 21, 2023 21:45:31.069 [22494992603960] ERROR - [Req#5822b/Transcode/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50] [aac_lc @ 0x14a858efc140] Number of bands (14) exceeds limit (13).
Sep 21, 2023 21:45:31.069 [22495046388536] ERROR - [Req#5822c/Transcode/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50] Error while decoding stream #0:0: Invalid data found when processing input
Sep 21, 2023 21:45:31.070 [22495272192824] ERROR - [Req#5822d/Transcode/1c4f6ef9-39de-4fcf-8b7d-55c32888a07a/cdb259be-7105-473a-b9b1-1d7029024f50] [aac_lc @ 0x14a858efc140] invalid band type

Granted, the transcoder shouldn’t seg fault but first I’d like to discover the root issue.

No problem at all. I have the file here, just looking at the best way to get a sample for you.

Im glad you found something :slight_smile:

@V3nom

PM sent

1 Like

@haodi

Which base OS and version are you using please ?

Asking because TigerLake, AlderLake and RaptorLake are working correctly in our Lab on Ubuntu 22.04

Other question: Have you manually installed Intel Media Driver or Intel Compute Runtime ?

Hello, I introduced my environment before

Motherboard: B760
CPU: 12500

[GPU] Got device: Alder Lake-S GT1 [UHD Graphics 770]

I installed the container in docker with unraid version: 6.12.4
These two are links to posts I reported to you before!

1.32.6.7521 was upgraded through deb. The problems encountered now seem to have nothing to do with the version. These versions all encounter the same problem, that is, the progress cannot be dragged. Once the progress exceeds the UHD770 hardware decoding buffer, it will become CPU Decoding (because English is not my native language, I don’t know if you understand what I express)

https://forums.plex.tv/t/uhd770-hardware-decoding-drag-error/853925
https://forums.plex.tv/t/pms-1-32-6-hw-transcoding-issues-and-corrections/853757/37

@haodi

Apologies for not being in best form on my end.

Question for you on how you define your container ?

Are you mapping /dev/dri/dev/dri
OR are you only mapping the single device /dev/dri/renderD128 ?

This will make the difference between success & failure.
renderD128 == transcode
card0 == tone mapping (what’s failing for you)

It is /dev/dri→/dev/dri. I click to start playing renderD128 and card0. Everything is normal. For example, if I fast forward to 20 minutes (the hardware decoding buffer only reaches 2 minutes), an error will be reported at this time, and it will be changed to CPU decoding, renderD128 and Card0 doesn’t work anymore. I don’t know if I say this, do you understand?

@haodi

I am starting to understand. Thank you for being patient with me.

Is this correct?

  1. You start playing with HW transcoding and tone mapping
  2. Playback is normal.
  3. The buffer fills to its default 2 minute level
  4. Now you seek ahead in the file ( 10 minutes ? )
  5. HW transcoding & tone mapping fail.

Is this correct ?

If this is correct, AND you turn HW tonemapping OFF.
Can you then freely seek around the file without faults (HW transcode normal) ?

I took a screenshot to express it to you, hoping you can understand my dilemma!


Sep 21, 2023 23:53:31.915 [22884886059832] 错误 — [Req#4ffd/Transcode/1mzps95qrrrmdvo1ty6aiqqt/16d764a7-e958-422b-b74f-df6803c2e14f] Impossible to convert between the formats supported by the filter ‘Parsed_hwupload_2’ and the filter ‘auto_scale_0’
Sep 21, 2023 23:53:31.916 [22884881718072] 错误 — [Req#503c/Transcode/1mzps95qrrrmdvo1ty6aiqqt/16d764a7-e958-422b-b74f-df6803c2e14f] Error reinitializing filters!
Sep 21, 2023 23:53:31.916 [22884886059832] 错误 — [Req#503e/Transcode/1mzps95qrrrmdvo1ty6aiqqt/16d764a7-e958-422b-b74f-df6803c2e14f] Failed to inject frame into filter network: Function not implemented
Sep 21, 2023 23:53:31.916 [22884881718072] 错误 — [Req#5042/Transcode/1mzps95qrrrmdvo1ty6aiqqt/16d764a7-e958-422b-b74f-df6803c2e14f] Error while processing the decoded data for stream #0:0

Thank you. We are checking now.

Would it be possible for you to cut us a sample of the file ?
(200 MB?)

That will allow us to confirm exactly what you’re seeing.

I will send you a PM for you to share the link if needed

Are you talking about cropping 200M video file segments? Yes, I will look for a cutting tool right away. Without converting the image quality and keeping the original parameters, I can cut 200M and share it with you.

If you take the original file, from the command line, inside the container (docker exec -it container_name bash)

you can use dd if=source_file_name.ext of=output_file_name.ext bs=1M count=200

This creates a 200 MB perfect snippet of the file

Okay, I have divided it according to your instructions.

root@4305232f6707:/库3/测试/人世间.A.Lifelong.Journey.S01.2022.2160p.WEB-DL.H265.AAC-HHWEB# dd if=A.Lifelong.Journey.S01E01.2022.2160p.WEB-DL.H265.AAC-HHWEB.mp4 of=Cut.A.Lifelong.Journey.S01E01.2022.2160p.WEB-DL.H265.AAC-HHWEB.mp4 bs=1M count=200
200+0 records in
200+0 records out
209715200 bytes (210 MB, 200 MiB) copied, 0.277012 s, 757 MB/s
root@4305232f6707:/库3/测试/人世间.A.Lifelong.Journey.S01.2022.2160p.WEB-DL.H265.AAC-HHWEB#

Ho !
I always thought that only renderD128 was suffisant.

I hust check my docker-compose.yml for my PMS on my Asustor AS6704T Nas, and I saw that :

...
    devices:
      - /dev/card0:/dev/dri/card0
      - /dev/dri/renderD128:/dev/dri/renderD128
...

Phew :sweat_smile: I got the right lines :blush:

But on my old instance on my Synology DS920+ I just have :

...
    devices:
      - /dev/dri:/dev/dri
...

Phew :sweat_smile:

I learn something today, thanks to you @ChuckPa :+1:t2:

That’s not right!

card0 is IN /dev/dri ( /dev/dri/card0 on both host and in container )

This is why the directory entry /dev/dri:/dev/dri grabs everything in one declaration.

I have prepared 200M video file clips, please share the link with me and give the clips to you

1 Like