Recent content by Vilius

  1. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    i found this c# project with all commands needed: Index of /Hikvision/Tools/SDK/SDK/C# SDK windows
  2. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Quick update. i used PlayCtrl.dll [DllImport("PlayCtrl.dll")] public static extern bool PlayM4_GetPort(ref int Port); [DllImport("PlayCtrl.dll")] public static extern bool PlayM4_SetStreamOpenMode(int port, int mode); [DllImport("PlayCtrl.dll")]...
  3. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    i tried, but it returns only one picture per second. i guess i have to capture whole package and then try to decode from h.254 format. I am going to do c++ wrapper for that
  4. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    hi curiousDev, none of those methods are good enough for me. NET_DVR_CapturePicture saves picture in computer. NET_DVR_CapturePicture_V50 saves in byte array, but it gives me only 1fps.. I need pictures in byte arrays but framerate should be as high as possible.
  5. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    i think i have solution. i have this callback structure: public delegate void REALDATACALLBACK(int lPlayHandle, uint dwDataType, IntPtr pBuffer, uint dwBufSize, IntPtr pUser); pBuffer is pointer, which shows where my bytes are. Maximum number of bytes is 5120. So with every callback i receive...
  6. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    I noticed interesting thing. Camera with one frame returns 34 calbacks. This is what i received: Date/time/buffer size/ actual buffer size 2018-08-09 16:26:47, 116, 1 2018-08-09 16:26:47, 72, 1 2018-08-09 16:26:47, 20, 1 2018-08-09 16:26:47, 5120, 1 2018-08-09 16:26:47, 5120, 1 2018-08-09...
  7. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    no luck with that... I am trying to use EmguCV libraries now..
  8. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi curiousDev, i tried and that didn't worked. I will test this on c++ console app to see if this function works.
  9. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    i am not sure if this is correct. I am always getting error that buffer is not enough. [DllImport(DLL)] public static extern bool NET_DVR_CapturePicture_V50(int lUserID, int lChannel,ref Structs.LPNET_DVR_PICPARAM_V50 lpPicParam, ref byte[] sPicBuffer, int dwPicSize,ref ulong lpSizeReturned)...
  10. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    I tested that function with demo sdk, and it takes too long...
  11. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hello again, maybe someone have any ideas how can i get image from live stream? i need to get image that going to be used in Neural Networks. I tried to get image from IntPtr, but no success..
  12. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    curiousDev, thank you a lot for your help. I have solved all my issues with source code. No it seems that everything is working. i have live video stream.
  13. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    i reuploaded dll's from 32bit version and that made difference. by the usage of ram i can see that live preview is kinda working. Maybe you can provide source how you handle live video? for now, my callback isn't working. (getting error: 'A callback was made on a garbage collected delegate of...
  14. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi curiousDeve, i made changes, but i am still getting same error: 107: Live view component is failed to upload. I tested Structs.LPNET_DVR_PREVIEWINFO configuration by making c++ dll. There i receive callback with every frame. But when i try to use this in c# code, i always receive same error...
  15. Vilius

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    i solve this error by putting 64bit dll's in source. But still, cant get live stream... i am getting this error now: 107 Live view component is failed to upload
Top