Luxand OpenIPVideoCamera returns -15 - c#

I am using Luxand Library as a face detection for my application.
I can open the webcam but when i want to open an ip camera with FSDKCam.OpenIPVideoCamera() method, it returns -15 and camera does not open.
I tested the url with VLC and everything was ok.
Does anybody have experience with this problem?

hi you cant use rtsp you must use mjpeg stream also you must provide video stream cgi luxand face sdk support mjpeg stream only to know your camera is support mjpeg if not find on specification try open a ip camera from browser then press f 12 and click element on camera if found video.cgi on url you camera is support mjpeg and you can get url from this website https://www.foscam.com/faqs/view.html?id=128
or
https://www.ispyconnect.com/man.aspx?n=china
note : on url you can support your username and password and port forget about add it sprite on textbox filed just add a full url on ip filed
example
http://192.168.1.100:26239/videostream.cgi?user=admin&pwd=888888
after you sure your camera support mjpeg stream you can also with face sdk use difrent way to display your camera
go to this website https://ip-webcam.appspot.com/ and download this app after download add your camera url wish is support cgi and mjpeg
example
http://192.168.1.100:26239/videostream.cgi?user=admin&pwd=888888
note some camera not support full url you have to add only
http://192.168.1.100:26239/
then add your username and password
in next filed
next step you must change on camera list on example your camera number for example if your fron camera int number for it 1 you must change it to 2 or 0 it is up of your device
cameraName = cameraList[2];//1//2//0
play on that number to know your ip camera number
am sure that will help you and am sure you get a right answer
best regard
ibrahim ali
mam

Related

C# hikvision ip ptz camera - how to set video resolution, bitrate, and frame rate

I'm trying to create my own c# winform program for Hikvision IP PTZ Camera setting.
For now, I'm using CHCNetSDK.cs to get all the configuration for hikvision ip camera.
I was able to get all the configuration of ip camera setting, but I could not find the configuration for video bitrate, frame rate and resolution.
I've tried using struct NET_DVR_COMPRESSION_INFO_V30 but it seems like it did not work.
Can anyone help me to find appropriate structure for setting video resolution and bitrate of hikvision ip camera?
I also like to know how to get the current video resolution and bitrate setting of hikvision ip camera with CHCNetSDK.cs.
It would be great if you can give me an example.
Thank you.

I can't upload user face template in device (SpeedFace-V4L)

I am using the ZKteco device (speedFace-V4L) with the ZKFace VX5.8 facial algo.
I want to download and upload the users faces templates, but I can't do it.
If I try to download the face template (from device to software) it works, but the opposite does not work, it downloads all other information without a face template.
I debugged this and found the error code is -103, according to the documentation which means device send back error of face version error
I tested the official demo with this device, and it still doesn't work!
I'm using GetUserFaceStr(int dwMachineNumber, string dwEnrollNumber, int dwFaceIndex, ref string TmpData, ref int TmpLength); function to get user informations and SetUserFaceStr(int dwMachineNumber, string dwEnrollNumber, int dwFaceIndex, string TmpData, int TmpLength) to set it
I forgot to say that the functions are working fine with the MB2000 device.
How can i solve this please.
Device: SpeedFace V4L
Face algo: ZKFace VX5.8
SDK: Standalone SDK-6.3.1.43
Language: C#, WPF
I had the same problem just a few days. We contacted ZKteco support and this the solution:
The Standalone SDK is not fully compatible with ZkTeco Visible Light Series devices and you have to contact ZKteco Sales to request the Push SDK which is in deed a communication protocol Http based so they will give access to the Api.
The ZkTeco new devices have http server like embeded. Also you have to pay for that Push SDK.
But with it you will be able to download user faces and upload user faces to SpeedFace v4L devices via TCP IP.

Contents Transfer Not Available Now, Sony A6000

I've got Sony A6000 camera with the latest firmware(3.20) and latest Smart Remote Control application (4.30). I've been trying to write application for transferring images, but faced with issues.
I can't switch camera function to Contents Transfer mode.
Repro steps:
Run Smart Remote Control app on my camera;
Sucesfully connect device to camera via WI-FI;
Discover the camera with parameter ST=urn:schemas-sony-com:service:ScalarWebAPI:1;
Receive response Location http://ip:port/scalarwebapi_dd.xml (instead mentioned in doc http://ip:port/dd.xml);
Parsed scalarwebapi_dd.xml contains guide, accessControl and camera services (instead mentioned in doc camera, system and avContent);
Request with getAvailableApiList method return the following:
getVersions, getMethodTypes, getApplicationInfo, getAvailableApiList, getEvent, startRecMode, stopRecMode.
Successfully run request with "startRecMode" method;
"getAvailableApiList" result doesn't contain "getCameraFunction" and
"setCameraFunction"
"getCameraFunction" return the following result:
{"id":1,"error":[1,"Not Available Now"]}
What I'm doing wrong?
Smart Remote 4.30 should give you the avContent services. I had an older version that had the same guide, accessControl, camera but after I updated it had the avContent service.
You can also try using getEvent to troubleshoot the camera status. This could shed some light into why the services aren't available.

How to play Track when getting Id on Mixradio API

I'm getting id each items of track but I don't play it as next,back, play, pause...
E.g:
I have items name is "Blank Space" song and is "015668". Now. How to play Blank Space song with id 015668.
I dont see tutorial about that and Have other media player API support wpf,universal app for mp3 and video stream youtube
The MixRadio API supports playback of 30 second clips within your application - in C#, you would use this method to get the URI and then play how the platform you're on supports it.

Recording Video from IP camera using VLC?

i am try VLC media player to record a video from IP camera. i found this command line to record video from ip camera.
"C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy --dummy-quiet http://user:password#ipAddress.com:port/videostream.asf --run-time=120 :demux=dump :demuxdump-file=C:\output_test.avi vlc://quit
The command line is working, i can get video with sound from IP camera. The only problems is the recorded video only can be played using VLC itself, the video also only have information which is only size(KB,MB), the windows cannot get the other information such as video length, size(Width*Height), etc. And the most important is video cannot be played using Window Media Player.
**EDIT
"C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy --dummy-quiet http://user:password#ipAddress.com:port/videostream.asf --run-time=120 --sout "#std{access=file,mux=avi,dst="c:\test.avi"}" vlc://quit
using this command, now i got all the video's info and playable using window media player and other players as well, but this time the there is no sound in video.
I'm implementing this in web app. I got the code running fine.
Does anyone here can provide me the correct command line to get working video with sound and also video's information.
i tried searching but cannot find the correct command line(if any). Tried VLC forum but got Error 403.
**note: i am using windows 7 OS.
try transcoding & mux
vlc.exe -I dummy --dummy-quiet http://user:password#ipAddress.com:port/videostream.asf --run-time=120 :sout=#transcode{vcodec=h264,vb=1024,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=file,mux=avi,dst="c:\test.avi"}

Categories

Resources