How can i give random name to a output file in ffmpeg.
I want to give the filename as current date_time (ex.2020-3-18-10-13-4.mkv).
I don't want to give a fix name such as output.mkv.
import os
import subprocess
import tkinter as tk
import datetime
root = tk.Tk()
os.chdir(f'C://Users/{os.getlogin()}/desktop/')
def recording_voice():
global p
p =subprocess.Popen('ffmpeg -i video.avi -i audio.wav -c:v copy -c:a aac -strict experimental -strftime 1 "%Y-%m-%d_%H-%M-%S.mkv"' ,stdin=subprocess.PIPE)
rec_btn = tk.Button(text='Start merging', width=20, command=recording_voice)
rec_btn.pack()
root.mainloop()