How to compress video to target size by Python? - Stack Overflow

PHOTO EMBED

Sun Dec 17 2023 06:32:48 GMT+0000 (Coordinated Universal Time)

Saved by @chook100 #python

# Best min size, in kB.
best_min_size = (32000 + 100000) * (1.073741824 * duration) / (8 * 1024)
content_copyCOPY

https://stackoverflow.com/questions/64430805/how-to-compress-video-to-target-size-by-python