We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e679bea commit b47cd37Copy full SHA for b47cd37
convert.py
@@ -35,7 +35,7 @@ def run():
35
width, height = size.strip().split("x")
36
37
webp_path = Path(out_path, f"{video.name.replace(".mp4", "")}.webp")
38
- return_code = subprocess.run([
+ subprocess.run([
39
ffmpeg_path,
40
"-i", video,
41
"-vcodec", "libwebp",
@@ -44,14 +44,12 @@ def run():
44
"-loop", "0",
45
"-preset", "default",
46
"-an",
47
- "-vsync", "0",
+ "-fps_mode", "passthrough",
48
"-s", f"{width}:{height}",
49
"-y", # overwrite
50
webp_path
51
])
52
53
- print(return_code)
54
-
55
convered += 1
56
57
print(f"\nconverted {convered} videos to webp!")
0 commit comments