Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Vb.Net 2015 - VideoFileWriter - H264 #721

@gegsrl

Description

@gegsrl

Hello,

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

Thank you and excuse for my english

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions