FN-GM Posted May 7, 2020 Posted May 7, 2020 Hello, We have a folder with hundreds of MP4 files. They all appear to be larger than needed in size. For example one is 720p 20 minutes and is just short of 2GB in size. I was wondering if anyone can help with compressing these down without loosinng qulaity please? I was maybe thinking of using handbrake CLI with a batch file and having an input and output folder? I thought I would ask as this seems something common in with media studies and I guess someone has something already. Thanks
HPlum78 Posted May 7, 2020 Posted May 7, 2020 See link below:- https://deployhappiness.com/using-handbrake-and-powershell-to-shrink-videos-in-redirected-folders/ I think that that will do it (not something I have used) saves reinventing the wheel. 1
mavhc Posted May 7, 2020 Posted May 7, 2020 My program to do that is in python, if you have python installed just drag a folder onto the .py file https://github.com/mavhc/shrink-video-recursive-python/blob/master/shrink-recursive.py 1
andy_b Posted May 7, 2020 Posted May 7, 2020 Probably overkill for this purpose - but I have found a docker container running Handbrake with "watch" folders useful in the past: https://github.com/jlesage/docker-handbrake 1
FN-GM Posted May 7, 2020 Author Posted May 7, 2020 (edited) See link below:- https://deployhappiness.com/using-handbrake-and-powershell-to-shrink-videos-in-redirected-folders/ I think that that will do it (not something I have used) saves reinventing the wheel. I have seen this before. I was looking for something a more simple. Simply drop the file into the input folder, run the script and leave them to convert in the output folder. My program to do that is in python, if you have python installed just drag a folder onto the .py file https://github.com/mavhc/shrink-video-recursive-python/blob/master/shrink-recursive.py I will have a look into this - thanks for replying. Probably overkill for this purpose - but I have found a docker container running Handbrake with "watch" folders useful in the past: https://github.com/jlesage/docker-handbrake Will have a look at this also. Thanks for posting. I am going to have to consider what I am going to run this on. I have 3 year old Dell virtual host server with plenty of RAM and CPU power. Or would it be better with a desktop machine that has a GPU? Although I might not have anything good enough. Edited May 7, 2020 by FN-GM
jthompson Posted May 7, 2020 Posted May 7, 2020 If you're not looking for a persistent, automated approach that watches for new input files, you could use FormatFactory. Get all your input files listed in Explorer with a suitable search query (size and frameheight) and then drag them all into FormatFactory. Start the batch then leave it. Once done, delete your source files. Works well if your source files are spread throughout a tonne of different folders.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now