Pass dng/grw mode down to mpegize.

This commit is contained in:
Pavel Machek
2024-05-06 22:18:45 +02:00
parent c9dceb170b
commit bc9085ffad
3 changed files with 19 additions and 3 deletions

View File

@@ -687,6 +687,20 @@ static void
spawn_movie(char *cmd)
{
g_autoptr(GError) error = NULL;
char *mode;
switch (state_proc.mode->v4l_pixfmt) {
case V4L2_PIX_FMT_UYVY:
case V4L2_PIX_FMT_YUYV:
case V4L2_PIX_FMT_YVYU:
case V4L2_PIX_FMT_VYUY:
mode = "grw";
break;
default:
mode = "dng";
break;
}
GSubprocess *proc = g_subprocess_new(G_SUBPROCESS_FLAGS_STDOUT_PIPE,
&error,
movie_script,
@@ -694,6 +708,7 @@ spawn_movie(char *cmd)
burst_dir,
movie_fname,
"305",
mode,
NULL);
if (!proc) {