Open ArslanMehmoodTkxel opened 2 months ago
A bit late but try this
const stream = await getStream(page, { frameSize: 1000, videoBitsPerSecond: 7 1000 1000, audioBitsPerSecond: 320 * 1000, mimeType: 'video/webm;codecs=h264,opus', audio: { mandatory: { sampleRate: 44100, }, }, video: { mandatory: { minWidth: WIDTH, minHeight: HEIGHT, minFrameRate: 30, maxWidth: WIDTH, maxHeight: HEIGHT, }, }, });
Despite attempting various resolutions, I've observed no improvement in the video quality. Upon using ffmpeg, I encountered the following logs:
frame=80 fps=0.7 q=0.0 size=1536kB time=00:02:07.31 bitrate=98.8kbits/s dup=0 drop=1165 speed=1.04x
These logs indicate that the generated video is of low quality.My configurations are as follows:
I am launching chrome with these params
Here is the configuration of ffmpeg
Any suggestions on how to enhance the video quality would be greatly appreciated.
Note: I have deployed on Kubernetes cluster the quality was better when i tested this on local machine.