RenderHeads / UnityPlugin-AVProLiveCamera

AVPro Live Camera is a Unity plugin for webcams, TV cards and capture cards
https://renderheads.com/products/avpro-live-camera/
11 stars 0 forks source link

Randomly resolution and fps init #7

Closed Filaind closed 2 years ago

Filaind commented 5 years ago

We have a problem with a camera init. So, we set a camera index and mode, invoke _liveCamera.Begin();

But, camera starting on randomly resolution and fps.

Example: Mode 0 = 1920x1080 30fps

But camera start in 640x480 24fps. If we invoke repeately _liveCamera.Begin(); camera can start normaly in 1920x1080 30fps.

This bug contains on different camera inputs

AVPro Live Camera - Version 2.8.0

AndrewRH commented 5 years ago

Could you show us the code you're using to set the index and device, and how you're calling Begin()?

Thanks,

Filaind commented 5 years ago

@AndrewRH

    public void SetDevice(int id)
    {
        cameraInputSettings.cameraIndex = id;
        _liveCamera._deviceSelection = AVProLiveCamera.SelectDeviceBy.Index;
        _liveCamera._desiredDeviceIndex = id;
        _liveCamera.Begin();
        MakeDropdowns();
    }

    public void SetResolution(int id)
    {
        cameraInputSettings.modeIndex = id;
        _liveCamera._modeSelection = AVProLiveCamera.SelectModeBy.Index;
        _liveCamera._desiredModeIndex = id;
        _liveCamera.Begin();
    }
AndrewRH commented 5 years ago

Thanks....I can't see anything wrong with that code! We're investigating...

AndrewRH commented 4 years ago

@Filaind Which webcam device is this happening with?

Chris-RH commented 2 years ago

Could not reproduce