#ffmpeg #cli #screenrecord

bin+lib ffmpeg-screen-recorder

This program is a gadget which helps you use FFmpeg to record your screen on Linux. The video record can be saved as a file, or be streamed via RTMP protocol.

22 stable releases

1.0.21 Nov 13, 2023
1.0.19 Sep 9, 2023
1.0.18 Nov 2, 2022
1.0.17 Mar 17, 2022
1.0.5 Jul 27, 2018

#71 in Video

Download history 4/week @ 2024-02-14 56/week @ 2024-02-21 4/week @ 2024-02-28 2/week @ 2024-03-13 46/week @ 2024-03-27 72/week @ 2024-04-03

118 downloads per month

MIT license

18KB
354 lines

FFmpeg Screen Recorder

CI

This program is a gadget which helps you use FFmpeg to record your screen on Linux. The video record can be saved as a file, or be streamed via RTMP protocol.

Setup

All you need is FFmpeg. You can get one here. It has to be compiled with libxcb, libfdk-aac and libx264 libraries.

Help

EXAMPLES:
ffmpeg-screen-recorder                    # Record the full screen without audio and output into the current working directory
ffmpeg-screen-recorder -w                 # Select a window and record it without audio and output into the current working directory
ffmpeg-screen-recorder -a                 # Record the full screen with the system audio and output into the current working directory
ffmpeg-screen-recorder -o /path/to/file   # Record the full screen without audio and output to /path/to/file
ffmpeg-screen-recorder -o rtmp://xxx      # Record the full screen without audio and output to rtmp://xxx

Usage: ffmpeg-screen-recorder [OPTIONS]

Options:
  -w, --window                     Select a window to record
  -a, --with-audio                 Record your screen with audio which could be internal or external. It depends on your computer environment
  -n, --no-normalize               Do not pad the video size with black borders to the fixed ratio of 16:9 [aliases: nn]
  -o, --output <FILE/RTMP_URL>     Assign a destination of your video. It should be a file path or a RTMP url [default: CWD/<time>.mp4]
  -f, --ffmpeg-path <FFMPEG_PATH>  Specify the path of your FFmpeg executable binary file [default: ffmpeg]
  -h, --help                       Print help
  -V, --version                    Print version

License

MIT

Dependencies

~6–16MB
~202K SLoC