/*
This sample illustrates how to create a video file in MP4 format.
*/
using System;
using Basler.Pylon;
namespace Grab
{
class Grab
{
const int countOfImagesToGrab = 100;
const string videoFilename = "Utility_GrabVideo.mp4";
internal static void Main()
{
// The exit code of the sample application.
int exitCode = 0;
// Check if VideoWriter is supported and all required DLLs are available.
if (!VideoWriter.IsSupported)
{
Console.WriteLine("VideoWriter is not supported at the moment. Please install the pylon Supplementary Package for MPEG-4 which is available on the Basler website.");
// Return with error code 1.
Environment.Exit(1);
}
try
{
// Create a camera object that selects the first camera device found.
// More const
Basler C# 開發
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.