Unmanic / unmanic

Unmanic - Library Optimiser
GNU General Public License v3.0
1.41k stars 84 forks source link

Transcode Video Files - Force transcoding even if the file is already using the desired video codec #454

Open regularguy01 opened 2 months ago

regularguy01 commented 2 months ago

Description

The .unmanic uses the original encoded file name. Making this feature unreliable. Most Media managers change the name of the file based on it new encoding (done by unmainic). This allows the file to be encoded and then encoded again.

[Description of the issue]

original file name Example: Regular Movie [dts][h264].mp3 After unnmanic encodes Regular Movie [dts][h264].mkv .unmanic file inside is { "video_transcoder": { "Regular Movie [dts][h264].mkv": "force_transcoded" } }

Then the media manger runs a name change based on the new encoding Regular Movie [dts][h264].mkv > Regular Movie [ac3][h265].mkv

However the unmainc file is still { "video_transcoder": { "Regular Movie [dts][h264].mkv": "force_transcoded" } }

So when the library scans it picks up Regular Movie [ac3][h265].mkv because the unmanic file is still based on the first name. { "video_transcoder": { "Regular Movie [dts][h264].mkv": "force_transcoded" } } Seem like you might just want to set just a empty .unmanic file or use just the actual movie name like "Regular Movie"

So if the plugin sees any .unmanic file it skips

Steps to Reproduce

above

Expected behavior: That it sets an .unmanic file scans once based on the Force feature

Actual behavior: Encodes the already encoded file twice instead of once

Reproduces how often: every time

Versions latest

Version: [0.2.4~7339f8b]

The version can be found at the footer of the WebUI. Also, please include the OS details and what version you are running (e.g. cat /etc/os-release). Unraid 6.12.8

Installation Method Used

Unraid Docker