Various File Sizes

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
DaveP
Posts: 2
Joined: Thu Sep 22, 2022 2:43 pm

Various File Sizes

Post by DaveP »

I've been running Handbrake for some time. It's great. However, I was looking for a way to do the conversions in the background and now I have a NAS I found this great docker container Lesage/Handbrake, that gives me a remote GUI and a way to move the load onto my NAS. Thank you Lesage.

So set it up ran the conversions and it goes great. I'm happy with it.

In testing I noticed that on the NAS running the preset via the GUI gave me a different file size from running the same preset in the background via a watch directory. Not much but about 1K in a 1M file. So I did some tests. I found running Handbrake on the original Desktop GUI also gave me a different size. Again not a big difference but what I couldn't understand is running the GUI again to create a new one using exactly the same preset on exactly the same source gave me yet another file size. This I don't understand.

Anyone got any ideas? It's not a big deal to me but I would like to understand.

Regards,

Dave
rollin_eng
Veteran User
Posts: 4478
Joined: Wed May 04, 2011 11:06 pm

Re: Various File Sizes

Post by rollin_eng »

Depending on your settings the file sizes can vary by a small amount.
mduell
Veteran User
Posts: 7757
Joined: Sat Apr 21, 2007 8:54 pm

Re: Various File Sizes

Post by mduell »

Some encoders produce non-deterministic output with some settings.
DaveP
Posts: 2
Joined: Thu Sep 22, 2022 2:43 pm

Re: Various File Sizes

Post by DaveP »

I understand different presets giving different size but I've never heard of any program that will produce different output from exactly the same inputs. Clearly something causing the difference as it is a fact.

As the sizes are insignificant I'm not going to bother about it but I'll keep an eye out as this will nag me.

Thanks for your inputs. Much appreciated.
mduell
Veteran User
Posts: 7757
Joined: Sat Apr 21, 2007 8:54 pm

Re: Various File Sizes

Post by mduell »

We're not talking about different presets.
I've never heard of any program that will produce different output from exactly the same inputs
Hear about it: https://en.wikipedia.org/wiki/Nondeterm ... _algorithm
User avatar
s55
HandBrake Team
Posts: 10206
Joined: Sun Dec 24, 2006 1:05 pm

Re: Various File Sizes

Post by s55 »

This is perfectly normal behaviour. Even with Identical input and settings.

While this doesn't apply to all encoders, you can expect to see very small variances in filesize run to run.

This is down to the multi-tasking nature of the system and multi-threaded nature of the encoders.
Post Reply