Quality of internal AC3 encoding

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
Post Reply
Message
Author
samtroy
Posts: 16
Joined: Sun Apr 19, 2020 9:43 am

Quality of internal AC3 encoding

#1 Post by samtroy » Sun Nov 22, 2020 4:07 pm

I was wondering what software exactly is used for the internal encoding of AC3 tracks? How's the encoding quality considered? And if there are more ways in the profile that can further enhance the AC3 quality?

I've already added the "-b 640" switch: -> <extraArgs>-b 640k</extraArgs>

Are there any more switches that can enhance the AC3 encoding quality? Thanks in advance.

Woodstock
Posts: 10222
Joined: Sun Jul 24, 2011 11:21 pm

Re: Quality of internal AC3 encoding

#2 Post by Woodstock » Sun Nov 22, 2020 5:52 pm

MakeMKV uses ffmpeg's encoders when converting to FLAC and AAC. While I do not remember seeing "AC3" as a conversion profile, it would probably use that, too.

If you are referring to MakeMKV creating an AC3 track for TrueHD tracks, that is simply copying the "lossy core" of TrueHD to its own track.

samtroy
Posts: 16
Joined: Sun Apr 19, 2020 9:43 am

Re: Quality of internal AC3 encoding

#3 Post by samtroy » Sun Nov 22, 2020 7:26 pm

No, I'm reffering to DTS (HD) to AC3 conversion (for compatability reasons) as talked about in this thread:

https://www.makemkv.com/forum/viewtopic.php?f=10&t=7293.

Yes, maybe it uses ffmpeg's libraries for AC3 encoding as well. I'm just curious if the AC3 encoding quality could be improved by some additional flag or switch (at the cost of some encoding time).

Anyone?

mike admin
Posts: 4071
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Quality of internal AC3 encoding

#4 Post by mike admin » Sun Nov 22, 2020 8:08 pm

samtroy wrote:
Sun Nov 22, 2020 7:26 pm
Yes, maybe it uses ffmpeg's libraries for AC3 encoding as well. I'm just curious if the AC3 encoding quality could be improved by some additional flag or switch (at the cost of some encoding time).
It does use ffmpeg. You can specify any ffmpeg encoder options in conversion profile (look for a flac profile as an example). I doubt that one can get a decent quality out of ac3 though.

samtroy
Posts: 16
Joined: Sun Apr 19, 2020 9:43 am

Re: Quality of internal AC3 encoding

#5 Post by samtroy » Mon Nov 23, 2020 3:05 pm

mike admin wrote:
Sun Nov 22, 2020 8:08 pm
samtroy wrote:
Sun Nov 22, 2020 7:26 pm
Yes, maybe it uses ffmpeg's libraries for AC3 encoding as well. I'm just curious if the AC3 encoding quality could be improved by some additional flag or switch (at the cost of some encoding time).
It does use ffmpeg. You can specify any ffmpeg encoder options in conversion profile (look for a flac profile as an example). I doubt that one can get a decent quality out of ac3 though.
You mean because of quality of the ffmpeg encoder or the format AC3 itself? If the ffmpeg encoder is the problem would it be possible to use a differnt/better one with MakeMKV?

dcoke22
Posts: 2969
Joined: Wed Jul 22, 2020 11:25 pm

Re: Quality of internal AC3 encoding

#6 Post by dcoke22 » Mon Nov 23, 2020 3:32 pm

I'm going to guess that he's referring to going from the lossless DTS track to a compressed AC-3 track, which is limited to 640 kbit/s. It is likely impossible to do that compression in an unnoticeable way. But, AC-3 is widely supported and highly portable.

I'm not aware of any quality problems with audio encoding in FFmpeg.

Hopefully you're also keeping the lossless audio in your rip as well.

mike admin
Posts: 4071
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Quality of internal AC3 encoding

#7 Post by mike admin » Mon Nov 23, 2020 5:07 pm

dcoke22 wrote:
Mon Nov 23, 2020 3:32 pm
It is likely impossible to do that compression in an unnoticeable way. I'm not aware of any quality problems with audio encoding in FFmpeg.
Yes, exactly. It's just a really lossy format.
dcoke22 wrote:
Mon Nov 23, 2020 3:32 pm
But, AC-3 is widely supported and highly portable.
MakeMKV can also do AAC encoding - all profiles, using fdk_aac encoder (superior) or ffmpeg aacenc. It is not so widely supported as ac3, but still much more common than DTS. And you get a superb audio quality.

Post Reply