Answer the question
In order to leave comments, you need to log in
How to merge frames with different resolution into one ffmpeg node.js video?
A mediaStream comes to the node, which I need to write to a file, for this I use ffmpeg. The problem is that the video from the webcam comes from the client, first at a resolution of 540x540 and after 20 seconds 720x720, at the front I tried to standardize the resolution, but the browser ignores this:
const data = await navigator.mediaDevices.getUserMedia({video: {
width: { min: 640, ideal: 1280 },
height: { min: 400, ideal: 720 },
}})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question