-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix(back-end): video processing failing when no face #141
Conversation
Rebase pls :)) |
ea33984
to
434c280
Compare
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.
Code makes sense! Tho, I am running some issues while manual testing:
- Using the videos in
app/video-processing/resources/test.mp4
.
Process Process-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/local/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/app/video_processor.py", line 129, in process
box = self.get_face(frames[i])
IndexError: list index out of range
- Using a random video, for example as below, I see no output videos even though
INFO: 10.0.2.100:51108 - "POST /process_video HTTP/1.1" 200 OK
Done processing /opt/privacypal/input-videos/test1.mp4.
test1.mp4
weird. when I was testing, I used |
as for the index out of range, that's really bizarre. never got it on any videos before but you're right, with the resources/test.mp4 video it comes up. after looking into it it looks like it was a perfect storm of the frame gap (12) and the exact number of frames the video had (132) causing a mis-written loop (the |
Sounds right. As for compose, smoketests are using named volume so no directory mounts are used. |
ahh okay makes sense, I was looking at the yaml for smoketest but I don't fully understand everything in it. anything else I should look into/change? |
Yeh for this one, I noticed that the output file was generated and written to fs. But then, about 2-3s later, it is deleted. Do you have any other videos that have no face at all for the entire video for testing? Perhaps try that too? |
hmm I can't reproduce the file being deleted issue. the temp video with no audio is deleted at the end of |
…ss_INTERPOLATE
…opy non-existent audio streams
3d66738
to
94ef863
Compare
Welcome to PrivacyPal! 👋
Fixes: #45
Description of the change:
Implement logic to handle sections of video where a face is not present, minor cleanup/refactoring, and extended tests for the new logic.
Motivation for the change:
Prior to this patch, videos with even half a second of no face would crash the video processor and the progress on the video would be lost.