Created
June 6, 2015 01:19
-
-
Save 0xjams/b201346d03cd78c5bc66 to your computer and use it in GitHub Desktop.
Batch convert video files to a format compatible with a Pioneer 5700BHS radio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import os | |
files=glob.glob("*.mp4") | |
for file in files: | |
outputName=file.replace(".mp4",".avi") | |
os.system("ffmpeg -i \"%s\" -c:v mpeg4 -q:v 5 -tag:v DIVX -s 640x480 -c:a libmp3lame -q:a 5 -ac 2 -ar 44100 \"%s\"" % (file,outputName)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment