I am rewriting the application under Visual Studio 2012 and attempting to do this with the VLCPlugin2, camera output display is no problem but I cannot get the plugin to transcode and save to a file. Relevant code is:
Code: Select all
Dim strFilespec As String
Dim strOptions As String
strFilespec = "D:\Capture\Video\C" & CStr(intSelectedCam) & Format$(Now(), "yyyyMMddHHmmss") & ".avi"
strOptions = ":sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:std{access=file,mux=mp4,dst='" & strFilespec & "'}"
Dim arOptions As Object() = New Object(0) {strOptions}
AxVLCplayer1.playlist.stop()
AxVLCplayer1.playlist.items.clear()
AxVLCplayer1.playlist.add(strVideoURL, , arOptions)
AxVLCplayer1.video.marquee.enable()
AxVLCplayer1.video.marquee.text = strOverlay
AxVLCplayer1.video.marquee.Position = "Left"
AxVLCplayer1.video.marquee.size = 20
AxVLCplayer1.playlist.play()
Any assistance greatly appreciated.