Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
How can I record a video from a webcam and save it to disk using VB.net?

Thanks in advance!
Posted
Updated 4-Jul-13 3:14am
v2

 
Share this answer
 
v2
Comments
Member 10122849 4-Jul-13 9:15am    
i have tried it..it saves the image but not the video..i need to record and save a video..
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[^]
 
Share this answer
 
Comments
Member 10122849 11-Jul-13 1:02am    
i want it in vb.net..a 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
bbirajdar 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 vb.net and need it as a part of another project..if you dont want to help ..then dont..thanks for your help by the way..
bbirajdar 11-Jul-13 1:16am    
what help do you want ..? Convert the C# code to VB.NET ? There are thousands of online C# to vb.net 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
i'l suggest to use Emgucv

Quote:

[^]


[^]


[^]



refer these articles
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900