I would like to stream a video from my capture device with directshow. When using the VLC Player I can go
> Media > Stream... > Capture Device:
Capture mode = DirectShow
Video device name = Datapath VisionSD4+1S 01
> Stream > Play
The player will then display the video feed.
I tried the basic:
Code: Select all
import vlc
i = vlc.Instance()
p = i.media_player_new()
m = i.media_new('dshow://', 'dshow-vdev=Datapath VisionSD4+1S 01', 'dshow-adev=none', 'live-caching=300')
p.set_media(m)
p.play()
Code: Select all
0005>>> a000000005a9e00] main input error: Your input can't be opened
[00000000005a9e00] main input error: VLC is unable to open the MRL 'dshow://'.
How can I grab the video frames into an array for post processing?
Please assist?