This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inspired by: http://yogsototh.wordpress.com/2007/10/24/bash-script-loop/ | |
# this probably only works within the zsh. So you might enter it first by execute 'zsh' | |
# also works with whitespaces in filenames | |
for file in ./**/*.wma; do | |
ffmpeg -i $file -f ogg -acodec libvorbis -ab 128k ${file%.*}.ogg | |
mkdir -p ./old_wma/${file%/*} | |
mv $file ./old_wma/${file} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# kate: remove-trailing-space on; replace-trailing-space-save on; indent-width 2; indent-mode ruby; syntax ruby; | |
require 'net/http' | |
require 'optparse' | |
require 'timeout' | |
require 'cgi' | |
require 'uri' | |
class Hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# kate: remove-trailing-space on; replace-trailing-space-save on; indent-width 2; indent-mode ruby; syntax ruby; | |
# ur1.rb | |
require 'net/http' | |
require 'cgi' | |
require 'uri' | |
URL = URI.parse "http://ur1.ca/" | |
raise if ARGV.size == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=openSUSE-12.1-DVD-x86_64.iso | pv --eta --size 4628414464 --progress --bytes --rate --wait > /dev/sdc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.mp4 -y -vcodec libx264 -s 800x480 -acodec aac -strict experimental -ab 96k -ac 2 -b 500K -threads 4 -flags +loop -cmp +chroma -partitions 0 -me_method epzs -subq 1 -trellis 0 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 output.mp4 | |
# input may be everything supported by ffmpeg (*.flv, *.webm, *.mkv, ...) | |
# "-b 500k" controls bitrate. Lower/Raise to change the video quality |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -threads 4 -i input.avi -vcodec libx264 -s 854x480 -vprofile baseline -level 3.1 -acodec copy -f mp4 -t 120 output.mp4 | |
ffmpeg -threads 4 -i input.avi -vcodec libx264 -vprofile baseline -level 3.1 -vf crop=562:248:8:36 -acodec copy -f mp4 -t 120 output.mp4 | |
ffmpeg -threads 4 -i input.avi -vcodec libx264 -vprofile baseline -level 3.1 -vf crop=716:552:2:12:1,scale=854:480 -acodec copy -f mp4 output.mp4 | |
# http://www.developer.nokia.com/Community/Wiki/Recommended_video_encoding_settings | |
# http://opensource-htpc.blogspot.de/2011/04/remove-black-borders-and-bars-from.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Usefull tools: | |
rosegarden | |
qsynth (fluidsynth) | |
aconnect (-l -o, -l -i) | |
aseqdump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** LOCAL GEMS *** | |
gettext (2.1.0) | |
Author: Masao Mutoh | |
Rubyforge: http://rubyforge.org/projects/gettext | |
Homepage: http://gettext.rubyforge.org/ | |
Installed at: /usr/lib64/ruby/gems/1.8 | |
Ruby-GetText-Package is a libary and tools to localize messages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NOTE: Gem.all_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem.all_load_paths called from /home/rriemann/.rvm/gems/ruby-1.9.2-p290/gems/gettext-2.1.0/lib/gettext/runtime/locale_path.rb:56. | |
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem.all_partials called from /home/rriemann/.rvm/rubies/ruby-1.9.2-p290/lib64/ruby/site_ruby/1.9.1/rubygems.rb:258. | |
/home/rriemann/.rvm/rubies/ruby-1.9.2-p290/lib64/ruby/site_ruby/1.9.1/rubygems.rb:259:in `block (2 levels) in all_load_paths': undefined method `add' for "/home/rriemann/.rvm/gems/ruby-1.9.2-p290":String (NoMethodError) | |
from /home/rriemann/.rvm/rubies/ruby-1.9.2-p290/lib64/ruby/site_ruby/1.9.1/rubygems.rb:427:in `block (2 levels) in each_load_path' | |
from /home/rriemann/.rvm/rubies/ruby-1.9.2-p290/lib64/ruby/site_ruby/1.9.1/rubygems.rb:426:in `each' | |
from /home/rriemann/.rvm/rubies/ruby-1.9.2-p290/lib64/ruby/site_ruby/1.9.1/rubygems.rb:426:in `blo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make server locallay available | |
pacmd load-module module-tunnel-sink server=pluto.local | |
# combine both local servers two one single sink | |
pacmd load-module module-combine-sink sink_name=combined slaves=tunnel-sink.pluto.local,alsa_output.pci-0000_00_1b.0.analog-stereo | |
# usefull cmd: | |
pacmd list-sinks | |
pacmd set-default-sink 3 |
OlderNewer