Young: Sheldon S01e21 Libvpx
if is_libvpx_encoded("young_sheldon_s01e21.mkv"): print("This episode uses libvpx encoding (VP8/VP9)") For a dataset feature vector:
Here’s a breakdown of what you might be trying to generate, along with a practical feature suggestion: A sample libvpx encoding feature for that episode: young sheldon s01e21 libvpx
import subprocess def is_libvpx_encoded(filepath): result = subprocess.run( ['ffprobe', '-v', 'error', '-select_streams', 'v:0', '-show_entries', 'stream=codec_name', '-of', 'default=noprint_wrappers=1:nokey=1', filepath], capture_output=True, text=True ) codec = result.stdout.strip() return codec in ['vp8', 'vp9'] # libvpx produces these if is_libvpx_encoded("young_sheldon_s01e21
{ "episode": 21, "season": 1, "show_title": "Young Sheldon", "episode_title": "A Broken Claw and a Sore Big Toe (example title)", "codec_feature": "libvpx", "container": "webm", "video_codec": "VP9", "audio_codec": "Opus", "resolution": "1920x1080", "feature_tag": "libvpx_encoding" } A Python feature using ffprobe : "show_title": "Young Sheldon"