Onvif 播放流无法搜索 [英] Onvif playback stream cannot seek

查看:74
本文介绍了Onvif 播放流无法搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Onvif 从一些安讯士和海康威视摄像机获取回放视频流.我在 C# 应用程序中执行此操作,结果流在 VLC 中播放.

I'm trying to obtain playback video streams from some Axis and Hikvision cameras, using Onvif. I'm doing this in a C# application, and the resulted stream is played in VLC.

使用 FindRecordings/GetRecordingSearchResult 调用,然后使用 GetReplayUri,我可以获得播放流 (RTSP/H264),但在这里我遇到了这个问题:这就像一个实时流 - 我只能使用播放和暂停.无法使用时间光标搜索,无法反向播放.

Using the FindRecordings/GetRecordingSearchResult calls and then GetReplayUri I can obtain the playback stream (RTSP/H264), but here I have this problem: this behaves like a live stream - I can only use play and pause. I cannot use the time cursor to seek, cannot play in reverse.

所以我发现这不能用于播放应用程序 - 您必须观看整个录音(几天或几小时的录音!)才能及时查看特定事件.而且一旦玩了就不能倒退1分钟再看.

So I find this unusable for a playback application - you have to watch the entire recording (days or hours of recording!) in order to see a specific event in time. And once you play it, you cannot go back 1 minute to see it again.

这对我来说似乎很愚蠢,所以我相信我的代码做错了.也许我缺少一些配置以获得真实"的播放流.

This seems quite stupid to me, so I believe that I'm doing something wrong in my code. Maybe I'm missing some configuration in order to obtain a 'true' playback stream.

我的问题是:这种播放流行为是标准"行为吗,我不能期待更多吗?或者你们中的一些人可以正常工作(搜索、反向、逐帧步进),所以我知道它可以完成.

My question is: is this playback stream behavior the 'standard' one, and I cannot expect more on this? Or some of you have this working ok (seek, reverse, frame by frame stepping), so I will know it can be done.

谢谢.

推荐答案

这不是上述问题的真正解决方案,但也许可以帮助其他人处理这种情况.

This is not a real solution to the problem above, but maybe it would help others to deal with this situation.

我使用的一些摄像机连续录制同一个视频文件(因此时间范围未知),并且它们(通过 RTSP)报告可用的时间间隔,如下所示:

Some cameras with which I worked were continuously recording on the same video file (so the time range was not known) and they were reporting (via RTSP) the available time interval like this:

范围:npt=0-

因此,VLC 没有在时间滑块中显示任何时间间隔,因此它不是允许寻找.就我而言,要求使用 VLC,因此我必须找到解决该问题的方法.这是一个充当代理的模块,它位于 VLC 和 RTSP 源(相机)之间.因此,VLC 和相机之间的所有 RTSP 流量都通过我控制的这个模块进行,因此我可以轻松地以适用于 VLC 的方式更改来自相机的响应,因此我获得了 VLC 中可用的搜索功能.

Due to this, VLC was not displaying any time interval in the time slider, so it was not allowing for seek. In my case, it was a requirement to use VLC, so I had to find a workaround to the problem. This was a module which was acting like a proxy, and it sit between VLC and the RTSP source (camera). So all RTSP traffic between VLC and camera was going via this module which I controlled, so I could easily change the responses from camera in a way which was ok for VLC, so I got the seek capability available in VLC.

这篇关于Onvif 播放流无法搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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