To include video metadata in your request, add the metadata fields (such as fps, total_pixels, or min_pixels) inside the video_url dictionary. For example:
The error message indicates that the video was loaded with shape (0, 480, 640, 3), meaning no frames were decoded—this often happens if the video is encoded in AV1, which OpenCV cannot decode by default. vLLM relies on OpenCV for video decoding, and AV1 is not supported out-of-the-box (issue, docs).
Solution:
Re-encode your video to a supported codec such as H.264 (AVC) using ffmpeg:
ffmpeg -i input_av1.mp4 -c:v libx264 -crf 23 -preset fast output_h264.mp4
Then use output_h264.mp4 as your input file.
Would you like more detail on supported codecs or ffmpeg usage?