HaveAGitGat / Tdarr_Plugins

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

Transcode eac3 audio to dts - where to add -strict -2 command? #206

Closed St0rm3rt closed 2 years ago

St0rm3rt commented 2 years ago

Hey guys, with Sonos Beam Gen 1 now supporting DTS, I like to transcode E-AC3 audio to DTS to get surround sound from my Beam Gen 1 soundbar. Transcoding to AC3 works great but whenever I try to transcode into DTS I end up with following error using _Tdarr_Plugin_a9hd_FFMPEG_Transcode_Specific_Audio_StreamCodecs plugin:

The encoder 'dca' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

so if anyone knows where i need to put that in this plugin the please help.

ghost commented 2 years ago

EAC3 and AC3 are just Dolby Digital Plus and Dolby Digital, so why'd you want to go to DTS which is an experimental encoder as it states, you'll probably end up losing quality too. Plus, I can't imagine it wouldn't play surround on (E)AC3. DTS is also limited to 5.1 in ffmpeg.

Back to your original question, you could just replace line 104 with ffmpegCommand += ` -map 0:s? -map 0:d? -max_muxing_queue_size 9999 -strict -2`;

St0rm3rt commented 2 years ago

Thanks for that. I edited line 104 as you mentioned and it works. I am just trying to get the max out of my Beam Gen1 as it does not play E-AC3 so I used Tdarr to transcode all my files to AC3 but I did get the notion that video files with DTS sounded better than AC3 on my Beam Gen1 now that I get to play video files with DTS sound on the Sonos Beam Gen 1. My understanding is that DTS has a higher bitrate than AC3 at 640k, but you might be right that the experimental decoder might result in quality loss. I do see my video file transcoded into DTS with 1411200 as bitrate after editing line 104 as you suggested.

journeym commented 4 months ago

Had the same problem, updated and working https://gist.github.com/journeym/96ab3f5f1f5fed188429163516deae08