Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wachin/ffmpeg-screencast
Capture and record your screen with ffmpeg from Linux terminal with the command line file manager "Clex" using scripts for pause option (joining created video pieces into one)
https://github.com/wachin/ffmpeg-screencast
bash capture clex ffmpeg linux recorder screen screencast script x11
Last synced: about 1 month ago
JSON representation
Capture and record your screen with ffmpeg from Linux terminal with the command line file manager "Clex" using scripts for pause option (joining created video pieces into one)
- Host: GitHub
- URL: https://github.com/wachin/ffmpeg-screencast
- Owner: wachin
- License: gpl-3.0
- Created: 2022-08-05T19:41:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T04:15:45.000Z (about 1 year ago)
- Last Synced: 2023-10-25T04:41:10.721Z (about 1 year ago)
- Topics: bash, capture, clex, ffmpeg, linux, recorder, screen, screencast, script, x11
- Language: Shell
- Homepage:
- Size: 1.99 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ffmpeg-screencast
Screencast with ffmpeg with pause optionI had this idea because I saw the following abandoned project:
[https://github.com/raviraa/ffmpegui](https://github.com/raviraa/ffmpegui)
# This is how it looks
The folow screenshot is the Konsole terminal with the Clex command line File Manager inside:![](vx_images/526166604615691.png)
and working with record the screen in a rectangle of 854x480:
![](vx_images/251707327941442.png)
this rectangle can be moved around the screen to capture what matters most to you
## Features
- Record rectangle
- Follow mouse
- Record in format: mkv
- Record in format: mp4 (it is necessary to paste the corresponding profile inside the folder 🗀 Profiles)
- Record in Full Screen (it is necessary to paste the corresponding profile iside the folder 🗀 Profiles)# Dependencies
```
sudo apt install ffmpeg git clex pv
```I suggest to use the Clex File Manager for command line usage, but you can also use: "nnn" or some terminal such as: xfce4-terminal, gnome-terminal, konsole, tilix, qterminal, etc, etc
# Installation
I suggest that you clone this project into some folder, and that you know that this program will always be cloned there:
```
git clone https://github.com/wachin/ffmpeg-screencast
```next you must enter from a terminal into the cloned repository:
```
cd ffmpeg-screencast
```write in the terminal and hit Enter:
clex
The first time you use clex you should configure it, hit Enter some times for that:
![](vx_images/20231023-225707-clex-enter.png)
you hit enter again:
![](vx_images/20231023-230142-you-it-enter-again.png)
then appear:
![](vx_images/20231023-230548-then-appear.png)
**CLEX configuration utility**:
```
End of options mark '--' is supported
Pager program: less
Text editor: vi=== BEGIN ==================
CMD_F3=less -- $f
CMD_F4=vi -- $f
CMD_F5=cp -ir -- $f $2
CMD_F6=mv -i -- $f $2
CMD_F7=mkdir --
CMD_F8=rm -- $f
CMD_F9=lpr -- $f
=== END ====================Save this configuration (y/N) ?
```you need to give yes = y hit enter, and again hit enter, and it will be ready to use:
![](vx_images/20231023-230922-move-to-ffmpeg-yuv444p-losseless-mkv.sh.png)
## Screencast
Under clex first get on top of the script:→ ffmpeg-yuv444p-losseless-mkv.sh
![](vx_images/20231023-231106-you-are-in-ffmpeg-yuv444p-losseless-mkv.sh.png)
and hit Enter twice and it will start to record the screen in a box of 854x480 pixels:
![](vx_images/20231023-231359-record-working.png)
to stop with:
⌨ Ctrl + C
To record another video repeat the process.
## Join videos
To join the videos get on top of the script:→ join-mkv.sh
and hit Enter twice, and wait a bit, the videos will be joined into the folder:
🗀 recorded-videos
if for some reason you need the initial videos they will be in the folder:
🗀 Old
## To use it with a terminal
To use with some Linux terminal, just write the name of the script and execute with ENTER like:**Screencast**
./ffmpeg-yuv444p-losseless-mkv.sh
You can help with tab to [autocomplete commands](https://www.computerhope.com/tips/tip176.htm)
**Join videos**
./join-mkv.sh
**Other FFmpeg options**
I have made this program so that it records with the videos in the mkv format because it gave me the best results, but you can record with mp4 by copying some of the profiles that are in the folder:🗀 Profiles
where there are also profiles to record in full screen, example:
![](vx_images/570244321122966.png)
and that is:
![](vx_images/315614269937310.png)
then run clex in a terminal in the main path and see:
![](vx_images/115894179807496.png)
hit Enter end the recorder are into the full screen
# The beggining
First I started doing some tutorials on how to record the screen with ffmpeg from the terminal. In Spanish:**[Screencast] Grabar pantalla con FFmpeg 4.2 + seguir cursor + mostrar cursor + grabar rectangulo de 480p**
https://facilitarelsoftwarelibre.blogspot.com/2021/03/screencast-ffmpeg-follow-mouse-linux.html