Skip to content

Commit

Permalink
Remove rename
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjkhan committed Dec 31, 2022
1 parent ce9cf5e commit 4cdb0ab
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions cdp_backend/utils/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,19 +713,7 @@ def clip_and_reformat_video(
"""
import ffmpeg

output_path = output_path or rename_append_to_stem(video_filepath, "_clipped")

log.info(f"Input video to trim: {str(video_filepath)}")
log.info(f"Input video exists: {video_filepath.exists()}")
if video_filepath.exists():
log.info(f"Input video stats: {video_filepath.stat()}")
log.info(f"Output video: {str(output_path)}")
log.info(f"Output video exists: {output_path.exists()}")
if video_filepath.exists():
log.info(f"Output video stats: {output_path.stat()}")
log.info("Directory contents:")
for file in video_filepath.parent.iterdir():
log.info(str(file))
output_path = output_path or append_to_stem(video_filepath, "_clipped")

try:
ffmpeg_stdout, ffmpeg_stderr = (
Expand Down

0 comments on commit 4cdb0ab

Please sign in to comment.