LivePortrait icon indicating copy to clipboard operation
LivePortrait copied to clipboard

Is that possible to do a streaming with this?

Open Bimal2614 opened this issue 1 year ago • 5 comments

Bimal2614 avatar Sep 16 '24 15:09 Bimal2614

Hi Bimal,

By default, the code doesn’t support streaming, so I implemented a workaround to enable RTMP/RTSP streaming from the React Native application. On the backend, I’m running a separate thread in Python using OpenCV (cv2) to process the stream and perform frame-by-frame inference.

While this is just a test, I noticed the FPS is quite low, even when running on an RTX 3090.

bilaltahseen avatar Dec 17 '24 11:12 bilaltahseen

What can be the solution?

Bimal2614 avatar Dec 17 '24 13:12 Bimal2614

What can be the solution?

The solution I came up is to process chunks of video and stream it using HLS

bilaltahseen avatar Dec 20 '24 19:12 bilaltahseen

@bilaltahseen how slow is it? what fps are you getting?

LearnedVector avatar Feb 16 '25 20:02 LearnedVector

I was getting around 6-10 fps.

bilaltahseen avatar Feb 16 '25 20:02 bilaltahseen