My family (and a number of my friends) have come to me asking me to help them out with long term storage options for all their home videos. These are all digital videos and appear to all be in the h264 format (some mp4 & some mkv). The lengths of the videos vary from ~ 60mins to ~ 120mins. The files range in size from 2GB to 4GB. These are all home videos of family events, so there is no encryption to worry about. I suppose they could just purchase larger external hard drives, but some are too cheap to do so and some others really do not have the finances available to do so, so I would love to help them out. My plan is to compress the videos using 2-pass encoding so I can predict the approximate size of the final files (1GB-2GB each) yet keep them in the highest quality possible. I've created a couple batch files using ffmpeg to compress them, but from what I know about ffmpeg, there is no possible way to create a single 2-pass batch file, so I have 1 batch file for the 1st pass and another batch file for the 2nd pass. If it was just a few videos I'd do it manually, but, in this case, there are far too many to do it that way.
What I would like to do is create a single python file that will run both the batch files automatically. The goal is to have python open up batch file #1, and as soon as it completes the 1st pass, open up batch file #2 to finish off the video file's 2nd pass. Then repeat that pattern with each video file in the folder. I'm fairly comfortable with ffmpeg, but I'm just beginning to learn about python, so any assistance would be greatly appreciated. Also, if you know of a method to do this solely with a single ffmpeg batch file, that would be even better.
Thank you for your help!
I figured it out, flipped a pair of letters in my python file. Works great now
+ Reply to Thread
Results 1 to 1 of 1
-
Last edited by olpdog; 29th Jun 2019 at 22:01. Reason: Found the solution
Similar Threads
-
Difference Between 1 pass & 2 pass encoding
By iqbal88 in forum Video ConversionReplies: 28Last Post: 29th Oct 2021, 05:19 -
Pass Xvfb directly to ffmpeg
By mario90yxz in forum Video ConversionReplies: 0Last Post: 8th Jan 2018, 09:04 -
Please help on my 2-pass (Windows) ffmpeg cmd (SOLVED)
By SameSelf in forum Video ConversionReplies: 2Last Post: 26th May 2017, 12:41 -
Two-Pass Encoding using AVS2YUV with FFmpeg
By wwaag in forum Video ConversionReplies: 10Last Post: 9th Mar 2017, 17:33 -
How to create & render two videos side-by-side in DaVinci Resolve 12?
By Bleeder2 in forum EditingReplies: 1Last Post: 24th Mar 2016, 18:38