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
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