使用 libavformat 抓取 rtsp/rtp 流
世界。 我正在尝试从 IP 摄像机(实时)获取 rtsp mjpeg 流,如 http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html,但移植到较新的版本。 它适用于 mpeg 文件(将其作为一个 AVPacket 完整加载),但使用流时,avcodec_decode_video2 返回 -1 (错误)。在这种情况下,AVPacket 是帧的一部分。
我该如何解决这个问题?
world.
I'm trying to grab rtsp mjpeg stream from IP-camera (realtime) as described in http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html, but ported to newer version.
It works well with mpeg file (loading it full as one AVPacket), but working with stream, avcodec_decode_video2 returns -1 (error). AVPacket in this case is a part of a frame.
How can I fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论