diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-15 02:30:35 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-15 02:30:35 +0200 |
| commit | a5727777a22f2e631640a2db55ef68bb6eaa51e5 (patch) | |
| tree | acabd04978168c6481f449f8ee1da819b650becc /test-mogrify.py | |
| parent | 01a7466881ec9762862a6a9df9b3615d45f999c8 (diff) | |
test
Diffstat (limited to 'test-mogrify.py')
| -rw-r--r-- | test-mogrify.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test-mogrify.py b/test-mogrify.py index 9a64bfc..3d9978c 100644 --- a/test-mogrify.py +++ b/test-mogrify.py @@ -29,6 +29,7 @@ if __name__ == '__main__': render_dir = opt.results_dir + opt.name + "/" + data_opt.experiment + "/" + print("create render_dir: {}".format(render_dir)) if os.path.exists(render_dir): rmtree(render_dir) mkdirs(render_dir) @@ -123,7 +124,7 @@ if __name__ == '__main__': # blur, sigma, canny_lo, canny_hi, d.strftime('%Y%m%d%H%M')) - cmd = ("ffmpeg", "-i", render_dir + "ren_%05d.png", "-y", "-c:v", "libx264", "-vf", "fps=30", "-pix_fmt", "yuv420p", render_dir + video_fn) + cmd = ("ffmpeg", "-i", render_dir + "ren_%05d.png", "-y", "-c:v", "libx264", "-vf", "fps=30", "-pix_fmt", "yuv420p", "-s", "455x256" render_dir + video_fn) process = subprocess.Popen(cmd, stdout=subprocess.PIPE) output, error = process.communicate() |
