blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.66k stars 308 forks source link

kill_stream.py // kill HDR to SDR tone mapping transcode decision #343

Closed pwright225 closed 2 years ago

pwright225 commented 2 years ago

i have tried and tried and i feel dumb of course but can you tell me how to kill HDR to SDR tone mapping

for example i have tried conditions such as

video color range IS transcode video dynamic range IS transcode stream video dynamic range is transcode

and so on.

is there anyway you could take pitty on me and put an example on the https://github.com/blacktwin/JBOPS/blob/master/killstream/readme.md

and/or provide a response i could work from?

pwright225 commented 2 years ago

my latest attempt is as follows and it unfortunately doesn't work either. oops my condition logic was superfluous so i have removed that.

image

pwright225 commented 2 years ago

so correct me if i am wrong, as i must be because this doesn't work. but shouldn't it?

the triggers are playback start, resume, and transcode decision change. and i know the script is working because i have setup the kill 4k transcodes from example and tested, then i duplicated from that one to this rule and made my changes. i also increased the timeout to 90 secs, but i tested at both the default 30 and 90.

image

pwright225 commented 2 years ago

unbelievably it's now working. no significant change, i customized the text message in the script argument but otherwise i put it back to the original conditions back but keeping the video decision = transcode rather than the transcode decision.

please delete this whole thing but if not then for anyone finding this here is script argument i used in the play/resume/transcode decision change fields.

--jbop stream --username {username} --sessionId {session_id} --killMessage 'Your System is tone mapping from HDR to SDR, try choosing play verison and select another version, or reach out to me an I will get a non-HDR version for you to play.'