BetaS / facebook_live_client_android

unofficial facebook-live(w/ RTMP, OpenCV, FFMPEG, HW Accel) client for Android
14 stars 6 forks source link

facebook live api #7

Open tajj opened 6 years ago

tajj commented 6 years ago

Hi @BetaS !

I am a developer trying to use facebook live's api on an android app. I noticed this app and the way you set it up and wanted to ask how exactly video stream is encoded into an rtmp stream and uploaded to an endpoint to connect it to facebook live.

Thank you!

dhhyuk commented 6 years ago

Hi @tajj

So, do you mean you want to know how to connect encoded RTMP to Facebook Live api?

tajj commented 6 years ago

Thanks for the response, and yes! @sss989870

dhhyuk commented 6 years ago

@tajj i'm sorry that my english is bad.

Briefly, The Facebook Live API provides an RTMP link. You can use Java CV to take an image of the camera and overlay it to create the desired image, convert it to a Java CV frame object, and then transfer it using the record function of FFmpegFrameRecorder.

if you would use JavaCV, you can see Streaming Sample. I didn't use ndk opencv yet.

dhhyuk commented 6 years ago

and i will use ndk opencv soon.