Skip to content

Instantly share code, notes, and snippets.

@techno-tanoC
Last active March 8, 2018 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techno-tanoC/d4e938e9d5284da5306103abe0c72fe9 to your computer and use it in GitHub Desktop.
Save techno-tanoC/d4e938e9d5284da5306103abe0c72fe9 to your computer and use it in GitHub Desktop.
faststart付きでエンコード
names = Dir.entries("source") - [".", ".."]
names.each do |name|
base = File.basename(name, ".*")
p `ffmpeg -i "source/#{name}" -strict -2 -movflags +faststart "output/#{base}.mp4"`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment