Chapter Thumbnails

It’s … complicated. (Isn’t it always? :slightly_smiling_face:)
Recoding in Handbrake is a “lossy” operation. If you are recoding into the same codec (MPEG2>MPEG2), then it makes sense to go for a higher target bitrate, to keep those losses low.

However, AVC/H.264 is more efficient than MPEG2. So it can store the same quality within a lower bitrate. (If you give the encoder enough time to find a good encoding strategy. That is what the “speed” parameter does.)
If you are going from MPEG2 to AVC, and your target bitrate is comparable to the source bitrate, then you are already “over provisioning”.

HEVC is even more efficient than AVC, so the same applies.

1 Like

Hey OttoKerner

Thanks for your reply.

Yes, this is the correctly word :slight_smile:

if I understood you correctly and my source (DVD) is MPEG2 and if I use in HB a H.264 codec with same bitrate, I will get at least the same quality as If use MakeMKV, right?

Thanks and best reagrds Buhli

Yes you can use makeMKV to rip all your episodes in a first step. The files you get has the exact same quality as your DVD. Then you are able to analyze things like bitrate, subtitles (For example if you want to keep only forced subs) and stuff like that to determine your handbrake settings. And in handbrake you can use the job queue so it will transcode all of them. It is a very common way.

To keep it short: yes.

Thanks :slight_smile:

Looks like I could already read the duration and size of the episode without creating the mkv file by MakeMKV

Thanks and best regards Buhli

Hey guys

I have come a step further :slight_smile:

My goal is to use HB by command line

As described in the above post, I determine in a first step the average bitrate and choose the right Preset one based on the episode height.

My command:

--preset "H.264 MKV 576p25" -i "PathToIsoFile" -t 1 -o "PathToMkvFile" --encoder "x264" --encoder-preset "slower" --encoder-profile "high" --encoder-level "4.0" --vb "4387" --two-pass --no-turbo --vfr --audio 1,2,3,4 --aencoder copy:ac3,copy:ac3,copy:ac3,copy:ac3 --all-subtitles --width 720 --height 576 --crop 0:0:0:0

Unfortunately I have a problem to set the right Preset. If I set –preset “H.264 MKV 576p25” it’s just show me a list of all Presets. If I remove it the encoding process starts.

Does anyone have any idea how I can set this preset?

Thanks and best reagrds Buhli

Did U use -preset or --preset? Documentation says --preset. :thinking:

That’s the forum replacing -- with a long dash –

I’ve edited the post to prevent this.

Hmm, no idea then

The output was: “invalid preset name” but I’ve copied it from the list. It’s possible I put on the wrong place? In the documentation I saw: “–preset” and “-Z” does it matter which i use?

Thanks and best regards Buhli

Is the preset name correct?

Yes, it’s one of the default presets.

You can try also adding --preset-import-gui before --preset "H.264 MKV 576p25" to pull them from the GUI install if you also have that installed. I don’t think the presets are identical between the GUI and CLI versions (I might be wrong).

Hey Noah

Thanks for your quick reply.

Unfortunately, the --preset-import-gui commands didn’t work either.

Here you can see the printscreens:

Is it necessary that I put this preset? Or can I also set these settings manually? Or can I create my own preset and set this by CLI

Thanks and best reagrds

You do not have to use a preset and can absolutely do everything manually in your command, but it’s a huge pain, IMO. You can also create your own preset and use it. In fact, that’s what I do. I exported out presets that I had created in the GUI version o HandBrake and use it with the CLI version.

I’m still trying to figure out why you’re not able to use the built-in preset.

Hey Noah

Thank you for your support.

Its really strange. I can export this preset via CLI, but not use it for encoding.

I think I will create my own .preset and hope that I can use this via CLI

Thanks and best reagards Buhli

Hey guys

I created my own preset as follows:

Step 1:
I choose the default preset “H.264 MKV 576p25” and changed it as follows:

Summary: No changes

Dimensions: No changes

Filters: At the moment no changes. I have to play with the different filter settings first

Video:
(1) is maximal okay?
(2) I will set later by CLI
(3) “None” and “High” is okay?

Step 2:
I saved the preset with the following name and settings

Dimension:
(1) Same resolution as source

Audio & Subtitles:
I removed all because I set later by CLI


Step 3:
Export to Json file

Step 4:
To use this new created preset I have to add the follow two commands to my scirpt.
HandBrakeCLI.exe --preset-import-file “PathToJsonFile” --preset “MKV_H264_576p25” -i …

What do you think? Can I use this preset like this?

Thanks and best regards Buhli

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.