[gtk/ottie-video-args] Make ottie video use the output filename
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ottie-video-args] Make ottie video use the output filename
- Date: Mon, 21 Dec 2020 03:20:17 +0000 (UTC)
commit d88ec0b73784c9422c320318cb8c6314dbe3607e
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 20 22:19:32 2020 -0500
Make ottie video use the output filename
It was still hardcoding foo.webm.
ottie/tools/ottie.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/ottie/tools/ottie.c b/ottie/tools/ottie.c
index 65de955f8c..dd44322e1d 100644
--- a/ottie/tools/ottie.c
+++ b/ottie/tools/ottie.c
@@ -248,6 +248,7 @@ do_video (int argc,
GOutputStream *pipe;
cairo_surface_t *surface;
char *width_string, *height_string;
+ char *location_string;
while (TRUE)
{
@@ -282,6 +283,7 @@ do_video (int argc,
width_string = g_strdup_printf ("width=%d", width);
height_string = g_strdup_printf ("height=%d", height);
+ location_string = g_strdup_printf ("location=%s", argv[1]);
process = g_subprocess_new (G_SUBPROCESS_FLAGS_STDIN_PIPE,
&error,
"gst-launch-1.0",
@@ -291,10 +293,11 @@ do_video (int argc,
"!", "videoconvert",
"!", "vp9enc",
"!", "webmmux",
- "!", "filesink", "location=foo.webm",
+ "!", "filesink", location_string,
NULL);
g_free (width_string);
g_free (height_string);
+ g_free (location_string);
if (process == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]