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

Published
Categorized as bash

ein wenig jquery

$(“img[src*=’picload’],img[src*=’direct’]”).each(function(){ $( $(“body”).children()[0] ).before(“<img src=”+$(this).attr(“src”)+” width=50>”);}) check for all imgs with picsload or direct in src and cop them right after body tag with width 50 and remove height value  

Published
Categorized as jquery

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… Continue reading alsa…. man man man…

Published
Categorized as bash

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

Published
Categorized as bash

ipad iphone ipod erkennen

The JavaScript Copy this code to the clipboard 1 var isiPad = navigator.userAgent.match(/iPad/i) != null; A quick String.match regular expression test can check for the presence of “iPad” in the user agent string. The PHP Copy this code to the clipboard 1 $isiPad = (bool) strpos($_SERVER[‘HTTP_USER_AGENT’],’iPad’); This time we look for the position of “iPad”… Continue reading ipad iphone ipod erkennen

Published
Categorized as bash