Advertisement
TangentFox

(maintained elsewhere) convert.lua (video -> 720p mp4)

Apr 15th, 2022 (edited)
986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. #!/usr/bin/env luajit
  2.  
  3. -- the version at https://github.com/TangentFoxy/lua-scripts called 720p.lua is better
  4.  
  5. local name = arg[1] or "list.txt"
  6. local file = io.open(name, "r")
  7.  
  8. for line in file:lines() do
  9.   os.execute("ffmpeg -i \"" .. line .. "\" -vf scale=1280:0 \"" .. line:sub(1, line:find(".", 1, true) - 1) .. ".mp4\"")
  10.   os.execute("sleep " .. (15 * 60))
  11. end
  12.  
  13. file:close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement