Video editing with Python
fix regex for codec when no profile
osaajanid31d35062742
diff --git a/moviepy/video/io/ffmpeg_reader.py b/moviepy/video/io/ffmpeg_reader.pyindex 31150570..daa2625a 100644--- a/moviepy/video/io/ffmpeg_reader.py+++ b/moviepy/video/io/ffmpeg_reader.py@@ -108,6 +108,8 @@ class FFMPEG_VideoReader:elif codec_name == 'vp8' :i_arg = ["-c:v", "libvpx"] + i_arg+ print(self.infos)+cmd = ([FFMPEG_BINARY]+ i_arg@@ -128,6 +130,8 @@ class FFMPEG_VideoReader:])+ print(" ".join(cmd))+popen_params = cross_platform_popen_params({"bufsize": self.bufsize,@@ -703,7 +707,7 @@ class FFmpegInfosParser:# Try to extract video codec and profilemain_info_match = re.search(- r"Video:\s(\w+)?\s(\([^)]+\))?",+ r"Video:\s(\w+)?\s?(\([^)]+\))?",line.lstrip(),)if main_info_match is not None :