MCPcopy Index your code
hub / github.com/Breakthrough/PySceneDetect / format

Method format

scenedetect/_cli/config.py:320–327  ·  view source on GitHub ↗
(self, timecode: FrameTimecode)

Source from the content-addressed store, hash-verified

318 """Print timecodes in seconds SSS.sss."""
319
320 def format(self, timecode: FrameTimecode) -> str:
321 if self == TimecodeFormat.FRAMES:
322 return str(timecode.frame_num)
323 if self == TimecodeFormat.TIMECODE:
324 return timecode.get_timecode()
325 if self == TimecodeFormat.SECONDS:
326 return f"{timecode.seconds:.3f}"
327 raise RuntimeError("Unhandled format specifier.")
328
329
330class FcpFormat(Enum):

Callers 15

_detect_scenesFunction · 0.80
run_benchmarkFunction · 0.80
invoke_scenedetectFunction · 0.80
format_optionFunction · 0.80
generate_command_helpFunction · 0.80
get_system_version_infoFunction · 0.80
format_filenameMethod · 0.80
save_imagesFunction · 0.80
split_video_mkvmergeFunction · 0.80
handle_optionsMethod · 0.80

Calls 1

get_timecodeMethod · 0.80

Tested by 2

invoke_scenedetectFunction · 0.64