pedroSG94 / RootEncoder

RootEncoder for Android (rtmp-rtsp-stream-client-java) is a stream encoder to push video/audio to media servers using protocols RTMP, RTSP, SRT and UDP with all code written in Java/Kotlin
Apache License 2.0
2.54k stars 772 forks source link

Push custom video buffer #1057

Closed Goule closed 2 years ago

Goule commented 2 years ago

Hello,

I'm looking for a way to push to the library a custom video buffer, is that possible?

Here is an example : IMG_1168

Use case example :

Is there a way to do it? If yes, with filters?

Thanks :)

pedroSG94 commented 2 years ago

Hello,

You can try like this: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/issues/1033 RtspClient and RtmpClient have a the same usage.

About filters, no, you can't do it because filters need a GlInterface to work. Anyway, you can try decode frames provided by GoPro/DJI into GlInterface surface but you need modify library creating your own stream mode (like FromFileBase but instead of use a file to get frames, getting frames from GoPro or DJI).

florianmlr commented 2 years ago

Hello @pedroSG94 , I'm interested in this scenario, I have a source that provides YUV i420 data frame, is there a simple way to render it directly in the openglview ?

pedroSG94 commented 2 years ago

No,

Actually it is not supported.

Goule commented 2 years ago

Thanks @pedroSG94 for your reponse !