简体   繁体   English

Android VideoView保存RTSP流

[英]Android VideoView save RTSP stream

I'm playing on my Android Nexus One some videos of a few cisco cameras using a VideoView. 我在Android Nexus One上玩一些使用VideoView的一些cisco摄像头的视频。 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 我正在打开像rtsp://192.168.1.22:554 / live.sdp这样的网址

How can I save it to the SDcard ? 如何将其保存到SD卡? Handle it like a file maybe ... Is that possible ? 像文件一样处理它......这可能吗?

You can implement/use library, your own RTSP client which will pipe the incoming RTP packets into a file. 您可以实现/使用库,您自己的RTSP客户端,它将传入的RTP数据包传输到文件中。 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. 如果您还想播放视频流,则可以向媒体播放器提供RTSP服务器的本地RTSP服务器地址,然后将相同的RTP数据包传输到媒体播放器。 If you need you can find an open source RTSP server/client here 如果需要,可以在此处找到开源RTSP服务器/客户端

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM