Skip to content

Video editing with Python

Use libvpx but dont force vp8 or vp9, let ffmpeg figure it out

osaajaniab8f02e8b2b1
diff --git a/moviepy/video/io/ffmpeg_reader.py b/moviepy/video/io/ffmpeg_reader.py
index 347d71d4..68ff641c 100644
--- a/moviepy/video/io/ffmpeg_reader.py
+++ b/moviepy/video/io/ffmpeg_reader.py
@@ -102,7 +102,7 @@ class FFMPEG_VideoReader:
# decoder dont decode alpha layer
# (see https://www.reddit.com/r/ffmpeg/comments/fgpyfb/help_with_webm_with_alpha_channel/)
if self.depth == 4 and self.filename[-5:] == '.webm' :
- i_arg = ["-c:v", "libvpx-vp9"] + i_arg
+ i_arg = ["-c:v", "libvpx"] + i_arg
cmd = (
[FFMPEG_BINARY]
@@ -124,6 +124,8 @@ class FFMPEG_VideoReader:
]
)
+ print(' '.join(cmd))
+
popen_params = cross_platform_popen_params(
{
"bufsize": self.bufsize,