nicetoolbox.utils.video.get_ffmpeg_input_string¶
- nicetoolbox.utils.video.get_ffmpeg_input_string(video_file: str, number_of_frames: int | None = None, start_frame: int | None = None, skip_frames: bool | None = None) str[source]¶
Constructs the input string for running ffmpeg in the command line.
- Parameters:
video_file (str) – The path to the video file.
number_of_frames (int, optional) – The number of frames to process. Defaults to None.
start_frame (int, optional) – The starting frame position. Defaults to None.
skip_frames (int, optional) – The number of frames to skip. Defaults to None.
- Returns:
The constructed ffmpeg input string.
- Return type:
str