Tips for converting videos for DVD player playback using Avidemux -
1. A very simple fix for avidemux "Trouble initialising audio device" -
Go to "tools->preferences->audio->alsa device" and change it to "default" instead of "dmix"
Wonder why "default" is not the default for that setting!
2. Best encoding settings for playback on a DVD player -
Video - MPEG-4 ASP (Xvid4)
Audio - MP3 (LAME)
3. If you get an error "Encoder not initialised" then most probably the input audio frequency is non standard. Turn on "Audio->Filters->Resampling (Hz)" and that should fix the problem.
Friday, October 23, 2009
Thursday, October 08, 2009
Dazed out english language modification #2
The previous post got me thinking...
Is ,... a valid punctuation mark?
If it isn't then it should be! It indicates a "pregnant" semi-pause (as opposed to an empty one)...
Ever felt like the range of punctuation marks available is simply not enough to convey even the most basic of emotions?? (Well I can use words yeah, but that went out of fashion decades ago!)
:) ;) !!!)
Is ,... a valid punctuation mark?
If it isn't then it should be! It indicates a "pregnant" semi-pause (as opposed to an empty one)...
Ever felt like the range of punctuation marks available is simply not enough to convey even the most basic of emotions?? (Well I can use words yeah, but that went out of fashion decades ago!)
:) ;) !!!)
Random silliness
It popped up in my head while doodling randomly
- I'm a bit insane
- as in,... I continuously think outside the box
- well that's insanity isn't it...
- in this conformant world
- where differences can lead to bloodshed
Monday, October 05, 2009
Javascript handleEvent function
I just discovered this nifty little function!
handleEvent(evt) is basically the internal function which gets called when an event is raised on an object.
For example - when you attach a listener like so (jquery syntax ahoy) $('#divid').click(function(){blah blah}), what really happens is that the anonymous function is added to the event listeners list and the functions in that list are iterated over and called by the handleEvent function defined for DIVs. The anonymous function itself is not called directly when an event is raised.
Seems fairly useless until you realise that you can call this function yourself!
i.e. if you want some other div to handle the click event - use div.handleEvent(evt), passing it the event object!
I am sure it can be used for all sorts of nifty things, I just can't think of any practical examples right now.
TODO: Think of some practical examples.
Also, there is probably a way to attach events to custom objects which define the handleEvent function. Brainfreeze. Gotta try it out soon as I get out of this meeting.
TODO: Attach events to normal objects which define the handleEvent function.
handleEvent(evt) is basically the internal function which gets called when an event is raised on an object.
For example - when you attach a listener like so (jquery syntax ahoy) $('#divid').click(function(){blah blah}), what really happens is that the anonymous function is added to the event listeners list and the functions in that list are iterated over and called by the handleEvent function defined for DIVs. The anonymous function itself is not called directly when an event is raised.
Seems fairly useless until you realise that you can call this function yourself!
i.e. if you want some other div to handle the click event - use div.handleEvent(evt), passing it the event object!
I am sure it can be used for all sorts of nifty things, I just can't think of any practical examples right now.
TODO: Think of some practical examples.
Also, there is probably a way to attach events to custom objects which define the handleEvent function. Brainfreeze. Gotta try it out soon as I get out of this meeting.
TODO: Attach events to normal objects which define the handleEvent function.
Friday, October 02, 2009
Using an external 1920x1080 LCD monitor with Ubuntu/Kubuntu (intel cards)
I got a 23 inch 1920x1080 LCD screen for my laptop... AND... I got it working under Ubuntu (and Kubuntu)!
Here are the steps -
1) Edit your xorg.conf to change the virtual mode line
sudo kate /etc/X11/xorg.conf
change
Virtual 2560 1024
to
Virtual 1920 1880
2) Add appropriate mode lines to your ~/.bashrc
sudo kate ~/.bashrc
Add the following lines at the end -
# Mode lines for external LCD 1920x1080
xrandr --newmode "1920x1080" 172.80 1920 2040 2248 2576 10801081 1084 1118 -HSync +Vsync
xrandr --addmode VGA 1920x1080
xrandr --output VGA --mode 1920x1080
3) Reboot the system (Somehow logout and login did not work for me). Or if you have had it enabled, press Ctrl-Alt-Backspace to restart the x.org server.
Rant: WHY OH WHY does KDE not have an option to extend your desktop across multiple screens?? I can do it easily in Gnome, but all KDE can do is mirror your desktop which sucks when the screens differ greatly in reolution.
Here are the steps -
1) Edit your xorg.conf to change the virtual mode line
sudo kate /etc/X11/xorg.conf
change
Virtual 2560 1024
to
Virtual 1920 1880
2) Add appropriate mode lines to your ~/.bashrc
sudo kate ~/.bashrc
Add the following lines at the end -
# Mode lines for external LCD 1920x1080
xrandr --newmode "1920x1080" 172.80 1920 2040 2248 2576 10801081 1084 1118 -HSync +Vsync
xrandr --addmode VGA 1920x1080
xrandr --output VGA --mode 1920x1080
3) Reboot the system (Somehow logout and login did not work for me). Or if you have had it enabled, press Ctrl-Alt-Backspace to restart the x.org server.
Rant: WHY OH WHY does KDE not have an option to extend your desktop across multiple screens?? I can do it easily in Gnome, but all KDE can do is mirror your desktop which sucks when the screens differ greatly in reolution.
Subscribe to:
Posts (Atom)



