Filtering out videos based on video format, resolution, or duration is currently not possible without downloading the full video file and doing the filtering in the postprocessor/output stage.
I recently learned that you can use ffprobe to figure out the metadata of a video without actually downloading the full thing. That's how your browser also knows how long a video (for the video timeline) is without downloading it completely.
This gives us: Duration, Resolution, Framerate, Video-Ratio, Bitrate, Video and Audio format, Audio channel (stereo) and much more.
Similar to extractor.*.image-filter we could have a extractor.*.video-filter that does ffprobe in the background and provides all these fields for the filter string.
Filtering out videos based on video format, resolution, or duration is currently not possible without downloading the full video file and doing the filtering in the postprocessor/output stage.
I recently learned that you can use ffprobe to figure out the metadata of a video without actually downloading the full thing. That's how your browser also knows how long a video (for the video timeline) is without downloading it completely.
This gives us: Duration, Resolution, Framerate, Video-Ratio, Bitrate, Video and Audio format, Audio channel (stereo) and much more.
Similar to
extractor.*.image-filter
we could have aextractor.*.video-filter
that does ffprobe in the background and provides all these fields for the filter string.What do you think?