I know my previous suggestions haven’t helped, and that this worked for you on previous versions of Plex Server, but since no one else has responded I took a look at your latest logs. I noted again that the failed recording happens after a cleanup that happens after a recording has completed. The cleanup:
May 09, 2025 19:01:07.784 [6220] DEBUG - Grabber: Deleting "S:\TV Shows\.grab\2fbecbee52624056254253b666e7fe49133a2d49-88d24317a31be0ffff5f4096e0d9ab12274a1f3c".
May 09, 2025 19:01:07.990 [6220] DEBUG - Grabber: Deleting "S:\TV Shows\.grab\5832b09c8975fa73d9d6d89bfc033e256ec1281f-88d24317a31be0ffff5f4096e0d9ab12274a1f3c".
May 09, 2025 19:01:08.196 [6220] DEBUG - Grabber: Deleting "S:\TV Shows\.grab\5aa8d3033e4ae534bf9505c88f3b7608f56d67f7-88d24317a31be0ffff5f4096e0d9ab12274a1f3c".
May 09, 2025 19:01:08.400 [6220] DEBUG - Grabber: Deleting "S:\TV Shows\.grab\5cbfe766735399cba26ed395023951458495c7ba-88d24317a31be0ffff5f4096e0d9ab12274a1f3c".
May 09, 2025 19:01:08.608 [6220] DEBUG - Grabber: Deleting "S:\TV Shows\94b74015-42e1-4680-95f2-d453824e4dd8/864ff50c-bc57-4a14-9cf5-68f2e9d3e53c.
May 09, 2025 19:01:08.815 [6220] DEBUG - Grabber: Deleting "S:\TV Shows\.grab\8826fe444193ecdc0a420dea190ec489abd99aef-88d24317a31be0ffff5f4096e0d9ab12274a1f3c".
May 09, 2025 19:01:09.020 [6220] DEBUG - Grabber: Deleting "S:\TV Shows\.grab\cad263ebe3750e74ba0959eb8b4ac8abad28051d-88d24317a31be0ffff5f4096e0d9ab12274a1f3c".
May 09, 2025 19:01:09.242 [6220] DEBUG - Grabber: Deleting "S:\TV Shows\.grab\e9f250a0600753ea3b943114241188a03deab9ab-88d24317a31be0ffff5f4096e0d9ab12274a1f3c".
May 09, 2025 19:01:09.447 [6220] DEBUG - Grabber: Cleaned up 10 decrepit directories in 0.0 sec.
Then immediately the failure in your transcoder:
May 09, 2025 19:01:09.448 [6220] DEBUG - Activity: registered new activity c27a24ca-b6c1-4fd8-af2c-fc35ade28dfb - "Processing subscriptions"
May 09, 2025 19:01:09.448 [6220] DEBUG - Subscription: Scheduling subscriptions.
May 09, 2025 19:01:09.449 [9504] ERROR - [Req#fee87/Transcode/94b74015-42e1-4680-95f2-d453824e4dd8/864ff50c-bc57-4a14-9cf5-68f2e9d3e53c] av_interleaved_write_frame(): Invalid argument
May 09, 2025 19:01:09.450 [9504] ERROR - [Req#fee88/Transcode/bc8b3d77-3fee-4e23-920e-d3a97bf483d7/5ec29bef-981d-4844-8cd1-cf866e8c01cc] S:\TV Shows\Wheel of Fortune (1975)\Season 42\Wheel of Fortune (1975) - S42E175 - The Beach.ts: Invalid argument
May 09, 2025 19:01:09.450 [2244] ERROR - [Req#fee8a/Transcode/94b74015-42e1-4680-95f2-d453824e4dd8/864ff50c-bc57-4a14-9cf5-68f2e9d3e53c] Error writing trailer of S:\TV Shows\.grab\ba2bddca03ebba6392d15e805629977d06d0889c-88d24317a31be0ffff5f4096e0d9ab12274a1f3c\Penn & Teller Fool Us (2011) - S10E01 - Who's Your Daddy.ts: Invalid argument
May 09, 2025 19:01:09.451 [9504] ERROR - [Req#fee8d/Transcode/94b74015-42e1-4680-95f2-d453824e4dd8/864ff50c-bc57-4a14-9cf5-68f2e9d3e53c] Error closing file S:\TV Shows\.grab\ba2bddca03ebba6392d15e805629977d06d0889c-88d24317a31be0ffff5f4096e0d9ab12274a1f3c\Penn & Teller Fool Us (2011) - S10E01 - Who's Your Daddy.ts: Invalid argument
May 09, 2025 19:01:09.455 [14660] DEBUG - Jobs: 'C:\Program Files\Plex\Plex Media Server\Plex Transcoder.exe' exit code for process 9940 is 1 (failure)
Note the transcode identifier in the failure, “94b74015-42e1-4680-95f2-d453824e4dd8/864ff50c-bc57-4a14-9cf5-68f2e9d3e53c”:
May 09, 2025 19:01:09.449 [9504] ERROR - [Req#fee87/Transcode/94b74015-42e1-4680-95f2-d453824e4dd8/864ff50c-bc57-4a14-9cf5-68f2e9d3e53c] av_interleaved_write_frame(): Invalid argument
And then look back at the directories cleaned up and note that the identifier for the transcoder is one of the directories that was cleaned up:
May 09, 2025 19:01:08.608 [6220] DEBUG - Grabber: Deleting "S:\TV Shows\94b74015-42e1-4680-95f2-d453824e4dd8/864ff50c-bc57-4a14-9cf5-68f2e9d3e53c.
In Plex Server Settings → Transcoder, make sure the “Show Advanced” button has been clicked, and then do you have anything in the “Transcoder temporary directory” field?
If you do have it set, what is it set to? Is it set to a local drive, or a network drive? Is it set to “S:\TV Shows”? Two thoughts on the transcoder temp directory with Plex - it should not be a network drive per this Plex document, and it should also not be in “within any of the libraries media path locations” like “S:\TV Shows”. It may be getting caught in post recording cleanups - possibly new cleanups introduced in newer Plex Server releases.
I hope this helps. Plex is closed source and Plex Server logging changes over time, so people that are just users like I am can’t see the code to see what is going on under the hood.