[gegl: 89/90] ff-save: hide more properties that dont do much yet
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl: 89/90] ff-save: hide more properties that dont do much yet
- Date: Fri, 20 Nov 2015 23:36:38 +0000 (UTC)
commit 6432cdd9a33ca49a138d937c6178bcecc8c7936d
Author: Øyvind Kolås <pippin gimp org>
Date: Sat Nov 21 00:33:52 2015 +0100
ff-save: hide more properties that dont do much yet
gegl/property-types/gegl-audio-fragment.h | 5 ++---
operations/external/ff-save.c | 12 ++++++------
2 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/gegl/property-types/gegl-audio-fragment.h b/gegl/property-types/gegl-audio-fragment.h
index 1d8e115..21940e3 100644
--- a/gegl/property-types/gegl-audio-fragment.h
+++ b/gegl/property-types/gegl-audio-fragment.h
@@ -13,8 +13,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
*
- * Copyright 2006 Martin Nordholts <enselic hotmail com>
- * 2015 OEyvind Kolaas <pippin gimp org>
+ * Copyright 2015 OEyvind Kolaas <pippin gimp org>
*/
#ifndef __GEGL_AUDIO_FRAGMENT_H__
@@ -110,7 +109,7 @@ struct _GeglAudioFragmentClass
GType gegl_audio_fragment_get_type (void) G_GNUC_CONST;
-GeglAudioFragment * gegl_audio_fragment_new (int sample_rate, int channels, int
channel_layout, int max_samples);
+GeglAudioFragment * gegl_audio_fragment_new (int sample_rate, int channels, int channel_layout, int
max_samples);
void gegl_audio_fragment_set_max_samples (GeglAudioFragment *audio, int max_samples);
void gegl_audio_fragment_set_sample_rate (GeglAudioFragment *audio, int sample_rate);
diff --git a/operations/external/ff-save.c b/operations/external/ff-save.c
index 1775235..a26107e 100644
--- a/operations/external/ff-save.c
+++ b/operations/external/ff-save.c
@@ -26,13 +26,15 @@
property_string (path, _("File"), "/tmp/fnord.ogv")
description (_("Target path and filename, use '-' for stdout."))
-property_string (video_codec, _("Audio codec"), "auto")
-property_int (video_bit_rate, _("video bitrate"), 810000)
- value_range (0.0, 500000000.0)
property_double (frame_rate, _("Frames/second"), 25.0)
value_range (0.0, 100.0)
#if 0
+property_string (audio_codec, _("Audio codec"), "auto")
+property_int (audio_bit_rate, _("Audio bitrate"), 810000)
+property_string (video_codec, _("Video codec"), "auto")
+property_int (video_bit_rate, _("video bitrate"), 810000)
+ value_range (0.0, 500000000.0)
property_double (video_bit_rate_tolerance, _("video bitrate"), 1000.0)
property_int (video_global_quality, _("global quality"), 255)
property_int (compression_level, _("compression level"), 255)
@@ -42,8 +44,6 @@ property_int (key_int_min, _("the minimum number of frames in a grou
property_int (max_b_frames, _("maximum number of consequetive b frames"), 3)
#endif
-property_string (audio_codec, _("Audio codec"), "auto")
-property_int (audio_bit_rate, _("Audio bitrate"), 810000)
property_audio_fragment (audio, _("audio"), 0)
@@ -463,7 +463,7 @@ add_video_stream (GeglProperties *o, AVFormatContext * oc, int codec_id)
c->codec_id = codec_id;
c->codec_type = AVMEDIA_TYPE_VIDEO;
/* put sample propeters */
- c->bit_rate = o->video_bit_rate;
+ c->bit_rate = 810000;
/* resolution must be a multiple of two */
c->width = p->width;
c->height = p->height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]