Last active
May 5, 2018 15:44
-
-
Save wolfy-j/8009a8b3be1004d933e105494c64c372 to your computer and use it in GitHub Desktop.
Copy media content from one container to another
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
--@Description: Copy media content from one container to another | |
--@Version: 1.0 <Apr 22, 2018> | |
--@Source: https://gist.github.com/wolfy-j/8009a8b3be1004d933e105494c64c372 | |
--@Author: Wolfy-J <wolfy.jd@gmail.com> | |
local input = ask("Source file", "exists") | |
local output = ask("Output file", "!empty") | |
if input == "" or output == "" then | |
print("\n<red>Script error: </reset><red+hb>not enough arguments</reset>\n") | |
return | |
end | |
require("ffmpeg").run({ | |
"-i", input, | |
"-acodec", "copy", | |
"-vcodec", "copy", | |
"-y", output | |
}) | |
print("<green+hb>Conversion complete!</reset>\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment