How does EasyNVR, an RTSP protocol video intelligent analysis platform, obtain video snapshot screenshots recorded in the cloud?

One of the functions of the TSINGSEE Green Rhinoceros Video Intelligent Analysis Platform is to obtain live broadcast snapshots. For example, in EasyNVR live video live broadcasts, screenshots of live broadcast snapshots can be obtained, but in actual use, some users also need to obtain cloud recording snapshots.

NVR10.png

Friends who have used EasyNVR to obtain live snapshots know that it is very convenient to obtain live snapshots, because at the technical level, the live stream can be directly pulled for decoding and playback. As for the recorded hls video stream, we need to decode the video first, and then get the snapshot. If these steps are all processed on the server side, the technical implementation is undoubtedly adding a video player function inside the server side, then how can we implement this function effectively and with low consumption?

For conventional video problems, we can basically solve them through ffmpeg.

EasyNVR's recordings are all recorded video streams released by http services, and we then use ffmpeg to obtain snapshots of the cloud-recorded videos.

ffmpeg snapshot acquisition command:

Ffmpeg -ss “time” -hide_banner -i “input” -y -f image2 -vframes 1 snap.jpg

In response to the above commands, we only need to add the time point at which the video needs to be acquired and the video source that needs to intercept the cloud video according to our own needs. Let us give an example to illustrate.

1. Obtain the video address that needs to be intercepted through the interface:

3.png

2. Determine the time point when you need to obtain the snapshot, and use HH:mm:ss to determine the time point, for example, to obtain a snapshot at 00:20:45

3. To verify the execution result of the snapshot through the command, execute the command as follows:

ffmpeg.exe -ss 00:20:45 -hide_banner -i http://192.168.99.156:10800/record/stream_2/20201218/20201218060000/stream_2_record.m3u8 -y -f image2 -vframes 1 snap1.jpg

4.png

Snapshot is successfully obtained:

5.png

6.png

In addition to EasyNVR, other intelligent analysis platforms EasyCVR, EasyGBS, etc. of TSINGSEE Green Rhino Video can also obtain snapshots of the video. If you have any questions, please feel free to contact us. For more video-related solutions, welcome to visit the official website of TSINGSEE.

Guess you like

Origin blog.csdn.net/EasyNVR/article/details/111562149