-
Notifications
You must be signed in to change notification settings - Fork 144
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
Live camera feed #37
Comments
Do you mean from a webcam, over a network, or both? |
Webcam. I haven't looked up how to implement it myself but I can give it a try. Right now we have to use opecv on top of scikit video just for live webcam feed. |
This is interesting. There's nothing stopping us from implementing this, since the ffmpeg backend can support this by itself. It's just a matter of wrapping a function around ffmpeg/libav. According to https://trac.ffmpeg.org/wiki/Capture/Webcam, the live feed can be dumped using: On windows: |
word I'll start there |
Hmmm from what I see the feed is always dumped to output file so then we'd be dumping and reading concurrently and using a generator to get the frame |
Have you considered pipes? That's what scikit-video currently uses. FFmpeg actually gets called like: ffmpeg -i inputfile.mp4 - The '-' means pipe to stdout. I'm not sure how this will be handled internally when providing a webcam as input. It might just work :) |
That or should be able to read the raw video data coming in anf convert it to numpy arrays. Hmm I think I got a solution give me a few weeks (it's finals for me lol..undergrad problems lol) I'll hack at it. |
Actually, you can pipe std out right into numpy arrays. This is exactly what scikit-video does under the hood :) |
I believe skvideo supports this in Linux now. Not sure about Windows or Mac |
having camera capture feed would be cool
The text was updated successfully, but these errors were encountered: