Jump to content

Adjust bitrate for transcoded audio such as Dolby AC-3


Charlie117
 Share

Recommended Posts

4 minutes ago, cwills75 said:

Any update on allowing a custom/higher bitrate for transcoded audio.  I wasn't even aware this was an issue until recently, but I have a few clients on Apple TV with receivers that are stuck playing AC3 384kb/s with any DTS files.  I was aware the Apple TV doesn't bitstream DTS/DTS-HD MA/DTS-X, but was never aware of the low bitrate until seeing this post and looking in the log files.  Even the streaming info when the file is being played doesn't show audio transcoding going on.  It says direct streaming, which isn't really accurate.

Screenshot_4.png

adam1.txt 44 kB · 0 downloads

HI, I think this will be improved in the upcoming 4.7 release, but yes, more options are possible for future updates. Thanks.

  • Like 3
Link to comment
Share on other sites

  • 2 months later...
Maldark
Posted (edited)
On 8/25/2021 at 10:51 AM, MakiXx said:

I've made a GitHub repo with instructions and Windows/Linux builds of my wrapper through GitHub actions so that it's verifiably legit. Let me know if you need help.

https://github.com/makitsune/emby-custom-ac3-bitrate

It seems like the builds have expired, and I have limited expereince building stuff myself (Running Windows). Would someone be able to explain this to me like I'm 5? It's been upsetting me since I started using Emby that the Audio bit-rate when transcoding is so low, and now I've found this thread I feel so close to a solution, I just can't work out how to build my own file for use.

Any help would be amazing.

EDIT: Small progress. Managed to download Go and compile my own version. I found ffmpeg.exe in "AppData/Roaming/Emby-Server/System" renamed to "_ffmpeg.exe" and dropped in the complied version of ffmpeg.go, Little lost as to what to do next.

Edited by Maldark
Link to comment
Share on other sites

Maldark
Posted (edited)

OK it took me a while to sort this out so I thought I'd share my idiots guide to getting this working for anyone else that stumbles across this thread and really wants better audio in transcoding.

This is for Windows only, I'm running on Windows 10, but I assume it'll be the same for 11.

1. Download and install Go (https://go.dev/dl/), you'll need this to compile the new wrapper file. 
2. Restart your computer for the changes to come into effect.
3. Copy the text from the ffmpeg.go file found in MakiXx's github (https://github.com/makitsune/emby-custom-ac3-bitrate) into a notepad document and save the file as "ffmpeg.go" I recommend saving this file to C:/Users/[USERNAME]/
4. Open Command Prompt by typing "CMD" into the start bar and pressing enter.
5. Compile the ffmpeg.go file by typing "go build -ldflags="-s -w" ffmpeg.go" and pressing enter.
6. Find the "ffmpeg.exe" file in your emby-server folder "C:\Users\[USERNAME]\AppData\Roaming\Emby-Server\system" and rename it to "_ffmpeg.exe"
7. Paste the "ffmpeg.exe" file you compiled in Step 5 into the same folder as the newly renamed "_ffmpeg.exe"
8. Right-click the start button and select "system", scroll down the "About" page and click "Advanced System Settings", then click on "Environmental Variables".
9. Create a new System Variable. It's name is "EMBY_CUSTOM_FFMPEG_PATH" and its value is "C:\Users\[USERNAME]\AppData\Roaming\Emby-Server\system\_ffmpeg.exe
10. Click OK and restart, it should now work, you can confirm by opening a file and forcing it to transcode.

Edited by Maldark
  • Like 1
Link to comment
Share on other sites

staticmotion
Posted (edited)

This is brilliant Maldark, thanks so much! I only had problems with step 5. I needed to change the directory in CMD to where a file called "go.mod" was located (having put the ffmpeg.go file in that same folder in step 3). For me it was

CD C:\Program Files\Go\test\bench\go1

once in CMD

Edited by staticmotion
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...