Skip to content

Commit

Permalink
Minor inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jan 22, 2021
1 parent 0cbe6d3 commit 240c7c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moviepy/video/io/ffmpeg_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,11 +628,11 @@ def parse_video_stream_data(self, line):
return (global_data, stream_data)

def parse_fps(self, line):
"""Parses number of FPS from a line of the `ffmpeg -i` command output."""
"""Parses number of FPS from a line of the ``ffmpeg -i`` command output."""
return float(re.search(r" (\d+.?\d*) fps", line).group(1))

def parse_tbr(self, line):
"""Parses number of TBS from a line of the `ffmpeg -i` command output."""
"""Parses number of TBS from a line of the ``ffmpeg -i`` command output."""
s_tbr = re.search(r" (\d+.?\d*k?) tbr", line).group(1)

# Sometimes comes as e.g. 12k. We need to replace that with 12000.
Expand Down

0 comments on commit 240c7c4

Please sign in to comment.