Python Tool that compiles frames from Video Enhance AI using audio/sub tracks from original video
-
Download FFMPEG and extract files to a directory you have access to.
-
Update the Windows PATH Variable to include the directory you saved FFMPEG to.
-
Download and install MKVToolNix.
-
Update the Windows PATH Variable to include the MKVToolNix installation directory (typically C:\Program Files\MKVToolNix)
-
If desired, you can change the extension of the Python script to '.pyw' to prevent the terminal window from showing, however it does provide useful information in regards to tracking the progress of the compilation.
- Select the desired encoder from the dropdown menu.
- Click the Browse button next to the Image Sequence Directory
textbox.
- Navigate to the directory your image sequence is in and select the first image in the sequence.
- Click the Browse button next to the Original File
textbox.
- Navigate to the directory of the original video file and select it.
- Click the Convert button.
- Once completed a pop up window will come up saying
Completed in: X amount of time.
- There will be two new files in the original video file's directory
- videoFileName_temp.mkv
- videoFileName_final.mkv
videoFileName_final.mkv should be the image sequence with the audio/subtitle tracks from the original video file.
videoFileName_temp.mkv can be deleted once you verify the final file is okay.
- In some rare circumstances (mostly older AVI files) the script won't create the final file, and will instead prompt
you to use the MKVToolNix GUI application to merge the video/audio/subtitle tracks into a new file.
- You may want to re-encode the final video in Handbrake to reduce file size, not a requirement, but may be needed o playback video on some players, depending on the resulting file size.