Jump to content


Photo

Adjust bitrate for transcoded audio such as Dolby AC-3

transcoding dolby ac-3 bitrate embyserver

  • Please log in to reply
30 replies to this topic

#1 Charlie117 OFFLINE  

Charlie117

    Advanced Member

  • Members
  • 86 posts
  • Local time: 10:28 PM

Posted 24 December 2018 - 12:37 PM

I'll try to keep this feature request short and simple.

 

When the Emby server needs to transcode audio to make it compatible for the Emby client, it will use a hardcoded value for the bitrate that cannot be changed.

For example, if the audio gets transcoded to Dolby Digital AC-3, it will always use a bitrate of 384 kb/s. This value cannot be changed, even though Dolby Digital AC-3 allows a maximum bitrate of 640 kb/s. Although 384 kb/s is a decent compromise between quality and data, it is very compressed and the quality is far from being transparent.

 

The same thing applies to every other audio codec the Emby server may transcode to, such as AAC.

 

So the request is simple, allow users to specify the bitrate that should be used for transcoding audio.

 

Thanks,

Charlie

 


  • SikSlayer, karambit27 and Batunga like this

#2 Batunga OFFLINE  

Batunga

    Member

  • Members
  • 21 posts
  • Local time: 10:28 PM
  • LocationGermany

Posted 26 February 2019 - 01:54 PM

I would also wish some kind of setting for the audio bitrate (or just transcode to 640kbps AC3 if the user didn't select a low bitrate in the client).

AC3 isn't a very efficient/good CODEC and ffmpeg isn't very good at encoding AC3. So 384kbps doesn't result in great quality for 5.1 channel sound.

Plex transcodes multichannel sound to 640kbps AC3 (at least for LAN bandwidth). Would be great if Emby could also use the highest allowed bitrate.  :)


  • cayars likes this

#3 Charlie117 OFFLINE  

Charlie117

    Advanced Member

  • Members
  • 86 posts
  • Local time: 10:28 PM

Posted 06 March 2019 - 03:54 PM

AC3 isn't a very efficient/good CODEC and ffmpeg isn't very good at encoding AC3. So 384kbps doesn't result in great quality for 5.1 channel sound.

Exactly! It sounds awful on a decent 5.1 setup.

Really hoping to see this added someday. 



#4 Charlie117 OFFLINE  

Charlie117

    Advanced Member

  • Members
  • 86 posts
  • Local time: 10:28 PM

Posted 07 January 2020 - 07:04 AM

Giving this a bump.

 

In my opinion 384 kb/s bitrate is too low for DD 5.1 and needs to be defaulted to 640 kb/s.



#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 149355 posts
  • Local time: 04:28 PM

Posted 07 January 2020 - 12:25 PM

Thanks for the feedback. More options are possible for the future.



#6 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 01:28 PM

Posted 08 January 2020 - 01:53 PM

You can't default to 640, fo people with optical, they won't get any audio. You could possibly squeeze 448.

#7 Jdiesel ONLINE  

Jdiesel

    Advanced Member

  • Members
  • 2813 posts
  • Local time: 03:28 PM
  • LocationRegina, SK

Posted 08 January 2020 - 01:58 PM

640kbps is fine for optical. This limitation is likely a solution for an issues with some specific ATV TVs (Sony/Philips) that had issues with 640kbps ac3 audio. I'm not sure if this is even an issue anymore though
  • shorty1483 and Charlie117 like this

#8 Charlie117 OFFLINE  

Charlie117

    Advanced Member

  • Members
  • 86 posts
  • Local time: 10:28 PM

Posted 08 January 2020 - 02:34 PM

You can't default to 640, fo people with optical, they won't get any audio. You could possibly squeeze 448.

 

Optical does allows DD 5.1 640 kbps and DTS 5.1 1509 kbps. Perhaps some devices don't? 


  • SikSlayer likes this

#9 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 01:28 PM

Posted 08 January 2020 - 07:46 PM

No it doesn't.

https://emby.media/c...e-2#entry808881

#10 Charlie117 OFFLINE  

Charlie117

    Advanced Member

  • Members
  • 86 posts
  • Local time: 10:28 PM

Posted 09 January 2020 - 04:25 AM

Yes it certainly does.

 

I have confirmed this on my own set up many times. It supports both AC-3 640 kbps and DTS core 1509 kbps. I have never seen anyone claim otherwise until now.

That graphic is definitely incorrect. The person in that thread you linked to also confirms that DD 5.1 640 kbps works over S/PDIF:

