Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Camera streaming using RTP from Android to PC

I'd like to write an application for Android for camera streaming to PC (H.263, MPEG_4). I found some libraries: sipandroid, jlibrtp. SIPandroid: RTP packets are streamed (wireshark catches it on PC well), but VLC can't play it.

Jlibrtp: API is shady, stream is not played correctly using VLC.

May be there are some adaptations to these libraries (to make it working for camera streaming), or there are some other libraries with clean API and samples?

Thanks for your answer.

like image 465
Naight Avatar asked Mar 28 '11 13:03

Naight


1 Answers

VLC has built-in support for RTP, and as @Lukas said, the network interfaces are likely the problem on VLC. If you stream everything to one port, and listen on that port, you will at least get something. You can also look into the RTP packets to see if they are well formed.

VLC itself uses the LiveMedia library, so you may be able to use that.

like image 155
cdeszaq Avatar answered Oct 19 '22 21:10

cdeszaq