qtmux: make "streamable" TRUE as default

The most common use case for fragmented MP4 (Dash and Smooth Streaming)
is producing streamable content (even for VOD). streamable=FALSE would only
be used to generate fragmented MP4 with and index of MOOF's that could
be reproduced without a playlist/manifest
https://bugzilla.gnome.org/show_bug.cgi?id=707242
This commit is contained in:
Andoni Morales Alastruey 2013-09-17 12:06:06 +02:00 committed by Sebastian Dröge
parent 5732684e18
commit 9ae5082204

View file

@ -196,7 +196,7 @@ enum
#define DEFAULT_FAST_START_TEMP_FILE NULL #define DEFAULT_FAST_START_TEMP_FILE NULL
#define DEFAULT_MOOV_RECOV_FILE NULL #define DEFAULT_MOOV_RECOV_FILE NULL
#define DEFAULT_FRAGMENT_DURATION 0 #define DEFAULT_FRAGMENT_DURATION 0
#define DEFAULT_STREAMABLE FALSE #define DEFAULT_STREAMABLE TRUE
#ifndef GST_REMOVE_DEPRECATED #ifndef GST_REMOVE_DEPRECATED
#define DEFAULT_DTS_METHOD DTS_METHOD_REORDER #define DEFAULT_DTS_METHOD DTS_METHOD_REORDER
#endif #endif
@ -279,6 +279,7 @@ gst_qt_mux_class_init (GstQTMuxClass * klass)
GObjectClass *gobject_class; GObjectClass *gobject_class;
GstElementClass *gstelement_class; GstElementClass *gstelement_class;
const gchar *streamable_desc; const gchar *streamable_desc;
gboolean streamable;
#define STREAMABLE_DESC "If set to true, the output should be as if it is to "\ #define STREAMABLE_DESC "If set to true, the output should be as if it is to "\
"be streamed and hence no indexes written or duration written." "be streamed and hence no indexes written or duration written."
@ -293,9 +294,11 @@ gst_qt_mux_class_init (GstQTMuxClass * klass)
if (klass->format == GST_QT_MUX_FORMAT_ISML) { if (klass->format == GST_QT_MUX_FORMAT_ISML) {
streamable_desc = STREAMABLE_DESC; streamable_desc = STREAMABLE_DESC;
streamable = DEFAULT_STREAMABLE;
} else { } else {
streamable_desc = streamable_desc =
STREAMABLE_DESC " (DEPRECATED, only valid for fragmented MP4)"; STREAMABLE_DESC " (DEPRECATED, only valid for fragmented MP4)";
streamable = FALSE;
} }
g_object_class_install_property (gobject_class, PROP_MOVIE_TIMESCALE, g_object_class_install_property (gobject_class, PROP_MOVIE_TIMESCALE,
@ -348,7 +351,7 @@ gst_qt_mux_class_init (GstQTMuxClass * klass)
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_STREAMABLE, g_object_class_install_property (gobject_class, PROP_STREAMABLE,
g_param_spec_boolean ("streamable", "Streamable", streamable_desc, g_param_spec_boolean ("streamable", "Streamable", streamable_desc,
DEFAULT_STREAMABLE, streamable,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
gstelement_class->request_new_pad = gstelement_class->request_new_pad =