Screenshot-2020-01-09-at-09-33-15.png

 

Also, official documentation from Dolby confirms that Dolby Digital (non-Plus) at 640 kbps bitrate can be sent over S/PDIF : https://www.dolby.co...al-plus-faq.pdf

Dolby Digital Plus soundtracks are easily converted to a 640 kbps Dolby Digital signal without decoding and reencoding, for output via S/PDIF. The 640 kbps bit rate, which is higher than the standard 448 kbps used on DVDs, is fully compatible with all existing Dolby Digital decoding products such as A/V receivers, and can provide higher-than-DVD quality from Dolby Digital Plus soundtracks when played back through existing systems.

 

It also gets confirmed and discussed here: https://forum.kodi.t...d=304632&page=5


Edited by Charlie117, 09 January 2020 - 06:33 AM.


#11 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 01:28 PM

Posted 09 January 2020 - 12:02 PM

Show me a log of the process to confirm it. I want to see the data.

#12 Charlie117 OFFLINE  

Charlie117

    Advanced Member

  • Members
  • 86 posts
  • Local time: 10:28 PM

Posted 09 January 2020 - 12:32 PM

Show me a log of the process to confirm it. I want to see the data.

 

You're literally the only person saying it's not true.. but I don't mind proving it just for you personally.

 

What do you need, an Emby log? If so, I'll need some time to prepare a S/PDIF setup as my current setup is all HDMI to my receiver.  


Edited by Charlie117, 09 January 2020 - 12:50 PM.


#13 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 01:28 PM

Posted 09 January 2020 - 01:08 PM

You'll need to post a log from your device to show it isn't getting resampled. The server log won't prove anything. And there are multiple people on here that can't play that audio through optical. I've shown them how to resample to make it work.

Edited by Doofus, 09 January 2020 - 01:09 PM.


#14 Charlie117 OFFLINE  

Charlie117

    Advanced Member

  • Members
  • 86 posts
  • Local time: 10:28 PM

Posted 09 January 2020 - 01:16 PM

Even though Dolby themselves say it's true, I'll make a S/PDIF setup and double check.

 

Any suggestions on how to obtain a device log? I have an Xbox One with an S/PDIF connection and also a Windows based PC that I believe supports S/PDIF. Will either of those work for a device log?



#15 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 01:28 PM

Posted 09 January 2020 - 01:43 PM

S/PDIF isn't specific to optical, it's just the protocol. Example. mpv uses S/PDIF for all audio bitstreaming. In the log, the audio is always shown as S/PDIF stereo, but the audio details show it as 6 channel. We are talking about the physical entity of the fiber optic cable. It doesn't have the bandwidth, never has. Unless you can produce a log from the recipient end of the cable that shows 5.1 at 640Kb/s being decoded to raw audio, it isn't happening.

#16 Jdiesel ONLINE  

Jdiesel

    Advanced Member

  • Members
  • 2813 posts
  • Local time: 03:28 PM
  • LocationRegina, SK

Posted 09 January 2020 - 02:42 PM

That's just not true, 2 channel 192hz/24bit PCM works just fine over toslink and that works out to about 4.6Mbps


  • Charlie117 likes this

#17 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 01:28 PM

Posted 09 January 2020 - 02:48 PM

Optical supports uncompressed stereo, not 5.1 640kb/s, I already showed that.

#18 Jdiesel ONLINE  

Jdiesel

    Advanced Member

  • Members
  • 2813 posts
  • Local time: 03:28 PM
  • LocationRegina, SK

Posted 09 January 2020 - 02:55 PM

Yes I don't think anyone is arguing that toshlink or coax supports multichannel uncompressed LPCM, it doesn't. What is being asked is why compressed DD is being transcoded to 384Kbps when 640Kbps is supported.
  • Charlie117 likes this

#19 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 01:28 PM

Posted 09 January 2020 - 02:55 PM

I'm not afraid to wrong, just show me. So far there is no evidence to support that it does.

#20 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 01:28 PM

Posted 09 January 2020 - 02:57 PM

Yes I don't think anyone is arguing that toshlink or coax supports multichannel uncompressed LPCM, it doesn't. What is being asked is why compressed DD is being transcoded to 384Kbps when 640Kbps is supported.


Everything that I've seen shows that AC3 5.1 640Kb/s won't work.





Also tagged with one or more of these keywords: transcoding, dolby, ac-3, bitrate, embyserver

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users