bakjos / FFMPEGMedia

Unreal FFMPEG Plugin to support more video formats and alpha videos
210 stars 55 forks source link

Camera stream opens only once in Unreal 5.0 #41

Closed M0oo0dy closed 1 year ago

M0oo0dy commented 1 year ago

So I am trying to RTSP stream a camera into Unreal 5.0 using FFMPEG. I got the camera up and running once, but when I try to open it after that first time it only shows a black screen. The camera is saying it is indeed streaming, it is just not appearing in Unreal. If I swap the camera using to VLC, have it stream into Unreal using VLC then swap it back, it works. But then I have to repeat this process every time.

I am unsure if it is related to line 111 in FFMPEGMedia/blob/master/Source/FFMPEGMedia/FFMPEGMedia.Build.cs

AdditionalPropertiesForReceipt.Add(new ReceiptProperty("AndroidPlugin", finalPath));

When building the plugin from source to work with Unreal 5.0, it mentioned this line saying there was no 'Value' for the add function, Something along the line of (string, string). I think it had something to do with a ReceiptProperty not being able to cast to a string. I commented this line out and nothing seems to be wrong. But the camera I am using runs a version of android, which this line is under the if Targetplatform == Android if statement so maybe it is the issue?

The only other code I changed building the plugin from source was removing references to 32 bit windows since Unreal 5.0 does not natively support windows 32 bit.