Skip to content

Instantly share code, notes, and snippets.

View ram1123's full-sized avatar
💭
I may be slow to respond.

Ram krishna Sharma ram1123

💭
I may be slow to respond.
View GitHub Profile
@ram1123
ram1123 / gist:bf8921377949c3b19f82ce14e1ea95a0
Last active July 23, 2023 16:12 — forked from jdye64/gist:ca07e01ff3d8e93210c3
Convert .dav files in current directory to .mp4
#!/usr/bin/python
print("Converting all of the .dav files in this current directory into .mp4 files using ffmpeg")
import os
from subprocess import call
files = [f for f in os.listdir('.') if os.path.isfile(f)]
for f in files:
ext = f.split(".")[-1]
if ext == "dav" or ext == "DAV":