IceGuye Blog

A Light Weight Codec Option for FFMPEG Desktop Recording

FFMPEG is a great software for desktop recording or screen casting. It supports a lot of codecs, MPEG 1 is a great for desktop recording.

Most people like to use the h264 for encoding, but we do not use it, because it is not a free software. MPEG 1 enter public domain in the early years of this century, because all of its patents are expired according to a mailing list discussion in 2008. Therefore, we can use MPEG 1 for free (as in freedom).

Many people like to use webm vp8 or vp9 for publishing their video on the Internet. vp8/vp9 is free software, but we cannot use it, because its encoding speed is too low. For example, if you play a 3D video game with a 30 FPS, you can only get 5 or even less in your webm video. In this situation, your video game is almost not playable, and your video quality is low. MPEG 1 is compression video codec, but it is very light weight and does not require a high computer cpu capability. MPEG 1 is also a very common codec for embed device such as digital camera.

In GNU/Linux, casting your desktop is very easy. All the thing we need to do is just copy and paste the following command to your terminal emulator:

ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 -f pulse -ac 2 -i default -c:v mpeg1video -q:v 1 -c:a pcm_s16le output.mkv We will explain every part of this command for you.

This is it.

Have fun, be free.




Back to Blog's index