Created
October 19, 2013 06:08
-
-
Save BYVoid/7052159 to your computer and use it in GitHub Desktop.
Batch convert multimedia files
This file contains hidden or 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
fs = require("fs"); | |
path = require("path"); | |
var files = fs.readdirSync("."); | |
for (var i = 0; i < files.length; i++) { | |
var file = files[i]; | |
var ext = path.extname(file); | |
if (ext != '.ogg') { | |
continue; | |
} | |
var base = path.basename(file, ext); | |
console.log("ffmpeg -i " + file + " aac/" + base + ".aac"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment