VLCKit howto : GPU to identify patterns within RTSP video stream
Posted: 21 Oct 2019 12:42
Hello,
I'm working on a MacOS application that captures an RTSP video stream, thru VLCKit.
This part works fine (MacOS 10.14.6, XCode 11.0, Swift 5.1): perfect, thanks to all ! (just 3secs latency I'd like to fix, but not too much of a concern for my app).
Now I need to identify some patterns within the real-time video stream, then return a rectangle of the area (possibly several rectangles for multiple zones) where patterns have been detected (ie: return a list of rectangles, with pattern signature for each).
I plan to use the GPU to handle this task.
So I need to get access to the buffers used by VLC just after decoding the RTSP stream, in parallel buffer content are sent to the displayed view (... or not) .
Note: the video stream will not always be visible on the computer's screen, only when a specific window, rendering the camera stream, is made visible.
Questions :
- does VLC / GPU continue the decoding of an incoming RTSP stream in background, even if video stream is not displayed ?
- Could someone provide me with some links (wiki, forum, ...) or recommendations related to this design (use GPU to identify patterns within RTSP video stream)?
Thanks in advance !
I'm working on a MacOS application that captures an RTSP video stream, thru VLCKit.
This part works fine (MacOS 10.14.6, XCode 11.0, Swift 5.1): perfect, thanks to all ! (just 3secs latency I'd like to fix, but not too much of a concern for my app).
Now I need to identify some patterns within the real-time video stream, then return a rectangle of the area (possibly several rectangles for multiple zones) where patterns have been detected (ie: return a list of rectangles, with pattern signature for each).
I plan to use the GPU to handle this task.
So I need to get access to the buffers used by VLC just after decoding the RTSP stream, in parallel buffer content are sent to the displayed view (... or not) .
Note: the video stream will not always be visible on the computer's screen, only when a specific window, rendering the camera stream, is made visible.
Questions :
- does VLC / GPU continue the decoding of an incoming RTSP stream in background, even if video stream is not displayed ?
- Could someone provide me with some links (wiki, forum, ...) or recommendations related to this design (use GPU to identify patterns within RTSP video stream)?
Thanks in advance !