![]() ![]() ![]() # pass_two_command = ffmpeg + ' -y -i ' + localInputFile + ' -c:v libx264 -strict -2 -b:v ' + bitstring + 'k -maxrate ' + bitstring + 'k -bufsize ' + bufs + 'k -vf scale=-2:' + thisKey + ' -c:a aac -b:a 128k -pass 2 -passlogfile ' + myPassLogFile + ' -movflags +faststart -f mp4 ' + localOutputPath # pass_one_command = ffmpeg + ' -y -i ' + localInputFile + ' -c:v libx264 -strict -2 -b:v ' + bitstring + 'k -maxrate ' + bitstring + 'k -bufsize ' + bufs + 'k -vf scale=-2:' + thisKey + ' -an -pass 1 -passlogfile ' + myPassLogFile + ' -f mp4 ' + localTempPath MyPassLogFile = folder + '/my_passlog_' + mediaId + '_' + thisKey + '_' + bitstring Lambda_tmp_dir = '/tmp' # Lambda fuction can use this directory.įfmpeg = "".format(local_path, buff_temp_name) File_path = os.path.join(folder, the_file)Įlif os.path.isdir(file_path): shutil.rmtree(file_path)
0 Comments
Leave a Reply. |