I am trying for days to convert .dav
file (file generated by dvrs [image recorders]). I have tried several variations with ffmpeg
and can not succeed.<
I have gone through above process and it was quite successful, only limit was in performing the operation with multiple files in batch. So, I came up with following solution.
sudo apt install ffmpeg
import subprocess
from os import listdir
from os.path import isfile, join
onlyfiles = [f for f in listdir(".") if isfile(join(".", f))]
c=1
for i in onlyfiles:
c=c+1
list_dir = subprocess.Popen(["ffmpeg", "-y","-i",i,"-c:v","libx264","-crf","24",i[:-4]+".mp4"])
list_dir.wait()
python convert.py