Can we set the Post Processing to use the Plex built in Optimizer?

I already optimize all TV recordings via the Show Optimizing option so anything new gets optimized as soon as it hits. What I really would like to do is just use some script in the post processing to say use Plex Optimizer and then place the Optimize file in the Season folder and delete the mpeg2 file. If not a post script then a simple option on the DVR settings near the Post Processing would be nice.

I can’t believe this would be terribly difficult since the optimizer commands are already built to auto do it. It would just require renaming the optimized file to the naming of the original mpeg2 and then delete the oringal file (which the post-processing already does).

1 Like

I second this, I have been doing the same thing. Wish it could be automated, as it would save me a lot of time.

Certainly I’d like this as well, though I imagine a user made script could accomplish the same thing if there was some way to queue the optimizations like Plex would.

Otherwise, yeah, you basically have to look up the ffmpeg or handbrake-cli settings for what you’d want and do it yourself.

Frankly, a ‘Delete original version’ option in the ‘optimize versions’ dialogue would probably be “good enough” for most users since you can already bulk optimize entire libraries if you wanted to.

Personally, I’d be fine with leaving well enough alone (as the extra HDD space is cheaper than worrying about optimizing for me), but for the fact that one of the TVs in my house is too pathetic to play the content without stuttering.

+1

would love to see this, the lack of it is causing me headaches right now, it would simplify the process for those of us running plex in a docker as we would not need to modify the docker by adding ffmpeg.

Actually, From what I recall Plex uses ffmpeg - they bundle a version that PMS relies on into their binaries, so look for “Plex Transcoder”.

From playing with it a while ago, you can call it with most of the standard ffmpeg parameters. So if your post-processing is based on ffmpeg you should be fine.

Would be nice if Plex would allow to pass parameters to it after recording instead of going round in a script tough.

here is an Example of what it does when I watch liveTV:

19255 admin 12928 S /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Transcoder -noaccurate_seek -ignore_unknown -scan_all_pmts -1 -rw_timeout 30000000 -fflags +discardcorruptts+fillwallclockdts -i http://plex:plex@192.168.242.2:9981/stream/channel/65deaf990b38d31e0d951c0e11d39e1e?weight=300?transcode=none -map 0:V? -codec:V copy -map 0:a? -codec:a copy -copypriorss:a 0 -map 0:s? -codec:s copy -segment_format mpegts -f ssegment -individual_header_trailer 0 -segment_time 1 -segment_start_number 0 -segment_time_delta 0.0625 -segment_list http://127.0.0.1:32400/video/:/transcode/session/230f6b74-39bb-4682-bb54-042bfb8ed31d/11839e09-13d4-420a-b72d-e0f71a71d13a/seglist -segment_list_type csv -segment_list_size 2147483647 -segment_list_separate_stream_times 1 -max_delay 5000000 -map_metadata -1 -map_chapters -1 media-%05d.ts -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/230f6b74-39bb-4682-bb54-042bfb8ed31d/11839e09-13d4-420a-b72d-e0f71a71d13a/progress

The options are ffmpeg from my view.

1 Like

Addition - on my QNAP I can not call the binary directly, as the Application (QPKG) is sandboxed with a customer library path. Once I tweaked around that it worked though, I just do not have the commands in my history anymore… Setting the ld-path was the trick.

Want to add my vote to this as well. Would be really nice to be able to use the built in plex optimizer which works great to do my transcodes after my DVR is done recording.