You are not logged in.

#1 2018-10-03 02:07:38

Registered: 2018-05-16
Posts: 5

[Solved] Screencasting performance

A quick one for you guys, using ffmpeg to record screen while gaming, though doing so creates lag in game and records seemingly skip frames. Not exactly sure what parameters I can tweak there to improve performance. Please help. This is the command I am currently using to record :

ffmpeg -f x11grab -video_size 1366x768 -framerate 15 -i $DISPLAY -f alsa -i default -c:v libx264 -preset ultrafast -c:a aac screen.mp4


I was able to get a significant performance upgrade by skipping encoding entirely:

ffmpeg -f x11grab -video_size 1366x768 -framerate 15 -i $DISPLAY -f alsa -i default -c:v libx264 -crf 0 -preset ultrafast -c:a aac screen.mkv

Last edited by fap (2018-10-03 21:47:39)


#2 2018-10-26 11:19:07

Registered: 2018-02-13
Posts: 79

Re: [Solved] Screencasting performance

you can use community/obs-studio instead of directly using ffmpeg, it can utilize video adapter for encoding and grabbing video (at least with proprietary nvidia drivers)


#3 2018-11-06 21:29:10

Registered: 2008-01-02
Posts: 187

Re: [Solved] Screencasting performance

You'll probably get better performance if you use libx264rgb instead of libx264 when capturing from x11grab.

It would also be worth looking into the various hardware based options supported by ffmpeg:

...but I don't use that stuff so I can only mention it.

Last edited by DrZaius (2018-11-06 21:36:29)


Board footer

Powered by FluxBB