google / mediapy

This Python library makes it easy to display images and videos in a notebook.

Home Page:https://pypi.org/project/mediapy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

question about write_video

Tsingularity opened this issue · comments

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!

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

thanks!