LEADTOOLS Support
General
General Questions
How to convert Hikvision DVR video to DVR file using convertctrl
#1
Posted
:
Wednesday, February 25, 2015 8:37:50 PM(UTC)
Groups: Registered
Posts: 1
Hi,
I have recently downloaded the evaluation software from
www.leadtools.com. I want to convert the live video which is coming from HIKVISION DVR to .lbl(DVR) playable format. I am trying to achieve the same using the following code-
convertCtrl.SourceFile = "rtsp://admin:12345@192.168.1.8:554/Streaming/Channels/101?transportmode=unicast";
convertCtrl.TargetFormat = TargetFormatType.DVR;
convertCtrl.TargetFile = "D:\\Capture123";
convertCtrl.VideoCompressors.Selection = -1;
convertCtrl.Preview = false;
ILMDVRSink dvrSink;
dvrSink = convertCtrl.GetSubObject(ConvertObject.Sink) as ILMDVRSink;
if (dvrSink != null)
{
double buffSize = 200 * 1024000;
int fileCount = 20;
dvrSink.StartChangingAttributes();
dvrSink.FolderCount = 1;
dvrSink.SetBufferSize(0, fileCount, buffSize);
dvrSink.StopChangingAttributes(false);
}
convertCtrl.StartConvert();
But I am getting an Error "LTMM Error: No combination of filters could be found to render the stream." on playing the .lbl file using player. Please guide me to resolve the issue.
#2
Posted
:
Friday, February 27, 2015 8:09:09 AM(UTC)
Groups: Manager, Tech Support, Administrators
Posts: 218
Was thanked: 12 time(s) in 12 post(s)
Hello
Himanshu,
The issue here is likely due to you not using a compression, and choosing to use DVR as the TargetFormatType.
To fix this, please try using the following code:
convertCtrl.SourceFile = "rtsp://admin:12345@192.168.1.8:554/Streaming/Channels/101?transportmode=unicast";
convertCtrl.TargetFormat = TargetFormatType.DVRTransport;
convertCtrl.TargetFile = "D:\\Capture123";
convertCtrl.VideoCompressors.H264.Selected = true;
convertCtrl.Preview = false;
ILMDVRSink dvrSink;
dvrSink = convertCtrl.GetSubObject(ConvertObject.Sink) as ILMDVRSink;
if (dvrSink != null)
{
double buffSize = 200 * 1024000;
int fileCount = 20;
dvrSink.StartChangingAttributes();
dvrSink.FolderCount = 1;
dvrSink.SetBufferSize(0, fileCount, buffSize);
dvrSink.StopChangingAttributes(false);
}
convertCtrl.StartConvert();
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
LEADTOOLS Support
General
General Questions
How to convert Hikvision DVR video to DVR file using convertctrl
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.