You are not logged in.
Pages: 1
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
EDIT
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)
Offline
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)
Offline
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:
https://trac.ffmpeg.org/wiki/HWAccelIntro
...but I don't use that stuff so I can only mention it.
Last edited by DrZaius (2018-11-06 21:36:29)
Offline
Pages: 1