Skip to content

Commit 2bf0bfe

Browse files
FIX ffmpeg wrapper: use -b:v instead of -b
ffmpeg says “Please use -b:a or -b:v, -b is ambiguous”
1 parent 22d55df commit 2bf0bfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

surfer/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,8 @@ def ffmpeg(dst, frame_path, framerate=24, codec='mpeg4', bitrate='1M'):
699699
frame_dir, frame_fmt = os.path.split(frame_path)
700700

701701
# make the movie
702-
cmd = ['ffmpeg', '-i', frame_fmt, '-r', str(framerate), '-b', str(bitrate)]
702+
cmd = ['ffmpeg', '-i', frame_fmt, '-r', str(framerate),
703+
'-b:v', str(bitrate)]
703704
if codec is not None:
704705
cmd += ['-c', codec]
705706
cmd += [dst]

0 commit comments

Comments
 (0)