在视频监控录像中基于时间码的搜索算法 [英] Algorithm for searching time code based searches in video surveillance footage

查看:258
本文介绍了在视频监控录像中基于时间码的搜索算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过输入时间来剪辑特定视频?

例如:-
如果从1:00-2:00时钟开始的1小时视频,并且我们输入时间1:10 T0 1:45,是否可以在该时间剪辑视频并播放?如果是,那怎么可能?
请告诉.如果有算法,请提供链接.

Is it possible to clip particular video by entering time?

For example:-
If video of 1 hour starting from 1:00-2:00 clock and if we enter time 1:10 T0 1:45 is it possible to clip video in that time and to play? If yes then how is it possible?
Please tell. If algorithm is there please provide link.

推荐答案

是的,虽然可以,但是并不像应用算法那么简单.我已经使用 FFmpeg [ ^ ]来播放视频,您可能想看看它.可能还有其他选择,但除了FFmpeg,我不知道其他任何库.
Yes it is possible, but it''s not as simple as applying an algorithm. I''ve use FFmpeg[^] in the past to play around with videos, you might wan to give it a look. There are probably some alternatives, but I don''t know any other library than FFmpeg.


您必须记住,监视视频将被压缩,因此每个帧都是不同的尺寸.

如果不首先将视频素材编入索引,则它们将无法基于时间码提取视频.您必须首先逐帧遍历视频,以便获得视频的索引视图.这是唯一的方法.

如前所述,您可以使用FFmpeg之类的库来帮助您.在处理mjpeg素材时,我还创建了自己的对象来表示视频和帧.我必须直接从视频捕获卡的工程师那里获得格式规格,并使用RCL包装器提取帧.

如果您可以将自己的代码注入到管道中,则可以在捕获视频时实时完成这项繁重的工作,并将索引保​​存在好友"文件或数据库中.

干杯.
You have to keep in mind that video from surveillance will be compressed, so each frame is a different size.

Without first indexing the video footage, their is no way to extract video based on timecode. You must first iterate over the video, frame by frame, so that you have an indexed view of the video. This is the only way to do it.

As mentioned, you can use a library like FFmpeg to help you out. I''ve also created my own objects to represent videos and frames for this very purpose when working with mjpeg footage; I had to get the format spec directly from the engineers of the video capture card and use a RCL wrapper to extract the frames.

If you can inject your own code into the pipeline, you can do this heavy-lifting work in real time as the video is captured and save the indexes in a ''buddy'' file or database.

Cheers.


这篇关于在视频监控录像中基于时间码的搜索算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