this post was submitted on 24 Sep 2023
17 points (90.5% liked)

Piracy

22335 readers
1 users here now

Welcome to /c/piracy

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

founded 5 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] qfjp@lemmy.one 1 points 1 year ago

It's hard to know for sure, but I'm guessing if you're forcing hevc_nvenc in ffmpeg then handbrake is using libx265. Nvidia's encoder rips through files, but that speed comes at the cost of bigger file sizes. libx265 uses the cpu so it'll be much slower, but you'll probably see files 30% smaller. As for audio, you could always try -c:a copy as an option for ffmpeg. I don't actually use handbrake myself, so I don't know how to directly copy streams.

As a side note, if you don't need to worry about licensing issues mp4 will compress much better than mkv.