ffmpeg - 把整个文件夹的mp4都做个转换
访问量: 1013
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
访问量: 1013
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