Wednesday, December 23, 2009
Enter SPL mode on HTC Touch / Vogue
Tuesday, December 15, 2009
VDPAO acceleration in Fedora
Monday, December 14, 2009
Enable deltarpm in Fedora
Thursday, December 10, 2009
Article on Gigabit performance
Monday, October 26, 2009
Convert m4a to mp3
yum install faad2 (if its not already installed).
faad filename.m4a
lame -h -b 192 filename.wav filename.mp3
Tuesday, September 29, 2009
Remove WGA notification
Then delete
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\WgaLogon
Then delete the following in system32
wgatray.exe
wgalogon.dll
dllcache\wgatray.exe
dllcache\wgalogon.dll
And if
SoftwareDistribution\Download\6c4788c9549d437e76e1773a7639582a
exists, delete that whole dir and reboot
Tuesday, September 22, 2009
Play h.264 on slow computer (mplayer)
or
mplayer -vfm ffmpeg -lavdopts lowres=0:fast:skiploopfilter=all video.mkv
I've had better success, framerate and quality with the first one.
Thursday, August 13, 2009
Rip DVD and convert to XVID with mencoder
mplayer dvd://2 -dvd-device Grandizer.iso
Detect crop area in video (for 20 - 30 seconds)
mplayer dvd://2 -dvd-device Grandizer.iso -vf cropdetect
Take the detected crop area and place in the crop=xxx:xxx:xx:xx parameter below. Scale 704:304 is for widescreen.
mencoder dvd://2 -dvd-device Grandizer.iso -vf crop=704:464:10:10,scale=704:304 -ovc xvid -xvidencopts bvhq=1:chroma_opt:quant_type=mpeg:bitrate=1355:pass=1 -oac copy -o /dev/null ; mencoder dvd://2 -dvd-device Grandizer.iso -vf crop=704:464:10:10,scale=704:304 -ovc xvid -xvidencopts bvhq=1:chroma_opt:quant_type=mpeg:bitrate=1355:pass=2 -alang en -oac mp3lame -lameopts br=128:cbr -o grandizer_convert.avi
Friday, June 12, 2009
Mencoder / ffmpeg resizing random bits
ffmpeg -a
mencoder -v 1.vob \
-alang en \#language english
-vf yadif \#yadif deinterlacer
-ovc x264 \ #codec x264
-x264encopts subq=4:bframes=4:b_pyramid:weight_b:pass=1:psnr:bitrate=1800:turbo=1 \ #1800 bitrate gives a good size to qualit ratio
-oac copy \ #for now only copy the audio
-ofps 24000/1001 \#approx 23.9 fps
-slang en \
-o /dev/null
Second pass:
mencoder -v 1.vob \
-alang en \
-vf yadif \
-ovc x264 \
-x264encopts subq=5:partitions=4x4:8x8dct:frameref=3:me=hex:bframes=4:b_pyramid:pass=2:psnr:bitrate=1800 \
-oac mp3lame \ #mp3lame audio codec
-lameopts abr:br=256:vol=7 \ #256kbits bitrate
-ofps 24000/1001 \
-o 1.avi #write everything as avi for now
10.6. Rescaling movies
Often the need to resize movie images emerges. The reasons can be many: decreasing file size, network bandwidth, etc. Most people even do rescaling when converting DVDs or SVCDs to DivX AVI. If you wish to rescale, read the Preserving aspect ratio section.
The scaling process is handled by the scale
video filter: -vf scale=width
:height
. Its quality can be set with the -sws option. If it is not specified, MEncoder will use 2: bicubic.
Usage:
mencoderinput.mpg
-ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -vf scale=640:480 -ooutput.avi
Friday, May 22, 2009
Default keyboard in Windows Mobile 6.1 with Opera
Tuesday, April 21, 2009
Google Calendar CSV format
"Toronto @ Atlanta SCORE",01/19/09,02:00:00 PM,,,,"ON",,,,,,,,,"Toronto @ Atlanta SCORE",,,,TRUE,3,
Heading is "Private" - value True, False
Heading is "Show time as"
Value is "3" for available ("2" for busy).
Friday, April 3, 2009
Change resolution / scale in mencoder
audio is copied
video is xvid
-xy is the resolution, in this case 320 is X and the Y will be proportional
bitrate is 450 (this is small).. usually 8-900kbps
Tuesday, March 24, 2009
Bluetooth in Linux
~/.asoundrc
pcm.bluetooth {
type bluetooth
device 00:11:22:33:44:55
}
mplayer -ao alsa:device=bluetooth
Audacious
options->preferences->Audio->Current Output Plugin->ALSA
Output Plugin Preferences->Device Settings->audio device: "bluetooth"
Monday, March 23, 2009
Convert .bin .cue to .iso
[user1@localhost Download]$ bchunk rcty.bin rcty.cue rcty
[user1@localhost Download]$ bchunk rcty.bin rcty.cue rcty
binchunker for Unix, version 1.2.0 by Heikki Hannikainen
Created with the kind help of Bob Marietta
partly based on his Pascal (Delphi) implementation.
Support for MODE2/2352 ISO tracks thanks to input from
Godmar Back
and Matthew Green
Released under the GNU GPL, version 2 or later (at your option).
Reading the CUE file:
Track 1: MODE1/2352 01 00:00:00
Writing tracks:
1: rcty01.iso 237/237 MB [********************] 100 %
Wednesday, February 18, 2009
VMWare keypad doesn't work
xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu
Monday, February 16, 2009
Canon CHDK links
http://lifehacker.com/387380/turn-your-point+and+shoot-into-a-super+camera
http://chdk.wikia.com/wiki/CHDK_firmware_usage
http://abaditya.com/2008/04/19/playing-around-with-chdk-and-hdr-imaging/
http://chdk.wikia.com/wiki/Samples:_High-Speed_Shutter_&_Flash-Sync
Windows Mobile default SIP keyboard with Opera
Change the value from 0 to 1
Tuesday, February 3, 2009
USB HDD repeats [sdb] Sense Key : No Sense [current] error
In FC10 you have to:
Nov 11 21:42:10 localhost kernel: sd 5:0:0:0: [sdb] Add. Sense: No additional
sense information
Nov 11 21:42:10 localhost kernel: sd 5:0:0:0: [sdb] Sense Key : No Sense [current]
sudo cp /lib/udev/rules.d/60-persistent-storage.rules
/etc/udev/rules.d/60-persistent-storage.rules
edit: /etc/udev/rules.d/60-persistent-storage.rules
change line 62 from: KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
to: KERNEL!="sr*", ENV{DEVTYPE}=="partition", IMPORT{program}="vol_id --export
$tempnode"
From https://bugzilla.redhat.com/show_bug.cgi?id=473017
Monday, February 2, 2009
mencoder to normalize audio in AVI for youtube
mencoder MVI_4930.AVI -ovc copy -oac mp3lame -af volume=12.1:0 -lameopts cbr:preset=128 -srate 22050 -o MVI_4930_plus_12db.AVI
This will reencode the audio in mvi-4930.avi to mp3 128kpbs/22050 sample rate and add 12db to the original volume
mencoder MVI_4930.AVI -ovc copy -af volnorm=1 -oac mp3lame -lameopts cbr:preset=128 -srate 22050 -o MVI_4930_normalize.AVI
This will reencode the audio and normalize the volume in mp3 format, constant 128kbps / 22050 sample rate.