I am running a OSX, don\'t know tons about video conversions. But I have like 200 videos that are all in mp4 format and won\'t play in Firefox. I need to convert them to o
This is using Ruby, assuming the ffmpeg you used is correct:
Dir.glob("**/*.mp4").each do |filename|
new_filename = File.join(
File.dirname(filename),
"#{File.basename(filename, ".mp4")}.ogg")
`ffmpeg -i "#{filename}" -acodec vorbis -vcodec libtheora "#{new_filename}"`
end
Dir.glob with "**/*.mp4" recursively matches all the files within subdirectories witha .mp4 extension.