'commit'
This commit is contained in:
28
DouYin/check_streams.py
Normal file
28
DouYin/check_streams.py
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
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()
|
||||
Reference in New Issue
Block a user