Android VideoView保存RTSP流

发布于 2024-09-06 23:35:15 字数 191 浏览 2 评论 0原文

我正在我的 Android Nexus One 上使用 VideoView 播放一些思科摄像机的视频。虽然这工作正常,但我不确定是否可以将电影保存到文件中。

我正在打开一个像 rtsp://192.168.1.22:554/live.sdp 这样的 URL,

如何将其保存到 SD 卡?也许可以像处理文件一样处理它......这可能吗?

I'm playing on my Android Nexus One some videos of a few cisco cameras using a VideoView. While this works fine, I'm unsure if it's possible to save the movie to a file.

I'm opening an URL like rtsp://192.168.1.22:554/live.sdp

How can I save it to the SDcard ? Handle it like a file maybe ... Is that possible ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

江心雾 2024-09-13 23:35:15

您可以实现/使用您自己的 RTSP 客户端库,它将传入的 RTP 数据包传输到文件中。
如果您还想播放视频流,则可以为媒体播放器提供一个本地 RTSP 服务器地址到您的 RTSP 服务器,然后将相同的 RTP 数据包也通过管道传输到媒体播放器。
如果您需要,您可以找到开源 RTSP 服务器/客户端 此处

You can implement/use library, your own RTSP client which will pipe the incoming RTP packets into a file.
if you want to also play the video stream you can then give the media player a local RTSP server address to your RTSP server and then pipe the same RTP packets to the media player as well.
If you need you can find an open source RTSP server/client here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文