General Category > Feature Request

LIVE VIDEO WITH SAVE FUNCTION

(1/6) > >>

joko markono:
Hope to have this tool: https://www.advancedhmi.com/forum/index.php?topic=976.msg5123#msg5123
can be upgraded with save function (e.g. avi, mpeg, etc)

Thanks.

Godra:
You could try using the attached modified LiveVideo control, with 3 new properties: RecordVideoToFile, RecordVideoFileName and RecordVideoCompressor.

It only does AVI files which will have different size depending on what video compressor you select.

joko markono:
Thanks Godra. may i know how to start recording using button control?

example: RecordVideoToFile = True

Godra:
Keep it's RecordVideoToFile property as False, add a button to your form and try to use this code:


--- Code: ---    Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        If Me.LiveVideo1.RecordVideoToFile Then
            Me.Button4.BackColor = Color.Red
            Me.Button4.Text = "Stop Recording"
        Else
            Me.Button4.UseVisualStyleBackColor = True
            Me.Button4.Text = "Start Recording"
        End If
    End Sub

    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
        Me.LiveVideo1.RecordVideoToFile = Not Me.LiveVideo1.RecordVideoToFile

        If Me.LiveVideo1.RecordVideoToFile Then
            Me.Button4.BackColor = Color.Red
            Me.Button4.Text = "Stop Recording"
        Else
            Me.Button4.UseVisualStyleBackColor = True
            Me.Button4.Text = "Start Recording"
        End If
    End Sub

--- End code ---

If the button turns Red after you start the app that should indicate that the property is already set as True.

joko markono:
Thanks Godra, i have tested it.

Here is the file size that i roughly calculated:
for 3600 sec (1 hour) recording, the file size will be around 700 to 730Mb which is not too big.

By the way, i have an issue with multiple video sources. For example, now i have a built in webcam on my laptop and a secondary USB video source.
I have tried to add two LiveVideo controls. and it only show the webcam source on the second LiveVideo control.

How can i pre define which source i want to view?

Navigation

[0] Message Index

[#] Next page

Go to full version