About the author

My photo

Java, Scala, and everything

Friday, June 12, 2009

JAVArsowia 2009

Next edition of JAVArsovia conference is getting closer :) Schedule looks amazing! Four tracks, and everything for free! What a pity I (probably) can't go there this year :( I would love to see presentations on testing and TDD (quite many presentations related to testing this year), Apache Wicket, Android, JVM virtualisation...

I know some speakers, not all of them, but the ones I know are great, so I assume the others are the same :) Also I wouldn't miss evening meeting, drinking beer, talking with fellow geeks and meeting new ones.

Well, I won't be there, but YOU still can :) I am pretty sure you won't regret it :)

Tuesday, June 9, 2009

Encoding movies (in ubuntu)

Example command to encode movies in ubuntu.
mencoder input-movie.avi -o output-movie.avi -oac mp3lame -mc 0 -ovc x264 -x264encopts bitrate=45000
You need to have mencoder installed. mp3lame is audio codec, x264 is video codec. To see other possible codecs type
mencoder -ovc help -ova help 
-mc 0 is for not messing with audio synchronization. Without it mencoder tries to synchronize audio with video, and it can break the synchronization. So if in source movie audio was synchronized well include this option. After -x264encopts there are x264 codec options. Other codecs have other options.

Mencoder howto site was helpful while looking for all this information.