twelvelabs-io / tl-jockey

Jockey is a conversational video agent.
51 stars 13 forks source link

re_encode_dynamic #83

Closed DmitriiTsy closed 1 month ago

DmitriiTsy commented 1 month ago

Added a new function, check_video_codecs(), which detects and groups compatible codecs from input videos to help make the right decisions for video processing. If all input videos use compatible codecs (from CODEC_FAMILIES), we can process them without re-encoding

In cases where incompatible codecs are detected, the system automatically falls back to re-encoding, ensuring that the final output is always compatible. This solution is more efficient and only make re-encode when it's required