Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Touyu-Pan committed Nov 10, 2023
1 parent 589c2d9 commit 755d646
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ffmpeg_media_type/utils/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ def wrapper(uri: str) -> FFProbeInfo:
probe_info = func(uri)
if probe_info.streams[0].height == 0 and probe_info.streams[0].width == 0 and probe_info.format.format_name == "webp_pipe":
if not uri.startswith("http"):
webpmux_command = ["webpmux", "-get", "frame", "1", uri, "-o", uri]
call(webpmux_command)
return func(uri)

parsed_uri = urlparse(uri)
Expand Down

0 comments on commit 755d646

Please sign in to comment.