Skip to content

Commit

Permalink
warn text
Browse files Browse the repository at this point in the history
  • Loading branch information
bjudkewitz committed Oct 14, 2024
1 parent 5377579 commit 485480e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/napari_pyav/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ def __init__(self, filename, read_format='rgb24', threading=True, thread_count=0
self.rewind()
self.forgiving = forgiving
if self.container.format.variable_fps:
warn_transcode(f'Variable frame rate video detected. Seeking will likely be unrealiable.')
warn_transcode(f'Variable frame rate video detected. Seeking will likely be unrealiable. I will warn again if I detect seek gitches')
# if self.stream.codec_context.has_b_frames:
# warnings.warn(f'B-frames detected. Seeking may be unrealiable.')
# warn_transcode()
if self.stream.average_rate != self.stream.guessed_rate:
warn_transcode(f'Average frame rate ({self.stream.average_rate}) is different from nominal frame rate ({self.stream.guessed_rate}). Seeking may be unrealiable.')
warn_transcode(f'Average frame rate ({self.stream.average_rate}) is different from nominal frame rate ({self.stream.guessed_rate}). Seeking may be unrealiable. I will warn again if I detect seek gitches')

def read(self):
''' Read the next frame in the specified format. '''
Expand Down

0 comments on commit 485480e

Please sign in to comment.