Force 8 bit output from ffmpeg (#1180)

Output 8 bit from ffmpeg video-> image conversion
This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-12-27 11:10:08 -07:00
1 parent 5495a8e146
commit 0d6117d32c
1 file changed
+1
@@ -94,6 +94,7 @@ def convert_video_to_images(
ffmpeg_cmd += f" -vf thumbnail={spacing},setpts=N/TB -r 1"
else:
CONSOLE.print("[bold red]Can't satify requested number of frames. Extracting all frames.")
ffmpeg_cmd += " -pix_fmt bgr8"
ffmpeg_cmd += f" {out_filename}"