Chinaunix首页 | 论坛 | 博客
  • 博客访问: 151991
  • 博文数量: 75
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 749
  • 用 户 组: 普通用户
  • 注册时间: 2013-11-19 11:38
文章分类
文章存档

2014年(38)

2013年(37)

我的朋友

分类: Windows平台

2013-12-23 16:21:56

是一个功能全面、易于使用的视频捕捉工具和多媒体播放器,本文搜集了一些TVideoGrabber的技术问答,并针对于有的朋友遇到的疑难给出了解答。

一、在TVideoGrabber录制过程中,怎么样用编程的方式来选择编码器来压缩文件呢?

1
2
3
4
5
6
7
8
VideoGrabber.VideoDevice = VideoGrabber.VideoDeviceIndex ("Dazzle DVC170")
VideoGrabber.AnalogVideoStandard = VideoGrabber.AnalogVideoStandardIndex ("PAL B")
VideoGrabber.VideoCompressor = VideoGrabber.VideoCompressorIndex ("Pinnacle MPEG 2 Encoder")
VideoGrabber.AudioCompressor = VideoGrabber.AudioCompressorIndex ("Pinnacle MPEG Layer-2 Audio Encoder")
VideoGrabber.VideoDevice = VideoGrabber.VideoDeviceIndex ("Dazzle DVC170")
VideoGrabber.CompressionMode = cm_CompressOnTheFly
VideoGrabber.AudioRecording = true
VideoGrabber.StartRecording

——选择Dazzle DVC170
——选择PAL B模拟视频模式
——选择Pinnacle MPEG 2编码器
——选择“on the fly”压缩
——启用音频录制
——开始录制

二、怎么样用TVideoGrabber同步的记录2个相机呢?

需要在调用StartRecording之前,启用同步属性,像下面这个样子:

1
2
3
4
5
6
7
8
9
10
11
12
VideoGrabber1.Synchronized := True;
VideoGrabber2.Synchronized := True;
 
VideoGrabber1.VideoDevice := 0; // e.g. index of the 1st camera in the VideoDevices list
VideoGrabber2.VideoDevice := 1; // e.g. index of the 2nd camera in the VideoDevices list
 
VideoGrabber1.StartRecording;
VideoGrabber2.StartRecording;
 
// then both recordings will start at the same time
 
end;

三、TVideoGrabber 中可以创建我喜欢的那部分视频的索引吗?可以用来回放视频的那种索引···


阅读(990) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~