Search code examples
androidffmpegservercamerartsp

how to set android's camera as the input of ffmpeg


I managed to run ffmpeg in Android Studio project, but don't know how to set the Android's camera as the input of ffmpeg. Is it possible now?

If not, is there some open-sourced projects that can get Android's camera and turn the phone to a rtsp server? Then I can use ffmpeg to get that rtsp link.

Really appreciate it if some suggestions about this, thanks.


Solution

  • Ist Part of your question: Android Camera Capture using FFmpeg

    2ndPart:

    1.ffserver receives prerecorded files or FFM streams from some ffmpeg instance as input, then streams them over RTP/RTSP/HTTP. https://ffmpeg.org/ffserver.html

    2.You can use GStreamer: Using Gstreamer or ffmpeg to create rtsp client on Android

    3.Not open source but Wowza mobile Sdk(RTMP),TokBox(based on WebRTC) etc can solve your purpose.