Page 1 of 1

Handbrake Temp file storage overview

Posted: Thu Jan 30, 2020 11:23 pm
by exod
Description of problem or question:
So i've been running handbrake on a few DVDs and converting them. I noticed I discrepancy from used space and free space. System is stating I have 104GB space left out of my 1TB hard drive but I have totaled the folders which is only 530GB so I'm missing like 366GB of storage.

1TBHD
--530GB >(Accounted for calculated folder sizes)
--104GB >free
--366GB >Unaccounted for

So the only thing running on this computer was handbrake overnight. So had other issues with handbrake so I thought a restart would be in order. So i rebooted the system the same result. However, after awhile the unaccounted data was purged.

Question:
-So does handbrake storing temp files somewhere on the macOS? (if so where) Also when does handbrake clean up these files?


Steps to reproduce the problem (If Applicable):
NA



HandBrake version (e.g., 1.0.0):
1.3.1



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
macOS 10.13.6



HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.

Re: Handbrake Temp file storage overview

Posted: Fri Jan 31, 2020 10:12 am
by Rodeo
Do you have Time Machine enabled?

Re: Handbrake Temp file storage overview

Posted: Wed Feb 05, 2020 11:52 pm
by exod
I do have time machine enabled. But I have the folder I'm working and saving the files excluded from the time machine backup.

Re: Handbrake Temp file storage overview

Posted: Thu Feb 06, 2020 1:07 am
by Woodstock
The point was that Time Machine allocates space for itself, which may be where your "366G unaccounted for" is hiding.

Re: Handbrake Temp file storage overview

Posted: Thu Feb 06, 2020 2:55 am
by exod
Ok soo handbrake isn't keeping any temporary rendered files on the drive before it replaced it with the final file? Just wondering since it was something I noticed. I'll keep an eye on time machine because it doesn't make sense that if you're excluding the folder why would time machine backing up the folder contents. It felt that handbrake was more the potential issue.

Re: Handbrake Temp file storage overview

Posted: Thu Feb 06, 2020 2:02 pm
by Woodstock
Correct - it pretty much writes directly to the output file. If you abort an encode, the output file is still there, just incomplete, and starting the encode over will overwrite it (after asking permission). There are some files that can remain in your temporary directory (chapter lists), but they are not "hidden", and I just cleaned out my temp directory of 5 years' worth, and freed up just over a megabyte of space.

There has been a feature request to do what you thought HB was doing (write to a temp file, rename at the end), but it has not moved forward.

Re: Handbrake Temp file storage overview

Posted: Thu Feb 06, 2020 7:36 pm
by Rodeo
We write scan previews and the statsfile as well, but those are fairly small and should not exceed a few gigabytes total, and certainly would never reach 366 GB.

Re: Handbrake Temp file storage overview

Posted: Thu Feb 06, 2020 7:46 pm
by s55
It'd only reach that kind of level if something was preventing cleanup.

You'd need a mac equivalent to windirstat to easily find what's eating the space.

Re: Handbrake Temp file storage overview

Posted: Thu Feb 06, 2020 8:44 pm
by Rodeo
Most likely it's the Time Machine local snapshots taking up all this space.