google / mediapy

This Python library makes it easy to display images and videos in a notebook.
https://pypi.org/project/mediapy/
Apache License 2.0
389 stars 18 forks source link

question about write_video #6

Closed Tsingularity closed 2 years ago

Tsingularity commented 2 years ago

Hi, thanks for open-sourcing the great library!

I am just curious in your demo notebook, when saving the video:

# Write a video to a file:
media.write_video('/tmp/video1.mp4', video1, fps=10, qp=10)

what does 'qp' here mean? I searched online but didn't find anything.

Thanks in advance!

hhoppe commented 2 years ago

It stands for "quantization parameter" and is the low-level quality knob in modern video codecs. (Lower values give higher quality.)

Tsingularity commented 2 years ago

thanks!