Capturing the Full xvfb-run Display Using Puppeteer and FFmpeg for RTMP Streaming

FFmpeg with xvfb-run and Puppeteer only captures part of the screen. Use:

xvfbExec -n101 node app.js; ffmpegExec -f x11grab -i :101 -c:v mpeg4 out.avi

hey, ive had this same issu before. try make sure your xvfb screen size matches exactly with x11grab settings so you dont miss parts of the scren. small tweaks here fixed it for me.