From 2b03e40f9803a9c9ac797dbe33227a28031bc4d2 Mon Sep 17 00:00:00 2001 From: James Betker Date: Fri, 29 May 2020 20:44:50 -0600 Subject: [PATCH] Debug process_video --- codes/process_video.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codes/process_video.py b/codes/process_video.py index c580543f..696a6b15 100644 --- a/codes/process_video.py +++ b/codes/process_video.py @@ -165,7 +165,8 @@ if __name__ == "__main__": # ffmpeg -framerate 30 -i %08d.png -c:v libx265 -crf 12 -preset slow -pix_fmt yuv444p test.mkv cmd = ['ffmpeg', '-y', '-framerate', str(opt['dataset']['frame_rate']), '-f', 'image2', '-i', osp.join(src_imgs_path, "%08d.png"), '-c:v', 'libx265', '-crf', str(minivid_crf), '-preset', 'slow', '-pix_fmt', 'yuv444p', osp.join(vid_output, "mini_%06d.mkv" % (vid_counter,))] - ffmpeg_proc = subprocess.Popen(cmd, stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL) + print(ffmpeg_proc) + ffmpeg_proc = subprocess.Popen(cmd)#, stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL) vid_counter += 1 frame_counter = 0 print("Done.")