Skip to content

Commit

Permalink
remove codec from ffmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Sep 2, 2014
1 parent 8d6e440 commit 05e3135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spectral_cube/ytcube.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,14 @@ def _make_movie(moviepath, overwrite=True):
if os.path.exists(outpath) and overwrite:
command = ['ffmpeg', '-y', '-r','5','-i',
os.path.join(moviepath,'%04d.png'),
'-c:v','libx264','-r','30','-pix_fmt', 'yuv420p',
'-r','30','-pix_fmt', 'yuv420p',
outpath]
elif os.path.exists(outpath):
log.info("File {0} exists - skipping".format(outpath))
else:
command = ['ffmpeg', '-r', '5', '-i',
os.path.join(moviepath,'%04d.png'),
'-c:v','libx264','-r','30','-pix_fmt', 'yuv420p',
'-r','30','-pix_fmt', 'yuv420p',
outpath]

pipe = subprocess.Popen(command, stdout=subprocess.PIPE, close_fds=True)
Expand Down

0 comments on commit 05e3135

Please sign in to comment.