Hi all,

I have been re-encoding using handbrake’s presets (Matroska hevc 480p/1080p) and results are good for the most part, some issues here and there. I started trying out ffmpeg with cuda and hevc_nvenc and p7 preset. Video quality looks way better but audio is very bad. I am using aac 128k and the audio is very compressed and quite frankly hurts my ears. I started looking into the handbrake options and there’s auto pass through and stereo downmixing, etc. I tried reading the ffmpeg documentation but there is a lot there and I’m not really sure what I’m doing.

tldr; Anyone have tips on getting good quality audio encoding (aac) from my bluray rips?

27 points

I am 90% sure handbrake is an ffmpeg front end. If you dig around in the config files or source repo you can probably find the exact settings used.

permalink
report
reply
-1 points

My understanding is that handbrake uses some of the ffmepg libraries but is not on top of the ffmpeg binary, so things do that translate directly. I’ll check out the source code and see what I can figure out about the preset to ffmpeg option mapping.

permalink
report
parent
reply
13 points

Handbreak is just a GUI for FFmpeg, so the only thing it could be is your settings. Are you using the -c:a copy option with FFmpeg to copy the audio instead of transcoding it?

permalink
report
reply
-1 points

I’ll give copy a try instead of transcoding and see how that works. I wanted the video, audio, and container format to be the same across my library, so as long as it’s always using the same codec across my movies, that should be fine.

permalink
report
parent
reply
4 points

Some things to look at:

Is it possible that Handbrake is just copying the audio from the source, and ffmpeg is transcoding it? I make podcast videos for my partner and I have run into problems with audio quality, so I think I have heard what you’re talking about.

Also, what are you running this on? It is possible that the Ffmpeg on your system was not compiled with all the options you need.

permalink
report
reply
1 point

Running on Ubuntu LTS. I will try out copying the audio and comparing. I have a huge backlog and already made a good dent before I caught this problem.

permalink
report
parent
reply
3 points

yes basically handbrake is an easy button but not as powerful as ffmpeg. ffmpeg has aac encoding options, sometimes you can get into easier syntaxes just to make it easier on the mortal mind by first demuxing your source file into individual streams, re-encoding those as needed, then remuxing together. i still have no idea how to get ffmpeg to use cuda/nvenc and also do other things as the syntax becomes arcane to me

permalink
report
reply
1 point

Yea easy button means I’m not learning much about the process. I think I just need to take the plunge and learn all about ffmpeg.

permalink
report
parent
reply
1 point

It’s live to know how rarbg did this x265 rips

permalink
report
reply

Piracy

!piracy@lemmy.ml

Create post

Welcome to /c/piracy

No netflix or streaming services landlubbers allowed, this is pirates territory.

Community stats

  • 101

    Monthly active users

  • 349

    Posts

  • 2.4K

    Comments