.mov conversion successul

This commit is contained in:
Ubuntu
2020-12-10 15:42:58 +00:00
parent d260d7c055
commit 3b4d3b5e47

View File

@@ -151,7 +151,7 @@ def convert_file(input_filepath):
if file_ext == '.mov': if file_ext == '.mov':
output_filepath = fname + '.mp4' output_filepath = fname + '.mp4'
logger.info('Converting video from {} to mp4'.format(input_filepath)) logger.info('Converting video from {} to mp4'.format(input_filepath))
call = ['ffmpeg', '-i', input_filepath, output_filepath] call = ['ffmpeg', '-i', input_filepath, '-vcodec', 'h264','-acodec','aac', '-strict', '-2', output_filepath]
subprocess.check_output(call) subprocess.check_output(call)
@@ -186,7 +186,6 @@ if __name__=="__main__":
_, file_ext = os.path.splitext(os.path.basename(args.input_path)) _, file_ext = os.path.splitext(os.path.basename(args.input_path))
if file_ext: if file_ext:
#add check for mov and mp3 here
input_type = 'file' input_type = 'file'
if file_ext.lower() in ['.mp4','.mov']: if file_ext.lower() in ['.mp4','.mov']: