2020-07-23, 06:33 PM
I'm running NextPVR on Linux, and I'm integrating it with Plex. So nextPVR makes the recordings in to a folder monitored by Plex. I'm also running Plex auto-optimization on the recordings to convert them from a .ts format to .mp4. All good, except that NextPVR seems to occasionally close off the file during the recording, I guess to save existing contextnt, and this kicks in the Plex auto-optimization and I end up with an optimized version that only contains part of the recording.
Seems like the way to fix this is to have NextPVR record to a location not moniored by Plex, and then move the recording the the Plex location when it is done. It appears I can do that by creating a PostProcessing.sh script in the scripts directory. Somehow, this seems like it would be a relatively common task, does anyone know if there is a script (or template) for Linux sh (not a bat file) out there that I can use to do a move at the end of the recording?
I understand shell scripting enough to be dangerous, but it would probably take me a few tries to get this right, and it would be nice if I could use something someone already coded.
Thanks
Seems like the way to fix this is to have NextPVR record to a location not moniored by Plex, and then move the recording the the Plex location when it is done. It appears I can do that by creating a PostProcessing.sh script in the scripts directory. Somehow, this seems like it would be a relatively common task, does anyone know if there is a script (or template) for Linux sh (not a bat file) out there that I can use to do a move at the end of the recording?
I understand shell scripting enough to be dangerous, but it would probably take me a few tries to get this right, and it would be nice if I could use something someone already coded.
Thanks