Files
TanishqandHarry 16986d0118 perf(material): download Pixabay's 1080p file instead of the 4K one when it fills the video
search_videos_pixabay() kept the first file of a hit that matches the
orientation and fills the output, and Pixabay lists large first. The
API documentation gives large as usually 3840x2160 and medium as
usually 1920x1080, available for every video, so for a 4K video the
task downloaded, validated and decoded four times the pixels that the
1080x1920 or 1920x1080 output keeps. In a portrait task whose only hit
was a 12 s 4K test video served locally, cutting the two clips took
79 s instead of 8 s.

The files are now tried from the smallest up, so the first one that
fills the output is used, as search_videos_pexels() already does.
Older videos, whose large file is 1920x1080, still use it.
2026-11-13 14:44:31 +08:00
..
2024-03-11 16:37:49 +08:00
2026-11-12 03:28:01 +00:00