Skip to main content

Trim Mp4 End

Description

Trims mp4 end.

Function Signature:

def trim_mp4_end(file_path: str, clip_length_in_s: int, seconds_to_trim: int, new_file_path: str) -> Any:

Parameters

  • file_path (str): Full path to the file on disk.
  • clip_length_in_s (int): Input value for clip_length_in_s.
  • seconds_to_trim (int): Input value for seconds_to_trim.
  • new_file_path (str): Input value for new_file_path.

Returns

  • Any: Return value from the function.

Example Usage

# Example usage
file_path = "example"
clip_length_in_s = 1
seconds_to_trim = 1
new_file_path = "example"
result = trim_mp4_end(file_path, clip_length_in_s, seconds_to_trim, new_file_path)
print(result)

Behavior

  • Executes the function logic with the provided arguments.
  • On success, returns the computed value or result object.

Error Handling

  • Exceptions are handled within the function where implemented.