make ffmpeg_thumb python-ffmpeg compatible

This commit is contained in:
deflax 2024-01-18 02:48:00 +02:00
parent 24d684564e
commit aed95d6577

View file

@ -215,8 +215,7 @@ def exec_recorder(stream_id, stream_hls_url):
ffmpeg_thumb = ( ffmpeg_thumb = (
FFmpeg() FFmpeg()
.input(video_output, ss=thumb_skip_time) .input(video_output, ss=thumb_skip_time)
.filter('scale', thumb_width, -1) .output(thumb_output, vf='scale={}:{}'.format(thumb_width, -1), vframes=1)
.output(thumb_output, vframes=1)
) )
ffmpeg_thumb.execute() ffmpeg_thumb.execute()