Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other Video Formats #74

Open
BobbyShoe opened this issue Jan 15, 2020 · 2 comments
Open

Other Video Formats #74

BobbyShoe opened this issue Jan 15, 2020 · 2 comments
Labels

Comments

@BobbyShoe
Copy link

Have you ever tried to use the other Video Formats for lower resolution? I see four different video options available in the array on this line of code:

VideoFormat videoFormat = nano.VideoFormats[0];

1280 X 720
960 X 540
640 X 360
320 X 180

are available. However only 1280 X 720 (at index 0) appears to start streaming.

Thanks.

@BobbyShoe
Copy link
Author

Also the formats all indicate they are 30 FPS, but the streams appear to be 60 FPS from what I can tell.

@ISergey256
Copy link

change
VideoFormat videoFormat = nano.VideoFormats [0];
does not give changes.

usage
nano.Control.ChangeVideoQualityAsync

   public enum StreamResolution
   {
       VR_360p, // 640x360
       VR_480p, // 848x480
       VR_720p, // 1280x720
       VR_1080, // 1920x1080

       VR_540p //not support
   }

....

public async Task InitializeStreamAsync(/*StreamResolution _resolution = StreamResolution.VR_720p*/)
       {
           //resolution = _resolution;

           AudioFormat audioFormat = nano.AudioFormats[0];
           VideoFormat videoFormat = nano.VideoFormats[0];

           await nano.Control.ChangeVideoQualityAsync(8000000, (uint)resolution, 30000, 1001, 59, 0);
           await nano.InitializeStreamAsync(audioFormat, videoFormat);

       }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants