Dynamic gif images and video recording software in centos
I. Introduction
The parameters of the byzanz-record command of byzanz software package in centos control direct recording of dynamic gif. Use the recordmydesktop command of the recordmydesktop package to record a video. The video format is ogv.
Ii. Explanation (1) byzanz
Install: # yum install byzanz
Recording process:
Byzanz-record-d 40-x 0-y 0-w 400-h 320 demo.gif
(After 40 s, demo.gif files will be generated under the current directory)
Where:-d 40 indicates the recording duration of 40 seconds.
-X 0 horizontal coordinates of the recording area
-Y 0: The ordinate of the recording area. Remember: the origin is (0, 0) in the upper right corner of the screen)
-W 400 width of the recording area
-H 320 height of the recording area
File name saved by demo.gif
(2) recordmydesktop screen recording
Install: # yum install recordmydesktop
Recording: Enter recordmydesktop in the terminal to start recording. After you use Ctrl + C to terminate the program, the out. ogv file (named out_1.ogv) is generated in the current directory ).
Recording on the centos interface: # yum install gtk-recordmydesktop. The terminal uses the gtk-recordMyDesktop command or opens the graphical interface in the application-audio and video.
After recording, press Ctrl + Alt + s to exit and save it in the current user directory. The file name is out. ogv.
(3) Conversion
Convert ogv to avi Video and install # yum install mencoder and mencoder out. ogv-nosound-ovc lavc-o out. avi. Batch shell command: [html] view plaincopy
- Foriin 'Find./-name "*. ogv" '; domencoder $ I-nosound-ovclavc-o $ I. avi; done
Install mplayer and break out. ogv into a single frame image: # mplayer-ao null out. ogv-vo jpeg: outdir = ./
Compress a single frame image into a GIF image: # convert *. jpg out.gif.
Compress out.gif to make the file smaller: # convert out.gif-fuzz 10%-layers Optimize optimized.gif. If the out.gif file has passed the Assembly, an error is reported.
Iii. Summary (1) other recording tools can refer to more exciting content on the Internet.