Tdarr_Plugins
Tdarr_Plugins copied to clipboard
[JB - QSV(vaapi), H265, AAC, MKV, bitrate optimized] with option to keep multiple audio languages
I found this great plugin to be exactly what I needed with just one tiny exception: I have anime and arthouse movies which I like to watch in the original language but most of them also have an English track which leads to the original tracks getting removed. I tried to figure out how too add a loop over the part of the code which processes the audio but it doesn't seem to be a simple case of looping around a few lines of code and my skill in JS is minimal.
Would it be possible to add an option to keep all audio tracks? Thanks for your great work!
I made a plugin that does exactly this. It's ready to go, just hasn't been merged yet. https://github.com/HaveAGitGat/Tdarr_Plugins/pull/354
Your a genius. Just tested it and it worked great. For some reason it is flagged as needing a CPU worker but when I checked "allow GPU to execute CPU tasks" it runs and does only use the GPU. Monitored the CPU throughout and there was (almost) no activity from Tdarr. According to the docs here (https://docs.tdarr.io/docs/workers/workers) the command line arguments of FFMPEG are checked for keywords related to HW acceleration ( nvenc, cuda, vaapi) and - if found the plugin should be flagged for GPU worker. This is the case in your plugin, I don't know why Tdarr assigns the plugin to a CPU worker in spite of it.
Glad it worked for you, I'm not sure either why it is flagged for CPU, I've always had allow GPU to perform CPU tasks checked.