class_docstr: Class for video byte-level reading with ffmpeg.
class_docstr_tok: ["Class","for","video","byte-level","reading","with","ffmpeg","."]
docstr: Helper method to return the frame number at time ``t``
docstr_tok: ["Helper","method","to","return","the","frame","number","at","time","``","t","``"]
code: def get_frame_number(self, t):
      """Helper method to return the frame number at time ``t``"""
      # I used this horrible '+0.00001' hack because sometimes due to numerical
      # imprecisions a 3.0 can become a 2.99999999... which makes the int()
      # go to the previous integer. This makes the fetching more robust when you
      # are getting the nth frame by writing get_frame(n/fps).
      return int(self.fps * t + 0.00001)
  
imports: import os
  import re
  import subprocess
  import warnings
  import numpy
  from moviepy.config import FFMPEG_BINARY
  from moviepy.tools import convert_to_seconds, cross_platform_popen_params
label_desc: Use image node_id 6 for calling the FFMPEG_VideoReader obj's underlying member method code with example usage: obj.get_frame_number(t) and returns: int