This commit allows stream to be selected by -W maxwidth and/or -H maxheight.
If one or both are given, the largest video with width and height below the maximum is selected for download. If none exists, an error is returned.
youtube-dl has a similar mechanism for selecting videos by width and height, and I find it very useful for e.g., devices with a limited resolution or ability to reproduce files.
This commit allows stream to be selected by -W maxwidth and/or -H maxheight.
If one or both are given, the largest video with width and height below the maximum is selected for download. If none exists, an error is returned.
youtube-dl has a similar mechanism for selecting videos by width and height, and I find it very useful for e.g., devices with a limited resolution or ability to reproduce files.