Currently working on a Access Control Integration.
I’m trying code for saved recorded video (based on user input start-time and end-time) to disk as a MP4 or jpeg file that windows OS plays. I have no success, if you can point me to some working sample code that does this would save me lots time(not sure how much save me, but could be days of trying code, or longer; if can approve this work at all)
There are two ways in the sample code to create a video file.
The first way is to use the export functionality built into VideoXpert. This is shown in the example code like the VxSdkNet-ExampleCllient on github. (https://github.com/pelcointegrations/VideoXpertSdk-Examples). When you make an export, VideoXpert will place a '.zip' file in the export location (you set this up). The example code shows how to make an export file, and how to retrieve it. An export file is always a '.zip' file. The '.zip' file will contain one or more '.mkv' files of your video. MP4 is not supported in an export file at this time. If you must have an MP4 file, you can use ffmpeg or something similar to do the conversion.
Another way to store video is to use the functionality built into the VxSdkNet-Media package. This is also demonstrated in the VxSdkNet-ExampleClient. This will record video as an MP4 file to a location you choose. You must be streaming video for this feature to work. Look for the code connected to the "Start Local Record" button in the sample application.
no sample code found
here is my user case:
user input a start-time and end-time to request a segment recorded video to view. I will display this segment for him, he may fast-forward, fask-back, pause then resume display. he may also export(download) this segment video to disk.
I don't find sample code doing these, there is sample code pull down clips then export selected clip - not what I want, I want export segment user requested time interval, directly to disk. BTW, your sample code download clip to disk as .zip file, but I can't unzip it, get 'cannot complete the compressed(zipped) folders extraction wizard The compressed(zipped) folder is empty. --but I see zip file size is 36 mb in the file explore.
we use windows 10, c#2017
Hello, thank you for your post. I'll address some specific points of your post, ask some questions, and provide information and advice.
VideoXpert (VX) SDK sample code is located at GitHub here: VideoXpertSdk-Examples. This is what is available -- any information that can be gained from the use of sample code will need to rely on the functionality of these samples.
user input a start-time and end-time to request a segment recorded video to view. I will display this segment for him, he may fast-forward, fask-back, pause then resume display.
What you describe here is classic Playback functionality - specify a time, use fast-forward or fast-rewind, or resume.
he may also export(download) this segment video to disk.
Export functionality using the SDK (or using VideoXpert Ops Center) involves designating a start time and an end time, and then requesting VX to create the export clip. Once the clip has been completed, it can then be downloaded from VideoXpert.
I don't find sample code doing these, there is sample code pull down clips then export selected clip
Yep! I'm glad that you've found this functionality in the existing samples. This is what is currently available and how functionality works with VideoXpert. If the SDK was not involved at all, then exports created with Ops Center work the same way: create an investigation, designate a start time and an end time, then ask VX to create the clip. Once the clip is done, then it becomes available for Download.
BTW, your sample code download clip to disk as .zip file, but I can't unzip it, get 'cannot complete the compressed(zipped) folders extraction wizard The compressed(zipped) folder is empty. --but I see zip file size is 36 mb in the file explore.
VideoXpert's exported clips are downloaded as zip files and should contain an MKV video file (I use VLC to view the MKV video export itself). If you're having an error or issue with the exported zip files, then there may be a problem with the created download, or the VideoXpert system that is creating the exports. I would suggest attempting to use Ops Center to verify the exports of the VX system. Make sure the exports are healthy and properly working in the system itself first. Once that is established, then try using the SDK to create the export clips, and then download the zip with the clip file to view them. It is entirely possible to use the SDK to create a clip, and then use Ops Center to download it (or vice versa; create the clip in Ops Center and download it using the SDK), also, so those are additional tests that you can try out.
Privacy and Cookies Policy
Copyright © Pelco