0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

Fix ffmpeg not found when specifying ffmpeg_location

This commit is contained in:
Kenshin 2024-10-13 23:26:40 +02:00
parent 4f7c6e90c8
commit 8a450b3aeb

View file

@ -1211,19 +1211,19 @@ def __init__(self, info_dict, ffmpeg_args, hook_progress, ydl=None):
self._streams, self._stderr_buffer, self._stdout_buffer = ['', ''], '', ''
self._progress_pattern = re.compile(r'''(?x)
(?:
frame=\s(?P<frame>\S+)\n
fps=\s(?P<fps>\S+)\n
stream_\d+_\d+_q=\s(?P<stream_d_d_q>\S+)\n
frame=\s*(?P<frame>\S+)\n
fps=\s*(?P<fps>\S+)\n
stream_\d+_\d+_q=\s*(?P<stream_d_d_q>\S+)\n
)?
bitrate=\s(?P<bitrate>\S+)\n
total_size=\s(?P<total_size>\S+)\n
out_time_us=\s(?P<out_time_us>\S+)\n
out_time_ms=\s(?P<out_time_ms>\S+)\n
out_time=\s(?P<out_time>\S+)\n
dup_frames=\s(?P<dup_frames>\S+)\n
drop_frames=\s(?P<drop_frames>\S+)\n
speed=\s(?P<speed>\S+)\n
progress=\s(?P<progress>\S+)
bitrate=\s*(?P<bitrate>\S+)\n
total_size=\s*(?P<total_size>\S+)\n
out_time_us=\s*(?P<out_time_us>\S+)\n
out_time_ms=\s*(?P<out_time_ms>\S+)\n
out_time=\s*(?P<out_time>\S+)\n
dup_frames=\s*(?P<dup_frames>\S+)\n
drop_frames=\s*(?P<drop_frames>\S+)\n
speed=\s*(?P<speed>\S+)\n
progress=\s*(?P<progress>\S+)
''')
if self.ydl: