ffmpeg - 把整个文件夹的mp4都做个转换

访问量: 78

Dir.entries('.').each do |e|
  if e.include? 'mp4'
    command = %Q{ffmpeg -i "#{e}" -c:v libx264 -b:v 10000k "new_#{e}"}
    puts command
    `#{command}`
  end
end

订阅/RSS Feed

Subscribe

分类/category