Use RecordMyDesktop for screen recording in Linux

Source: Internet
Author: User

Use RecordMyDesktop for screen recording in Linux

The screen recording function is essential for sharing game strategies and demonstrating computer software operations. In Windows, users may download pirated commercial software. In the GNU/Linux operating system, there are ready-made free software available for use, but there is no graphical interface, but it is also convenient and effective. What's more, this is not a problem for beginners of Linux users. This topic describes how to use recordmydesktop for screen recording.

Install the software package. You need to install pavucontrol (PulseAudio Volume Control) before using recordmydesktop ). Otherwise, the video is only composed of images without sound, and the device in the sound option cannot be set. Descriptions of pavucontrol are as follows:

PulseAudio Volume Control (pavucontrol) is a simple GTK + based volume control tool (mixer) for the PulseAudio sound server. in contrast to classic mixer tools this one allows you to control both the volume of hardware devices and of each playback stream separately. it also allows you to redirect a playback stream to another output device without interrupting playback.

Then, run pavucontrol and select "Monitor of Built-in Audio andio Stereo" on the "Recording" tab to record the Audio being played on the computer. If you select "Built-in Audio andio Stereo", the sound input by the microphone is recorded. Note that you must enable the recording program before these settings are available. As shown in:

Next, you can run the recordmydesktop command to record the screen. The meanings of the parameters used are self-evident. Note that the value of the -- device option is pulse.

Recordmydesktop -- display: 0.0-x 1728-y 156 -- width 1024 -- height 768 -- device pulse -- overwrite-o wesnoth-under-the-burning-sun.ogv

When recording a bsnes game, because the default frame rate is 60, you must specify the -- fps option in the following command. At the same time, the -- s_quality option is used to set the highest sound quality:

Recordmydesktop -- display: 0.0-x 1845-y 278 -- width 796 -- height 581 -- fps 60 -- device pulse -- s_quality 10 -- overwrite-o bsnes. ogv

To conveniently know the size and position of the window to be recorded, you can call the self-written Sawfish function display-window-paras to display the window information. This function is currently bound to the Super-e shortcut. The function content is as follows:

; Display window position and dimension
(Defun display-window-paras ()
"Display the position, dimension and group ID of the current window ."
(Interactive)
(Let * (cur-win (input-focus ))
(Win-width (car (window-dimensions cur-win )))
(Win-height (cdr (window-dimensions cur-win )))
(Win-x (car (window-position cur-win )))
(Win-y (cdr (window-position cur-win ))))
(Display-message
(Concat "Name:" (window-name cur-win) "\ n"
"Dimension:" (number-> string win-width) "x" (number-> string win-height) "\ n"
"Position:" (number-> string win-x) "x" (number-> string win-y) "\ n"
"Group ID:" (number-> string (window-actual-group-id cur-win )))
Alert-msg-attrib )))

(Bind-keys window-keymap
"Super-e" '(display-window-paras ))

After you execute display-window-paras, the displayed information is as follows:

When you need to end the video, press Ctrl + c in the terminal window to find the exit signal to recordmydesktop, and exit automatically after the video file is saved. Next, you need to convert an ogv video to a common format, such as mp4. A problem to be solved is how to keep the sound synchronized with the image. Currently, ffmpeg is used for format conversion (mencoder has poor performance after trial ):

Ffmpeg-I input_file.ogv-acodec libmp 3lame-acodec ac3-AB 128 k-ac 2-vcodec libx264-preset slow-crf 22-threads 4 output_file.mp4

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.