0

How I'm capturing:
I'm using Xvfb on Linux, to capture a video and audio from an app that is also running on Linux. I'm using -f x11grab when capturing that video headlessly from Xvfb's frambuffer using FFMPEG, and encoding it using a few other parameters like -c:v libx264 -pix_fmt yuv420p.

The questions:
Since I'm reading from Xvfb framebuffer:

  1. Would it matter that the app uses SVC to encode the video, and I'm using H.264?
  2. Would it matter if I use a different framerate than the app is using?
  3. Would it matter if I use a different pix_fmt than what the app is using?

Reason for asking:

enter image description here
As shown in the image (blue is the app, red is FFMPEG, green is Xvfb);

  • The CPU percentage consumed by FFMPEG shoots up when the app's CPU percentage shoots up. I've also encountered audio being ahead of video for some participants, but I'm unable to figure out whether it's due to network lag or due to FFMPEG's encoding.
  • Also, the aim is to reduce CPU consumption, so I was looking to see if I could do FFMPEG encoding in the same format as the app.
Nav
  • 19,885
  • 27
  • 92
  • 135

0 Answers0