批量处理文件:
将 *.MP4 放入其对应的文件夹内
python执行:
folder_list = sorted([i.split('.')[0] for i in os.listdir('./')])
# file_list = sorted([i for i in os.listdir('./') if os.path.isfile(i)])
# print(folder_list)
# for i in folder_list:
# os.mkdir(i)
# for i, j in zip(folder_list, file_list):
# shutil.move(j, i)
# # print(folder_list)
# print(file_list)
xshell 界面执行:(循环批量将视频分解成帧)
for VIDEO_NAME in *; do ffmpeg -i $VIDEO_NAME/$VIDEO_NAME.mp4 -f image2 $VIDEO_NAME/%06d.png; done;
执行 make_frameACB.py 文件,结果如下: