Skip to content

Commit b47cd37

Browse files
committed
deprecation warning removal
1 parent e679bea commit b47cd37

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

convert.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def run():
3535
width, height = size.strip().split("x")
3636

3737
webp_path = Path(out_path, f"{video.name.replace(".mp4", "")}.webp")
38-
return_code = subprocess.run([
38+
subprocess.run([
3939
ffmpeg_path,
4040
"-i", video,
4141
"-vcodec", "libwebp",
@@ -44,14 +44,12 @@ def run():
4444
"-loop", "0",
4545
"-preset", "default",
4646
"-an",
47-
"-vsync", "0",
47+
"-fps_mode", "passthrough",
4848
"-s", f"{width}:{height}",
4949
"-y", # overwrite
5050
webp_path
5151
])
5252

53-
print(return_code)
54-
5553
convered += 1
5654

5755
print(f"\nconverted {convered} videos to webp!")

0 commit comments

Comments
 (0)