16
This commit is contained in:
6
beispiele/16/create-webvideos-defaults.sh
Normal file
6
beispiele/16/create-webvideos-defaults.sh
Normal 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
|
6
beispiele/16/create-webvideos.sh
Normal file
6
beispiele/16/create-webvideos.sh
Normal 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
|
20
beispiele/16/file-to-mp3-192k.rb
Normal file
20
beispiele/16/file-to-mp3-192k.rb
Normal 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
BIN
beispiele/16/wav-file.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user