Skip to content

Instantly share code, notes, and snippets.

@wolfy-j
Last active May 5, 2018 15:44
Show Gist options
  • Save wolfy-j/8009a8b3be1004d933e105494c64c372 to your computer and use it in GitHub Desktop.
Save wolfy-j/8009a8b3be1004d933e105494c64c372 to your computer and use it in GitHub Desktop.
Copy media content from one container to another
--@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