This commit is contained in:
2019-03-04 13:24:35 +01:00
parent 25301425b5
commit 7fec0fecd7
13 changed files with 202 additions and 31 deletions

View File

@@ -0,0 +1,6 @@
#!/bin/bash
ffmpeg -t 5 -i infile out-def.mp4
ffmpeg -t 5 -i infile out-def.webm
ffmpeg -t 5 -i infile out-def.ogv

View File

@@ -0,0 +1,6 @@
#!/bin/bash
# 5 sec langes Video
ffmpeg -t 5 -i infile -b:v 600k -b:a 128k -c:v libx264 out.mp4
ffmpeg -t 5 -i infile -b:v 600k -b:a 128k out.webm
ffmpeg -t 5 -i infile -codec:v libtheora -qscale:v 5 -codec:a libvorbis -qscale:a 5 out.ogv

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env ruby
def convert(file,filebase)
#`ffmpeg -i '#{file}' -ab 192k '#{filebase}'.mp3`
`lame -q 0 -b 192 '#{file}' '#{filebase}'.mp3`
end
dir = Dir.new(".")
while file = dir.read do
reg = /(m4a|ogg|wav)/i
puts reg
if file.match(reg)
filebase = File.basename(file, "." + file.match(reg).to_s)
convert(file, filebase)
else
puts "Keine passende Datei gefunden: m4a, ogg, wav. "
end
end

BIN
beispiele/16/wav-file.zip Normal file

Binary file not shown.