You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
I have a problem with VideoFileWrite and H264 codec.
If I use VideoCodec.MPEG4 (v1, v2 or v3), my application can write video files correctly.
If I only change VideoCodec to H264, I get a "System.AccessViolationException" (Attempted to read or write protected memory) on WriteVideoFrame method.
Stream is a MJPEGStream
Private VWriter as VideoFileWriter
Private Sub btnStart_Click(sender As System.Object, e As System.EventArgs) Handles btnStart.Click
VWriter = New VideoFileWriter
VWriter.Open("C:\Test\Test.avi", 1088, 1088, 20, VideoCodec.H264)
End Sub
Private Sub Stream_NewFrame(sender As Object, eventArgs As NewFrameEventArgs) Handles Stream.NewFrame
Try
If Not VWriter Is Nothing Then VWriter.WriteVideoFrame(eventArgs.Frame)
Catch ex As Exception
msgbox (ex.message)
End Try
End Sub