From 1429ae1fb29476a190c67a0432b44bdd3a98f1d8 Mon Sep 17 00:00:00 2001 From: K4YT3X Date: Sat, 19 May 2018 18:24:31 -0400 Subject: [PATCH] v2.0.1: fixed audio insertion issues --- ffmpeg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ffmpeg.py b/ffmpeg.py index 34514e8..cd4dca7 100644 --- a/ffmpeg.py +++ b/ffmpeg.py @@ -9,7 +9,7 @@ Last Modified: May 19, 2018 Description: This class handles all FFMPEG related operations. -Version 2.0 +Version 2.0.1 """ import subprocess @@ -50,7 +50,7 @@ class FFMPEG: videoin {string} -- input video path outpath {string} -- video output folder """ - execute = "{} -i {} -vn -acodec copy {}\\output-audio.aac -y".format(self.ffmpeg_path, videoin, outpath) + execute = "{} -i {} -vn -acodec copy {}\\output-audio.wav -y".format(self.ffmpeg_path, videoin, outpath) print(execute) subprocess.call(execute) @@ -73,12 +73,12 @@ class FFMPEG: def insert_audio_track(self, upscaled): """Insert audio into video - Inserts the AAC audio track stripped from + Inserts the WAV audio track stripped from the original video into final video. Arguments: upscaled {string} -- upscaled image folder """ - execute = "{} -i {}\\no_audio.mp4 -i {}\\output-audio.aac -c copy {} -y".format(self.ffmpeg_path, upscaled, upscaled, self.outfile) + execute = "{} -i {}\\no_audio.mp4 -i {}\\output-audio.wav -vcodec copy {} -y".format(self.ffmpeg_path, upscaled, upscaled, self.outfile) print(execute) subprocess.call(execute)