visioforge / .Net-SDK-s-samples

VisioForge .Net SDKs samples - Video Capture SDK, Video Edit SDK, Media Player SDK, Media Blocks SDK, Video Fingerprinting SDK
https://www.visioforge.com
MIT License
51 stars 26 forks source link

Preview not showing WinUI Demo solution #20

Closed karmelcorn closed 8 months ago

karmelcorn commented 9 months ago

I was able to compile the VisoForge.VideoCapture.Demos.CS WinUI.sln however the live-preview does not show up. Was anyone able to compile and run the application successfully? I am using dot net 6.

visioforge commented 9 months ago

Do you have something in the log?

2024-02-20_11-05-56

karmelcorn commented 9 months ago

image image

karmelcorn commented 9 months ago

I get the same error log when I run the VisioForge.VideoCapture.Demos.CS(NuGet)net6.sln. But it actually works on the WPF version. Preview and recording works correctly on the WPF version but not the WinUI version.

visioforge commented 9 months ago

Please check the updated sample. We have found an issue - the best format was used by default, and the combo box was ignored. The sample code issue, not SDK.

karmelcorn commented 9 months ago

Hi, I added the line in VideoCapture1.Video_CaptureDevice.Format_UseBest = false;

But the preview is still not working and the video recording seems to be recorded/playback at 2x the speed...

visioforge commented 9 months ago

Please share logs - https://www.visioforge.com/help/docs/dotnet/general/sendlogs/

karmelcorn commented 9 months ago

VisioForge.zip

karmelcorn commented 8 months ago

Hi, were you able to see the logs? Any updates on what might be causing the issue?

visioforge commented 8 months ago

I was able to check logs. For some reason the frame rate is 0 in your settings. Could you debug code?

Also you can send me a email to support@visioforge.com, and I will be able to connect in AnyDesk to help or debug.

karmelcorn commented 8 months ago

Hi I have sent the email, let me know if you did not receive it.

Although the recording works fine.. is there a different place that's setting the framerate for preview?

visioforge commented 8 months ago

Try to hardcode the VideoCapture1.Video_CaptureDevice.FrameRate property. Or check that it's assigned on the btStart method call.

Yes, I've replied to your email.