[gegl] ff-save: add container_format property



commit 30c12ec6c1fa24c9e6c8c309fae332bf067815df
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Dec 15 15:22:48 2015 +0000

    ff-save: add container_format property

 operations/external/ff-save.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/operations/external/ff-save.c b/operations/external/ff-save.c
index bc795b6..841bc4e 100644
--- a/operations/external/ff-save.c
+++ b/operations/external/ff-save.c
@@ -45,6 +45,8 @@ property_int (video_bit_rate, _("video bitrate in kb/s"), 128)
     description (_("Target encoded video bitrate in kb/s"))
 property_int (video_bufsize, _("Video bufsize"), 0)
 
+property_string (container_format, _("Container format"), "auto")
+
 #ifdef USE_FINE_GRAINED_FFMPEG
 property_int (global_quality, _("global quality"), 0)
 property_int (noise_reduction, _("noise reduction"), 0)
@@ -843,7 +845,11 @@ tfile (GeglProperties *o)
 {
   Priv *p = (Priv*)o->user_data;
 
-  p->fmt = av_guess_format (NULL, o->path, NULL);
+  if (strcmp (o->container_format, "auto"))
+    p->fmt = av_guess_format (o->container_format, o->path, NULL);
+  else
+    p->fmt = av_guess_format (NULL, o->path, NULL);
+
   if (!p->fmt)
     {
       fprintf (stderr,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]