Click here to Skip to main content
11,577,143 members (62,016 online)
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 2:43am
Edited 4-Jul-13 3: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 DamithSL 155
1 Sergey Alexandrovich Kryukov 131
2 OriginalGriff 115
3 Afzaal Ahmad Zeeshan 95
4 Abhinav S 90
0 OriginalGriff 820
1 Sergey Alexandrovich Kryukov 631
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 365


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