Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading;
  10. using System.Threading.Tasks;
  11. using System.Windows.Forms;
  12.  
  13. using VisioForge.Types.OutputFormat;
  14.  
  15. namespace SampleCapture
  16. {
  17. public partial class Form1 : Form
  18. {
  19. public Form1()
  20. {
  21. InitializeComponent();
  22. }
  23.  
  24. private void btStart_Click(object sender, EventArgs e)
  25. {
  26. videoCapture1.Video_CaptureDevice = videoCapture1.Video_CaptureDevicesInfo[0].Name;
  27. videoCapture1.Audio_CaptureDevice = videoCapture1.Audio_CaptureDevicesInfo[0].Name;
  28. videoCapture1.Output_Filename = Environment.GetFolderPath(Environment.SpecialFolder.MyVideos) + "\\output.wmv";
  29. videoCapture1.Output_Format = new VFWMVOutput(); // WMV output with default settings
  30. videoCapture1.Mode = VisioForge.Types.VFVideoCaptureMode.VideoCapture;
  31.  
  32. videoCapture1.Start();
  33. }
  34.  
  35. private void btStop_Click(object sender, EventArgs e)
  36. {
  37. videoCapture1.Stop();
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement