DVR Post Processing Script - error code 127 (key has expired)

I’m running the official PMS docker container, as well as a ffmpeg docker container on my unRAID server. I’m setup the post processing for the DVR to run a script which utilizes the ffmpeg docker image.

When it runs I’m seeing “An error occurred while post processing the recording”. The logs are showing this:

Mar 01, 2018 10:30:51.437 [0x14ca777ff700] DEBUG - Job running: ‘/scripts/PlexPostProc.sh’ ‘/dvrrecordings/.grab/2d9912eddf6a9e9ce3ca494b104694dd0bf19eb4/Mister Rogers’’’ Neighborhood (1968) - S13E05 - Episode 5.ts’
Mar 01, 2018 10:30:51.438 [0x14ca777ff700] VERBOSE - Jobs: Starting child process with pid 392
Mar 01, 2018 10:30:51.443 [0x14ca76ffb700] VERBOSE - JobManager: child process with PID 392 exited
Mar 01, 2018 10:30:51.443 [0x14ca76ffb700] ERROR - JobManager: child process returned: 127 (Key has expired)
Mar 01, 2018 10:30:51.443 [0x14ca777ff700] DEBUG - Jobs: ‘/scripts/PlexPostProc.sh’ exit code for process 392 is 127
Mar 01, 2018 10:30:51.443 [0x14ca777ff700] ERROR - DVR:Recorder: Postprocessing script ‘/scripts/PlexPostProc.sh’ exited with error code 127.

I’ve tried looking this error code up, but I can’t find any useful information. Any idea what is happening here?

Here’s the full post processing script. https://pastebin.com/raw/0nyHH5Ha

Any ideas?

I’ve tested the docker container using this test found on the docker hub page:

docker run opencoconut/ffmpeg -i http://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm -c:v libvpx -c:a libvorbis - > test.webm

And it works fine. However, when I try to process one of the .ts files manually, it just keeps repeating that the file doesn’t exist. It seems like no matter what path I try it can’t find the file.

OK I solved the problem in my last comment, however it appears that one cannot pass spaces or uppercase letters through docker like this…

This is unfortunate as there is no way for me to not have spaces and uppercase letters due to Plex’s naming convention. I guess I’m back to square one.

Solved it by creating my own docker image.

It’s just the official plexinc/pms-docker image with ffmpeg installed as well. This is an automated build which is linked directly to the plexinc/pms-docker image, so you won’t be reliant on me to update the container as an update will be triggered automatically when the official plex docker is updated.

https://hub.docker.com/r/herdo/plexffmpeg/