Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, February 25, 2015 8:37:50 PM(UTC)
himanshu034

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.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Friday, February 27, 2015 8:09:09 AM(UTC)

Hadi  
Hadi

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
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.064 seconds.