I am getting a proper video output, if i used to record a screen resolution for about 1024x768(max) or lesser. but whenever i used to increase the resolution like "1600x900 or 1920x1080 or greater than 1024x768 (approx.)", i am getting distorted video.
distorted image(frame of a video) with 1600x900 resolution https://i.stack.imgur.com/iajzC.png
1600x900 video information : https://i.stack.imgur.com/yutDq.png
proper image(frame of a video) with 1024x768 resolution https://i.stack.imgur.com/NcUt1.png
1024x768 video information : https://i.stack.imgur.com/TeaW7.png
I am using Xvfb & [both ffmpeg and jmf jar (either)] to record a headless browser inside docker container.
I am getting a proper output, if i used to screen record an actual display(monitor), I am facing this issue only when i record the display inside docker (specifically headless browser) by using x11grab.
To Start the Xvfb and ScreenRecording
Xvfb :5 -screen 0 1600x900x16 &
ffmpeg -nostdin -hide_banner -nostats -loglevel panic -video_size 1600x900 -framerate 30 -f x11grab -i :5 output.mp4 &
if i replaced 1600x900 with 1024x768 or lesser than this, it is providing a proper video without any distortion.
Am I missing anything??
Please help!
Thanks for your time