Files
aiData/DouYin/check_streams.py

29 lines
1.1 KiB
Python
Raw Permalink Normal View History

2026-01-20 19:06:36 +08:00
import os
import subprocess
import logging
def check_streams():
directory = r"d:\dsWork\aiData\DouYin\DownloadedVideos"
files = [
"必须认真听的136号文详细解读#知识分享 #136号文#干货分享 @图钉 YCsolar @少帅 YCsolar @电交所的秦老师_bd190d35.mp4",
"售电报价“35几”别高兴太早这可能是你踩过最贵的坑 “35几”、“36几”的售电报价别高兴太早这背后可能藏着违规价、阴阳合同、魔鬼条款三大“地雷阵”我那个化工客户就为一份3毛6的合同一_a496a291.mp4"
]
for filename in files:
filepath = os.path.join(directory, filename)
if not os.path.exists(filepath):
print(f"File not found: {filename}")
continue
print(f"Checking: {filename}")
cmd = ["ffprobe", "-v", "error", "-show_streams", filepath]
try:
result = subprocess.run(cmd, capture_output=True, text=True, encoding='utf-8')
print(result.stdout)
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
check_streams()