Screen capture of a selected window with ffmpeg in Ubuntu

After some trial and error and reading some other posts, I finally manage to capture screencast of a selected window with ffmpeg under 10.04. I am using the native ffmpeg from ubuntu and so recompiling is not needed. The command I’m using is as below. ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r…

Convert office documents and slides to pdf

I was trying to show some slides in my dropbox folder to my collaborator with my android tablet. I only have the pptx file and it displays so slowly on my ASUS transformer. It came to me maybe I can connect to my desktop in office remotely to convert the slides to pdf. I did…

Fixing ogv problem on YouTube

It appears that YouTube occasionally  hiccups on some ogv files and produces green screen. The following may not be the best solution. But it almost always solves the problem by first transcoding the video to avi. In linux, it can be done by mencoder as follows mencoder input.ogg -ovc xvid -oac mp3lame -xvidencopts pass=1 -o…

Remove audio noise from captured videos

I have a JVC HD camcorder to video tape some presentations. The webcam is not bad but the AC in our room is just too noisy. As I mentioned in a previous post, one can easily remove noise using Audacity. However, the video from the my camcorder has the annoying MTS format. It took me…

Making a noise free screencast

Ubuntu has very convenient function to generate screencast. My favorite is gtk-recordMyDesktop. However, my mic isn’t very high quality and my screencast always ends up with annoying background noise. Actually, this noise can be easily removed by denoising tools such as Audacity. One just needs to exact the audio track, denoise it with Audacity, and…

SMB mount doesn’t work as regular user

This is something old. I “fixed” this several times and it happens again. I just include the solution here (original from this link) so that I don’t need to look for it again.  $sudo chmod +s `which mount.cifs` ### <- that’s as a super user  

widescreen resolution in virtualbox

I installed xubuntu under virtualbox in my widescreen laptop. But I was stuck with space wasted on both sides when I switched to fullscreen since default resolution is 4:3. The fix is quite simple though. Just taking advantage of the xrandr command… xrandr –newmode “1360×768”   84.75  1360 1432 1568 1776  768 771 781 798 -hsync…

A story of getting Internet in Osaka

I am having a two week stay in Japan. I have conference the week after and since it is spring break, I left early and try to have some change in life (anyway, what makes any difference if most of one’s life is writing codes/papers/proposals ^^; ).  I didn’t pack well (it typically happens) since…

Apple II/e Emulator Window Disappear

I played some old Apple II games recently and applewin emulator works great in winxp under virtualbox for a while. (It is kind of funny and maybe partially ironic to run emulator under another virtual os.) However, the simulation window one day just disappeared. Even reinstalling the emulator doesn’t work, I could have restored to…