Setting up FFscreencast

DEPRECATED - we use ffmpeg directly instead


Requirements

apt install ffmpeg v4l-utils
ffmpeg -version

and as we are using our own webcam overlay

apt install xawtv
# mplayer

Install

as root

git clone https://github.com/cytopia/ffscreencast
cd ffscreencast/
cp bin/ffscreencast /usr/local/bin/

Usage

as user

ffscreencast --test
ffscreencast --slist
ffscreencast --clist

cat ~/.config/ffscreencast/ffscreencastrc

start recording with webcam overlay

ffscreencast -s1 -c1 --dry
ffscreencast -s1 -c1

or do the overlay yourself (fits well into DWM

xawtv -hwscan
xawtv -randr -noalsa -c /dev/video0 &
ffscreencast -s1 --dry
ffscreencast -s1

also let’s stick to the first xinerama screen by forcing resolution

xrandr
/usr/bin/ffmpeg -hide_banner -loglevel info -thread_queue_size 512 -f x11grab \
    -video_size 1920x1080 \
    -i ":0.0" -c:v libx264 -crf 0 -preset ultrafast -threads 0 \
    "/home/elge/Desktop/Screencast.`date +%s`.mkv"

Resources

https://github.com/cytopia/ffscreencast

https://www.debugpoint.com/live-streaming-applications-linux-2022/

https://trac.ffmpeg.org/wiki/Capture/Desktop

alternatives

https://www.maartenbaert.be/simplescreenrecorder/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun