Skip to content

Commit 0e0a992

Browse files
committed
cosmit for travis
1 parent 1600f07 commit 0e0a992

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

surfer/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,10 +703,10 @@ def ffmpeg(dst, frame_path, framerate=24, codec='mpeg4'):
703703
frame_dir, frame_fmt = os.path.split(frame_path)
704704

705705
# make the movie
706-
if codec is None:
707-
cmd = ['ffmpeg', '-i', frame_fmt, '-r', str(framerate), dst]
708-
else:
709-
cmd = ['ffmpeg', '-i', frame_fmt, '-r', str(framerate), '-c', codec, dst]
706+
cmd = ['ffmpeg', '-i', frame_fmt, '-r', str(framerate)]
707+
if codec is None:
708+
cmd += ['-c', codec]
709+
cmd += [dst]
710710
logger.info("Running FFmpeg with command: %s", ' '.join(cmd))
711711
sp = subprocess.Popen(cmd, cwd=frame_dir, stdout=subprocess.PIPE,
712712
stderr=subprocess.PIPE)

0 commit comments

Comments
 (0)