fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.47k stars 1.07k forks source link

Streaming individual camera frames #137

Open candyss9185 opened 8 years ago

candyss9185 commented 8 years ago

Hi, I'm working on a project where the objective is to stream the frames of the android camera. Each frame of the camera needs to be treated and sent, ideally, in an rtsp stream. Is there a way to use RtspServer with individual frames instead of the MediaRecorder (I'm working with android-14 so I can't use MediaEncoder). Thanks

Locnath commented 8 years ago

I haven't tried this myself but I think you could use MJPEG to encode the individual camera frames(received in callback in app)  and modify the packetizer to encapsulate this in RTP and send. On 21-Sep-2015 9:28 pm, Candice Seenyen notifications@github.com wrote:Hi, I'm working on a project where the objective is to stream the frames of the android camera. Each frame of the camera needs to be treated and sent, ideally, in an rtsp stream. Is there a way to use RtspServer with individual frames instead of the MediaRecorder (I'm working with android-14 so I can't use MediaEncoder). Thanks

—Reply to this email directly or view it on GitHub.