Apr 25 2013

apt list Upgradeable packages

apt-get --just-print upgrade


Apr 17 2013

ffmpeg rotate video 90 or 180 degrees


#!/bin/bash

if [ “$2” == “180” ];then
#echo “180 Grad”;
ROTATE=”vflip,hflip”
elif [ “$2” == “90” ];then
#echo “90 Grad”;
ROTATE=”transpose=1″
else
echo -e “$0 mov [180/90]\n\t90 180″
exit
fi

MAX=”-maxrate 3020k -b 3020k -bufsize 2835k ”

#echo ffmpeg -i “$1” -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -vf $ROTATE -y “$1.mov”
#ffmpeg -i “$1” -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -vf “$ROTATE” “/cygdrive/z/09. Private/180/$1″
echo ffmpeg -i \”$1\” -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -vf \”$ROTATE\” -y \’out/$1\’

 


Apr 7 2013

bash: all terminal colors:


for x in 0 1 4 5 7 8 ;do for i in `seq 30 37`; do for a in `seq 40 47`;do echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m";done;echo ;done;done;echo "";

looks like this:
bash_colors