Skip to content

Commit

Permalink
Log resolution change during video conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenAnpu committed Dec 16, 2024
1 parent 0c83419 commit ac9897d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def convert_video(target_fps, in_fpath, out_fpath, target_resolution=None):
video_stream = in_video.video.filter("fps", target_fps)

if g.CHANGE_RESOLUTION:
sly.logger.info(f'Changing resolution to {target_resolution[0]}x{target_resolution[1]}')
video_stream = video_stream.filter('scale', target_resolution[0], target_resolution[1]) # width, height

stream_list = [video_stream]
Expand Down

0 comments on commit ac9897d

Please sign in to comment.