Skip to content
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

fps inconsistent when defacing live video (webcam) #25

Open
Karl48071 opened this issue May 30, 2022 · 1 comment
Open

fps inconsistent when defacing live video (webcam) #25

Karl48071 opened this issue May 30, 2022 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Karl48071
Copy link

When using deface cam or deface '' the frames per second are inconsistent. On slower hardware, it might only blur faces at say 11 frames per second, but it will still include meta data saying its 30 fps. Therefore, when played back, it plays too fast. Or with faster hardware (like with a GPU), deface will blur faces at more than 30 fps and yet still include meta data saying its at 30 fps which results in video that looks like its in slow motion.

@mdraw
Copy link
Member

mdraw commented Jun 7, 2022

Thanks for the report! I've never tried used the live cam blurring with a video file output because I had regarded the live cam feature more as a demo. I can confirm that the video is saved with an incorrect frame rate in this case. I don't have a quick fix for this bug, so any suggestions / pull requests are welcome.
In the meantime I would suggest the following workaround: First record the video with some external recording tool and then process the recorded video with deface. This way the FPS should be correct.

@mdraw mdraw added bug Something isn't working help wanted Extra attention is needed labels Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants