Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Video VB.NET Webcam
How can I record a video from a webcam and save it to disk using VB.net?
 
Thanks in advance!
Posted 4-Jul-13 3:43am
Edited 4-Jul-13 4:14am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
v2
Comments
Member 10122849 at 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..
Rate this: bad
good
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[^]
  Permalink  
Comments
Member 10122849 at 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
aspnet -i at 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 at 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..
aspnet -i at 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 at 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
good
Please Sign up or sign in to vote.

Solution 3

i'l suggest to use Emgucv
 
Quote:

[^]
 

[^]


[^]
 

 
refer these articles
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 480
1 Maciej Los 330
2 Richard MacCutchan 225
3 BillWoodruff 185
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,759
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,269
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 8 Feb 2014
Copyright © CodeProject, 1999-2014
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