Friday, June 12, 2009

Mencoder / ffmpeg resizing random bits

mencoder -o tmp.avi -oac copy -vf scale -zoom -xy 176 -ovc -


ffmpeg -a .avi -sameq -vcodec xvid -acodec mp3 -s 320x240 .avi

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:

mencoder input.mpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -vf scale=640:480 -o output.avi

Friday, May 22, 2009

Fix can't send mail problem in windows mobile

Install the Microsoft patch KB958639

Default keyboard in Windows Mobile 6.1 with Opera


Use PHM Regedit

Navigate to
HKEY_CLASSES_ROOT\CLSID\{42429667-ae04-11d0-a4f8-00aa00a749b9}\IsSipInputMethod

Set IsSipInputMethod from 1 to 0

Sotreset and opera keyboard works as normal

Tuesday, April 21, 2009

Google Calendar CSV format

"Subject","Start Date","Start Time","End Date","End Time","All day event","Reminder on/off","Reminder Date","Reminder Time","Meeting Organizer","Required Attendees","Optional Attendees","Meeting Resources","Billing Information","Categories","Description","Location","Mileage","Priority","Private","Sensitivity","Show time as"

"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

mencoder -oac copy -ovc xvid -vf scale -zoom -xy 320 -xvidencopts bitrate=450 -o output.avi ~/input.avi

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

Append text to cell data in Excel

A1 has "Bob"

in A2 type =a1&" Loblaw"

then A2 becomes Bob Loblaw