Open ashutoshmjain opened 3 years ago
You could use straight up FFmpeg for recording from the command line
To record video using commandline using ffmpeg
export FPS=60
export SCREEN=1366x768
export OUTPUT=out.avi
ffmpeg -y -f pulse -i default -f x11grab -r $FPS -s $SCREEN -i $DISPLAY -acodec libmp3lame -vcodec libx264 -preset ultrafast $OUTPUT
on fedora silverblue (gnome - xorg session)
export FPS=60
export SCREEN=1920x1080
export OUTPUT=out.avi
flatpak run --filesystem=host --command=ffmpeg io.mpv.Mpv -y -f alsa -i default -f x11grab -r $FPS -s $SCREEN -i $DISPLAY -acodec libmp3lame -vcodec libx264 -preset ultrafast $OUTPUT
Hi @MaartenBaert
First many thanks for this super useful application. I am using it on NixOS and it works great with x11 (xfce) .. This is more of a queston than issue ..
When I try to record without graphical interface , it errs out saying that there are many other platform plugins available. One of them being "linux framebuffer". I was wondering if we can use it to record (screen and audio) without having to fire up the gui ? If yes , could you please point me to any available documentation . I did check the website but couldn't find anything ..may be I am not looking at the right place ..
Thanks
Ashutosh