Aug 1, 2007

Screencast on Linux with ffmpeg and QTRLE codec

Introduction
As we known screencasting or screencapturing on windows is very easy and pretty by using varies application e.g. Techsmith Camtasia studio,Lotus screen CAM . On linux , you have many solutions to make screencast ,e.g. Istanbul, xvidcap, yukon or ffmpeg . Using ffmpeg is the one easy way to produce screencast ,but most people usually encode output by mpeg4,flv or ogg that may not produce good quality video. Recently, I found on Clemens Fruhwirth's blog , the Screencast codec showdown elects the Animation codec as the best codec for screencasts. Animation codec is a run-length encoder also known as qtrle. Unfortunately ffmpeg, the codec library of mplayer, was only able to decode qtrle. So he wrote qtrle encoder for ffmpeg, and now it already checked in to ffmpeg's svn .

What is QTRLE
QTRLE is Apple Quicktime Animation (RLE) Format ,see http://multimedia.cx/qtrle.txt . RLE stands for Run Length Encoding. It is a lossless algorithm that only offers decent compression ratios in specific types of data. RLE compression is only efficient with files that contain lots of repetitive data like screencast that have a little change of pixels from frame to frame , see http://www.prepressure.com/library/compression_algorithms/rle .

Make ffmpeg works with qtrle codec
1. First , check your ffmpeg's formats supported.
$ ffmpeg -formats
in section ' Codecs: ' should have this :
DEV D qtrle
' E ' means that your ffmpeg can encode qtrle , you not need to compile the new one.

2. If your ffmpeg can't encode qtrle ,you must check out the svn verson of ffmpeg, then compile it .
$ ./configure --enable-gpl --enable-x11grab --enable-faad
$ make

3. To make screencast .
$ ./ffmpeg -vcodec qtrle -r 10 -g 300 -s 1024x768 -f x11grab -i :0.0 ~/Desktop/test1.mov
* Replace "-s 1024x768" with your screen resolution.
* "-r 10" sets the frame rate per second. 10fps should be enough for a screencast.
* "-g 300" sets the group size. This instructs the encoder to produce a key frame every 300 frames. With 10fps, this gives you a seekable stream point every 30 seconds.
* If your screencast is still too big, try to raise the group size, lower the frame rate and/or lower the screen resolution.

*** May the force be with you,Good Luck!!!


31 comments:

Anonymous said...

My friend and I were recently talking about the ubiquitousness of technology in our daily lives. Reading this post makes me think back to that debate we had, and just how inseparable from electronics we have all become.


I don't mean this in a bad way, of course! Societal concerns aside... I just hope that as memory becomes less expensive, the possibility of downloading our memories onto a digital medium becomes a true reality. It's a fantasy that I dream about almost every day.


(Posted on Nintendo DS running [url=http://kwstar88.insanejournal.com/397.html]R4 SDHC[/url]NDSBro)

Anonymous said...

Hello,

I am regular visitor of this website[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url]Plenty of useful information on ayinat.blogspot.com. I am sure due to busy scedules we really do not get time to care about our health. Are you really serious about your weight?. Recent Scientific Research presents that almost 70% of all USA grownups are either obese or overweight[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] So if you're one of these individuals, you're not alone. In fact, most of us need to lose a few pounds once in a while to get sexy and perfect six pack abs. Now next question is how you can achive quick weight loss? [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss[/url] is not like piece of cake. You need to improve some of you daily habbits to achive weight loss in short span of time.

About me: I am author of [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss tips[/url]. I am also health expert who can help you lose weight quickly. If you do not want to go under difficult training program than you may also try [url=http://www.weightrapidloss.com/acai-berry-for-quick-weight-loss]Acai Berry[/url] or [url=http://www.weightrapidloss.com/colon-cleanse-for-weight-loss]Colon Cleansing[/url] for effortless weight loss.

Anonymous said...

The exact answer

roger said...

I just wish that shootout had had comparison of cpu used...

Anonymous said...

It's awesome to go to see this site and reading the views of all mates on the topic of this post, while I am also eager of getting familiarity.
Also see my web page > amphora tobacco

Anonymous said...

I'm excited to find this page. I need to to thank you for ones time due to this fantastic read!! I definitely liked every bit of it and I have you saved as a favorite to look at new information in your site.
Look into my blog post ... how to download movies

Anonymous said...

If you wish for to get a great deal from this paragraph then you have to apply these methods to your won weblog.
my site > golden virginia tobacco

Anonymous said...

Good post. I definitely love this site. Stick with it!
my webpage :: van nelle

Anonymous said...

I do accept as true with all the concepts you have offered on your post.
They're really convincing and can certainly work. Still, the posts are too quick for novices. May just you please prolong them a bit from subsequent time? Thanks for the post.
Review my homepage ; Lägenheter i Lara Antalya

Anonymous said...

Hello There. I found your weblog the usage of
msn. This is an extremely smartly written
article. I'll make sure to bookmark it and return to read extra of your useful info. Thanks for the post. I'll certainly return.
Feel free to surf my web blog Asuntoja Bodrumissa

Anonymous said...

This is a topic which is close to my heart... Many thanks!
Where are your contact details though?
my page :: Alanya lägenheter till salu

Anonymous said...

Great web site you have got here.. It's difficult to find high-quality writing like yours these days. I seriously appreciate people like you! Take care!!
Also see my website :: Eiendom i Bodrum

Anonymous said...

If you desire to increase your knowledge simply keep visiting this website and be updated with
the most up-to-date information posted here.
Here is my homepage : Houses for sale in Antalya

Anonymous said...

hi!,I love your writing very so much! percentage we keep up a correspondence extra approximately your post on
AOL? I require an expert on this area to resolve my problem.

May be that's you! Having a look forward to look you.
Also visit my blog post Wohnungen kaufen bodrum

Anonymous said...

Hi there! I know this is kinda off topic nevertheless I'd figured I'd ask.
Would you be interested in exchanging links or maybe guest writing a blog post or vice-versa?
My site covers a lot of the same topics as yours and I feel we could greatly benefit
from each other. If you happen to be interested feel free to send me an e-mail.

I look forward to hearing from you! Fantastic blog by the way!
My web-site : Hus i Bodrum

Anonymous said...

If you would like to obtain a good deal from this paragraph then you have to apply these techniques to your won web site.
My page :: Antalya immobilien

Anonymous said...

Fantastic beat ! I wish to apprentice while you amend your site, how
could i subscribe for a weblog web site? The account helped
me a applicable deal. I have been tiny bit familiar of this your broadcast provided
shiny transparent concept
Also visit my web-site - Leiligheter til salgs i Alanya

Anonymous said...

Hello there! This post could not be written any better!
Reading through this post reminds me of my old room mate! He always
kept chatting about this. I will forward this write-up to him.

Fairly certain he will have a good read. Thanks for sharing!
My site - old holborn

Anonymous said...

Asking questions are in fact pleasant thing if you are not understanding anything entirely, however this paragraph provides fastidious
understanding even.
Feel free to surf my webpage : asuntoturkista.net

Anonymous said...

It is really a nice and useful piece of info. I am glad that you simply
shared this useful information with us. Please stay us up to date
like this. Thanks for sharing.
Feel free to surf my webpage - Asuntoja alanyassa

Anonymous said...

When I originally commented I appear to have clicked the -Notify
me when new comments are added- checkbox and from now on each time a comment is added I receive 4 emails with the exact same comment.
There has to be a means you can remove me from that service?
Thanks!
Look at my web site :: youtube.com

Anonymous said...

Good day! I know this is somewhat off topic but I was wondering which blog platform are you using for this
site? I'm getting tired of Wordpress because I've had problems with
hackers and I'm looking at options for another platform. I would be awesome if you could point me in the direction of a good platform.
Also visit my blog ; tattoo removal

Anonymous said...

It's amazing in favor of me to have a web page, which is useful in favor of my experience. thanks admin
Also visit my web site ... drum tobacco prices

Anonymous said...

fantastic publish, very informative. I'm wondering why the opposite experts of this sector do not notice this. You must proceed your writing. I am sure, you have a huge readers' base already!
Stop by my page ; captain black

Anonymous said...

Very nice post. I just stumbled upon your weblog and wanted to say
that I've truly enjoyed surfing around your blog posts. After all I will be subscribing to your rss feed and I hope you write again soon!
Have a look at my website - amber leaf

Anonymous said...

Hello! Someone in my Facebook group shared this website with us so I came to check
it out. I'm definitely loving the information. I'm bookmarking and will
be tweeting this to my followers! Superb blog and excellent design.
My blog : samson tobacco

Anonymous said...

Highly energetic blog, I loved that a lot. Will there be a part 2?
Also visit my web blog ... http://shombay.com

Anonymous said...

Hey therе! This is my first viѕit to your blog!

We are a colleсtion of vοlunteers
аnd stаrting a nеw initiаtive
in a community in the same niche. Υour blοg provided
us usеful іnformation to work on. Υou have done a marvellous job!


Feel free to visit my page - WebRead

Anonymous said...

Do you minԁ if I quοte a few of yοuг articles аѕ long as
Ι prоvide сredit аnd souгces bacκ to your webpage?

My blog іs in the exact same area of interest as yοurs and my usеrѕ woulԁ truly bеnefit
from some of the information you provide here. Please lеt me know if this ok with you.
Regarԁs!

Stoρ by my ωebsite ... green coffee extract

Anonymous said...

Very nice site with useful and informative content. I really appreciate your efforts.
Free Classified in Pakistan

Anonymous said...

best electronic cigarettes, e cig forum, e cigarette reviews, ecig, smokeless cigarettes, buy electronic cigarette