Skip to content

Commit

Permalink
Silence ffprobe debug output on stderr. (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Querschlag authored Oct 29, 2021
1 parent 3ae360f commit e74f2f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions video_encoding/backends/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def get_media_info(self, video_path: str) -> Dict[str, Union[int, float]]:
Return information about the given video.
"""
cmd = [self.ffprobe_path, '-i', video_path]
cmd.extend(['-hide_banner', '-loglevel', 'warning'])
cmd.extend(['-print_format', 'json'])
cmd.extend(['-show_format', '-show_streams'])

Expand Down

0 comments on commit e74f2f6

Please sign in to comment.