2.0.2 fixed audio sizing and andio insersion issues

This commit is contained in:
K4YT3X
2018-08-10 01:19:05 -04:00
parent 64b8c3d334
commit 52fd096826
2 changed files with 19 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ Last Modified: May 19, 2018
Description: This class handles all FFMPEG related
operations.
Version 2.0.1
Version 2.0.2
"""
import subprocess
@@ -50,11 +50,11 @@ class FFMPEG:
videoin {string} -- input video path
outpath {string} -- video output folder
"""
execute = "{} -i {} -vn -acodec copy {}\\output-audio.wav -y".format(self.ffmpeg_path, videoin, outpath)
execute = "{} -i {} -vn -acodec copy {}\\output-audio.aac -y".format(self.ffmpeg_path, videoin, outpath)
print(execute)
subprocess.call(execute)
def to_vid(self, framerate, resolution, upscaled, ):
def convert_video(self, framerate, resolution, upscaled, ):
"""Converts images into videos
This method converts a set of images into a
@@ -79,6 +79,6 @@ class FFMPEG:
Arguments:
upscaled {string} -- upscaled image folder
"""
execute = "{} -i {}\\no_audio.mp4 -i {}\\output-audio.wav -vcodec copy {} -y".format(self.ffmpeg_path, upscaled, upscaled, self.outfile)
execute = "{} -i {}\\no_audio.mp4 -i {}\\output-audio.aac -shortest -codec copy {} -y".format(self.ffmpeg_path, upscaled, upscaled, self.outfile)
print(execute)
subprocess.call(execute)