mbuckler / youtube-bb

Public repo for helpful scripts when using the YouTube Bounding Boxes dataset
MIT License
193 stars 57 forks source link

Downloading videos of a fixed resolution #23

Closed spaul13 closed 5 years ago

spaul13 commented 5 years ago

While downloading the video is it possible to download the videos of a predefined high resolution (let's say 1080p)?

What do I need to do in order to achieve this?

mbuckler commented 5 years ago

The scripts in this repo are built to download all annotated videos and then decode all annotated frames (no filtering is provided)

If you'd prefer to filter out videos based on resolution or some other metric, you may be interested in the additional options for the youtube downloader used in the scripts: https://github.com/ytdl-org/youtube-dl/blob/master/README.md#options. Basically, we've built a lot of code around this core downloader, and you could edit the code to adjust what videos are downloaded. The youtube downloader itself can check for a variety of properties within the video