Unmanic / unmanic

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

[Plugin request] Filtering for specific audio codecs (eac3) #269

Open digidomic opened 2 years ago

digidomic commented 2 years ago

Since some people have problems with playing files with eac3 audio codec, I want to convert everything with eac3 to ac3, but keep the original audio for everything else than eac3.

I think for this I need a plugin which selects only files with eac3 audio. Is this possible?

In ffprobe I can find files like this: ffprobe -loglevel error -select_streams a -show_entries stream=codec_name -of default=nw=1:nk=1 "file.mkv"

Thanks in advance.

davidgruhin commented 2 years ago

This would be a great plugin. A few of my TVs will not handle EAC3 and I convert to AAC. Right now I am just checking every MKV file to convert to AAC but this is converting things I don't need it to.

Fahmula commented 2 years ago

I would like something similar to this as well. I would just like an option in the current AC3 plugin to keep the original audio. I tired looking into achieving this using the custom ffmpeg option but I'm lost.