Click here to Skip to main content
13,052,696 members (65,736 online)
Rate this:
Please Sign up or sign in to vote.
How can I record a video from a webcam and save it to disk using

Thanks in advance!
Posted 4-Jul-13 2:43am
Updated 4-Jul-13 3:14am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Member 10122849 4-Jul-13 9:15am
i have tried saves the image but not the video..i need to record and save a video..
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Did you try google ? A lot of solutions available for these type of general questions

Video File Saving in Windows Media Video Format for the DirectX.Capture Class Library[^]
Member 10122849 11-Jul-13 1:02am
i want it in lot of people seem to have this prob;em..but i have not been able to find a solution..if you have any useful links ..plz share..
thanks in advance
aspnet -i 11-Jul-13 1:08am
Software development is not just copy pasting. You should learn to write your own code. Now you have code written in another language for your reference. Either you use it in your project or convert it to VB.NET

What does it mean that a lot of people are having the problem ? You want somebody to write code for them ? Then why can't they write themselves?
Member 10122849 11-Jul-13 1:11am
hey there im not very familiar with and need it as a part of another project..if you dont want to help ..then dont..thanks for your help by the way..
aspnet -i 11-Jul-13 1:16am
what help do you want ..? Convert the C# code to VB.NET ? There are thousands of online C# to converters online for FREE. Just google for it
Member 10122849 12-Jul-13 1:20am
i have used the avicap class to save the video file in "avi" format but it is not being saved..
here is the code i used..
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim save As Integer
save = MsgBox("Do you want to save your recording video", MsgBoxStyle.YesNo + MsgBoxStyle.Information, "Recording Video")
If (save = MsgBoxResult.Yes) Then
Dim saveName As New SaveFileDialog
saveName.Filter = "Avi file(*.avi)|*.avi"
If saveName.ShowDialog = Windows.Forms.DialogResult.OK Then
' SendMessage(hWnd, WM_CAP_FILE_SAVEAS, 0, "C:\RecordedVideo.avi")
SendMessage(hWnd, WM_CAP_FILE_SAVEAS, 0, saveName.FileName)
End If
End If
Me.Cursor = System.Windows.Forms.Cursors.Default
Button2.Enabled = True
Button3.Enabled = False
End Sub
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

i'l suggest to use Emgucv





refer these articles

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 8 Feb 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100