python获取视频时长方法
1.使用subprocess和reimport reimport subprocessvideo = r"work/train/video/a8b96f016a28d8f3836f7cbb7734ecde.mp4"import subprocessdef get_length(filename): result = subprocess.run(["ffprobe", "-v", "error", "