selsta / hlsdl

C program to download VoD HLS (.m3u8) files
MIT License
636 stars 158 forks source link

select stream based on width and/or height #58

Closed sgerwk closed 4 years ago

sgerwk commented 4 years ago

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.

selsta commented 4 years ago

thank you