ssr icon indicating copy to clipboard operation
ssr copied to clipboard

Recording on console without graphical interface

Open ashutoshmjain opened this issue 3 years ago • 2 comments

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

ashutoshmjain avatar Aug 06 '21 00:08 ashutoshmjain

You could use straight up FFmpeg for recording from the command line

mathieu-aubin avatar Aug 10 '21 21:08 mathieu-aubin

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
 

fastrizwaan avatar Oct 21 '22 10:10 fastrizwaan