Streamed videos reduce down to a width of 1280 regardless of actual and/or specified size
Summary
Streamed videos that are greater in size than a 1280 width get reduced down to a 1280 width, even if the display size is specified.
Minimal project and steps to reproduce
- Open a new project and install the Unity VLC app
- Ensure that "--preferred-resolution=-1" is included in the VLC definition line
- View a 4k or higher local video
- Observe that it plays at the correct resolution
- View a 4k or higher streamed video (ideally the same video)
- Observe that it reduces the video to have a width of 1280 (the height scales down accordingly such that the ratio stays the same and the width is 1280)
Note - in testing this issue, I did use the same local and streamed video to ensure that this is the case.
What is the current bug behavior?
Larger streamed videos are reduced in size to have a width of 1280. This particularly impacts 360 videos which have typically need to have at least 4k resolution.
What is the expected correct behavior?
Videos should not be shrunk down when trying to get the full resolution.
Does it work on other plaforms? Does it work with the official VLC apps?
It appears to not work, but there may be a setting in the official VLC apps I'm not aware of. Regardless, they also default down to have a lower resolution with a width of 1280.
Relevant logs and/or screenshots
Environment
- OS:
- Version
- Device:
- LibVLC version and architecture
- LibVLCSharp version
- VLC Unity plugin version
- Scripting backend used
Windows 10 Unity 2021.1.1f VLC Version 0.1.3
Possible fixes
I included the line (per #109 (closed)) that is intended to specify size, but I'm hopeful there is some extra line that can be included to ensure that the desired size can be retrieved from streamed videos.