HaveAGitGat / Tdarr_Plugins

Tdarr Plugins
GNU General Public License v3.0
136 stars 152 forks source link

Create additional file without touching original #123

Open luigi311 opened 3 years ago

luigi311 commented 3 years ago

I want to be able to encode to another file without touching the original but it seems like tdarr always wants to append an output to the end of the command. Is there a way to disable that feature on a plugin by plugin basis?

I am trying to downmix an audio tracks without touching the original file and instead create a mka file next to it so seeding in never stopped on the original file. I have a WIP plugin here that is running into the issue explained above and it is also truncating the actual output of what i want. https://github.com/luigi311/Tdarr_Plugin_lmg2_External_Downmix_DRC

Command:

ffmpeg -y -i '/mount/test/Attack on Titan/Season 1/Attack on Titan S01E17 Female Titan- The 57th Exterior Scouting Mission, Part 1 Bluray-1080p.mkv' -map 0:1 -c:a:0 aac -ac 2 -filter:a:0 "acompressor=ratio=4" -b:a:0 192k -metadata:s:a:0 title="Stereo DRC" -metadata:s:a:0 language="eng" "/mount/test/Attack on Titan/Season 1/Attack on Titan S01E17 Female Titan- The 57th Exterior Scouting Mission '/mount/Tdarr-Cache/Attack on Titan S01E17 Female Titan- The 57th Exterior Scouting Mission, Part 1 Bluray-1080p-TdarrCacheFile--sSdzcylc.mkv' 

Instead of

Command:

ffmpeg -y -i '/mount/test/Attack on Titan/Season 1/Attack on Titan S01E17 Female Titan- The 57th Exterior Scouting Mission, Part 1 Bluray-1080p.mkv' -map 0:1 -c:a:0 aac -ac 2 -filter:a:0 "acompressor=ratio=4" -b:a:0 192k -metadata:s:a:0 title="Stereo DRC" -metadata:s:a:0 language="eng" "/mount/test/Attack on Titan/Season 1/Attack on Titan S01E17 Female Titan- The 57th Exterior Scouting Mission, Part 5 Bluray-1080p.eng.Stereo-DRC.mka" '/mount/Tdarr-Cache/Attack on Titan S01E17 Female Titan- The 57th Exterior Scouting Mission, Part 1 Bluray-1080p-TdarrCacheFile--sSdzcylc.mkv' 

It seems like it sees the , and truncates everything after that

supersnellehenk commented 3 years ago

Yeah, you can't truncate the output currently. It'll always get added at the end, to some annoyance like you're having. Don't know if this is planned.