Jan 23 2012

ffmpeg – overlay

copy metadata from m4a to mp3 | ogg

ls *.m4a | while read line; do out=`echo $line|cut -d”.” -f1`; ffmpeg -i “$line” -ab 192k -ar 44100 -y “$out.mp3”  -map_meta_data 0:0 ;done

overlay logo
ffmpeg -i IMG_0247.MOV -vf “movie=wm.png [logo]; [in][logo] overlay=10:10 [out]” -y out.mov


Dec 28 2011

Oktolight is almost ready !!

features:

supports following protocols:
Atmolight
Karatelight
fnordlicht
DMX (atmowin DMX)

Channels: up to 64

After each 4 Channels you will needs an additional channel extender. 5 cables required. It’s based on atmega8 @ 16MHz. The Master is running with an FTDI RL232 @ 57600 and includes one slave on board. So will have 4 channels with one box. If you required more then 4 channels you will need to get the additional extenders or build by your own 🙂
PCB soon to publish.


Dec 28 2011

enable facetime on iphone 4 over 3g without 3rd party apps

open /System/Library/CoreServices/SpringBoard.app/N90AP.list with ifunbox
add key:

<key>3Gvenice</key>
<true/>

save and restart


Aug 7 2011

ffmpeg – VOB to flv + movs

ls /cygdrive/k/VIDEO_TS/VTS_01_*.VOB| while read line; do in=`echo $line|cut -d”/” -f5 `; ffmpeg -i $line -vcodec libx264 -pass 1 -vpre fastfirstpass -ar 44100 -ab 128k -b 2M -deinterlace -y /cygdrive/e/_BERIVAN_OKTAY_DUGUN/DVD3/$in.flv;done

then, once you have the video as h264, no reencoding is required for movs:
use ffmpeg -i NAME -vcodec copy -acodec copy NAME.mov


Jun 3 2011

jquery bookmarklet – add jquery on every site you want

javascript:var s=document.createElement('script');s.setAttribute('src','http://jquery.com/src/jquery-latest.js');document.getElementsByTagName('body')[0].appendChild(s);


May 27 2011

alsa…. man man man…

vi /etc/asound.conf

pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}
ctl.!default {
type hw
card 1
}

cat /proc/asound/cards
0 [Webcam ]: USB-Audio - Philips SPC 1030NC Webcam
Philips CE Philips SPC 1030NC Webcam at usb-orion-ehci.0-1.2, high speed
1 [Audio ]: USB-Audio - USB Audio
USB Audio at usb-orion-ehci.0-1.5.7, full speed

sheeva[0][~]# aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 1: Audio [USB Audio], Gerät 0: USB Audio [USB Audio]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0

aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=Audio
USB Audio, USB Audio
Default Audio Device
front:CARD=Audio,DEV=0
USB Audio, USB Audio
Front speakers
surround40:CARD=Audio,DEV=0
USB Audio, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Audio,DEV=0
USB Audio, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Audio,DEV=0
USB Audio, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Audio,DEV=0
USB Audio, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Audio,DEV=0
USB Audio, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Audio,DEV=0
USB Audio, USB Audio
IEC958 (S/PDIF) Digital Audio Output

also, make sure the sample rate is set correctly in /etc/asound.conf, otherwise you will hear crackling sound like a bad CD:

period_time 0
period_size 4096
buffer_size 131072
rate 22050


depending on the application you are using. In my case I am using espeak and aplay at 22050 hz.

here you can see the default expected sample rate:
sheeva[1][~]# cat /proc/asound/Audio/stream0
USB Audio at usb-orion-ehci.0-1.5.7, full speed : USB Audio

Playback:
Status: Stop
Interface 1
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 1 OUT (ADAPTIVE)
Rates: 48000
Interface 1
Altset 2
Format: S16_LE
Channels: 6
Endpoint: 1 OUT (ADAPTIVE)
Rates: 48000

Capture:
Status: Stop
Interface 2
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 2 IN (ASYNC)
Rates: 48000

so overall my conf is looking like this now:

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:1,0"
period_time 0
period_size 4096
buffer_size 131072
# period_size 1024
# buffer_size 4096
rate 22050
}
bindings {
0 0
1 1
}
}

ctl.dmixer {
type hw
card 1
}

test mic:
arecord -f cd -d 5 -D dsnoop:1,0 -c 1 | aplay -
or record:
arecord -f cd -d 5 -D dsnoop:1,0 -c 1 test.wav
5 sec record, 1 channel, cd quality, device dsnoop:1,0 (can be found with aplay -L)

old – not working for me anymore:
asoundconf set-default-card Audio

to set default f***ing card

also worth to check the settings in:
/etc/modprobe.d/alsa-base.conf


Apr 8 2011

mount jffs2

if required:
apt-get update && apt-get install mtd-utils

mkdir m
modprobe mtdram total_size=24576 erase_size=128
cat /proc/mtd
modprobe mtdblock
dd if=jffs2.img of=/dev/mtdblock0
mount -t jffs2 /dev/mtdblock0 m


Apr 6 2011

Testing wp 4 iphone

20110406-102540.jpg


Feb 25 2011

Schwiegereltern – Samsung Fehler – LE40M71B


Jan 24 2011

Für Izzet

Fur izzet