Last active
January 24, 2022 17:53
-
-
Save roman4ello/b6caef79c3e04e4bd551d0c36c771762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Install ffmpeg | |
apt-get install -yqq ffmpeg | |
* Exmaple command to start video record capturing of the screen on ubuntu: | |
[ffmpeg -y -loglevel debug -s 1920x1080 -framerate 15 -f x11grab -i :0.0 -b 5000k -vcodec mpeg4] | |
Where: | |
-y -- Overwrite output files without asking. | |
-loglevel debug -- actually logging level | |
-s 1920x1080 -- screen size | |
-framerate 15 -- framerate | |
-f x11grab -- [fmt (input/output)] | |
-i :0.0 -- input (currently it is display 0.0) | |
-b 5000k -- bitrate | |
-vcodec mpeg4 -- codec (output) | |
* To stop video record: | |
Kill process of the ffmpeg | |
[kill -9 %i" % ffmpeg.pid] | |
Where: | |
ffmpeg.pid - is a pid of ffmpeg process | |
* Related articles: | |
https://ffmpeg.org/ | |
https://ubunlog.com/en/record-your-desktop-from-the-terminal-with-ffmpeg/ | |
How to convert audio to other formats from the terminal with FFmpeg | |
https://ubunlog.com/en/how-to-convert-audio-to-other-formats-from-the-terminal-with-ffmpeg/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment