uv run python src/tests/benchmark_huggingface_images.py
uv run python src/tests/benchmark_video_dataset.py data/humming_bird_1s.mp4
ffmpeg -i data/humming_bird_1s.mp4 -c:v libx264 -x264-params keyint=1:scenecut=0 -crf 18 data/humming_bird_1s_keyframes_only.mp4
ffprobe -loglevel error -select_streams v:0 -show_entries frame=pict_type -of default=noprint_wrappers=1 data/humming_bird_1s_keyframes_only.mp4
Terminology:
- I-frame is a key frame. Decoding a keyframe is not dependent on other frames.
- P-frame is a predicted frame. It is dependent on an preceding frame.
- B-frame is a bi-directional predicted frame. It depends on a preceding and a succeeding frame.