videokit-ai / videokit

Low-code, cross-platform media SDK for Unity Engine. Register at https://videokit.ai
https://videokit.ai
Apache License 2.0
107 stars 14 forks source link

Videos recorded using ScreenSource on Windows are upside down #143

Open natsoragge opened 2 months ago

natsoragge commented 2 months ago

I'm using a ScreenSource to record my screen, but the resulting videos are vertically flipped. Removing the part of the ScreenSource code that checks SystemInfo.graphicsUVStartsAtTop seems to fix the issue. This variable returns true, which I believe is expected for DirectX. I tested this on three different machines, all running Windows and DirectX 12.

Recording on my Android device works fine.

olokobayusuf commented 1 month ago

Hey @natsoragge apologies for the delayed response on this. I can't reproduce this on Windows (DX12). Do you get vertically flipped videos in the editor or at runtime (or both)?

oadmi commented 2 weeks ago

I'm also encountering an issue where videos appear vertically flipped at runtime when using DX12. This problem only occurs on Windows; videos display correctly on Android, macOS, and iOS. The issue began shortly after I switched from NatML to VideoKit around three months ago.

olokobayusuf commented 2 weeks ago

@oadmi can you try out the latest VideoKit (0.0.22)? Are you on the free tier by any chance?

oadmi commented 2 weeks ago

I’m using the paid version and have tried VideoKit (0.0.22) but am still encountering the same issue. For more details, I’m using VideoKit to record from a camera source that observes a Rendered Texture.