Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android VideoView save RTSP stream

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 ?

like image 608
Nils Avatar asked Jun 24 '10 02:06

Nils


1 Answers

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

like image 152
Inon Stelman Avatar answered Oct 02 '22 12:10

Inon Stelman