From recent years we have been using
videos. But now it is apast thing and the latest technique is using
GIF(Graphical interchange format) images instead of videos. You may be getting a doubt that how can
GIF image replace a video? We can do this in this way. First we have
to install some stuff to do this :
sudo apt-get install imagemagick mplayer gtk-recordmydesktop
Then record any video from your desktop or from any where. By
entering the above command we will get some stuff from internet, they
are image magick, Mplayer, desktop recorder. Then use the desktop
recorder to capture a screen cast and save the video file. And then
use OGV video, Mplayer to capture the JPEG screen shots and then save
the output file. Then enter the below command in the terminal :
mplayer -ao null <video file name> -vo jpeg:outdir=output
Then after this use image magick to convert the output file to
animated GIF image by using the below command :
convert output/* output.gif
Then if you want to optimize the output we got then use the below
command in the terminal :
convert output.gif -fuzz 10% -layers Optimize optimised.gif
The fuzz factor can be used between 3% to 10% to reduce the image
size to a great level.
Or also you can use the below command
instead of the above command :
gifsicle -O in.gif -o out.gif
If you want to reduce the size further
more decrease the fuzz factor to 3% like this :
convert output.gif -fuzz 3% -layers Optimize finalgif.gif
And then use the below command in the
terminal :
ffmpeg -i Untitled_Screencast.webm -loop_output 0 -r 5 -s 320x200 -pix_fmt rgb24 out.gif
And then use the below command in the terminal :
convert output.gif -fuzz 8% -layers Optimize finalgif.gif
That's
all you have the animated gif image where there is no need to start
it like a video and so we can watch the video like an image file in
real time.
Here is an example of of GIF image try it for your own videos you will surely love it.
No comments:
Post a Comment