-
Notifications
You must be signed in to change notification settings - Fork 23
First-pass native video ffmpeg display setting to prevent transcoding, when selected #1567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| async function processBatches( | ||
| batches: number[][], | ||
| videoPath: string, | ||
| fps: number, | ||
| ): Promise<void> { | ||
| if (batches.length === 0) return; | ||
| const [batch, ...remaining] = batches; | ||
| await Promise.all(batch.map((frame) => extractFrame(videoPath, frame, fps).catch(() => null))); | ||
| await processBatches(remaining, videoPath, fps); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd have to look into how this specific ffmpeg comand works (in extractFrame) but I'm guessing you probably wouldn't want to be spawning a new process for each frame because of the overhead. There should be an option to be able to a range of frames in a single process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a follow-up to address this with an optional setting, but it depends on code in the other branch landing first (the multi-camera option)
e727497 to
73a7e8d
Compare
No description provided.