# Set it to 'false' if you want to disable AAC_ISO_320 transcoding support.
enable-aac-transcoder=true
+# Set it to 'false' if you want to disable AVC_MP4 transcoding support.
+enable-avc-transcoder=true
+
# Where video files should be saved if allow-upload is true.
# Defaults to @VIDEOS@, the standard videos folder (typically ${HOME}/Videos).
video-upload-folder=@VIDEOS@
</varlistentry>
<varlistentry>
<term>
+ <option>enable-avc-transcoder</option>
+ </term>
+ <listitem>
+ <para>
+ Set to <userinput>true</userinput> to enable transcoding to AVC.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
<option>log-level=<replaceable>DOMAIN</replaceable>:<replaceable>LEVEL</replaceable>[,<replaceable>DOMAIN</replaceable>:<replaceable>LEVEL</replaceable>,…]</option>
</term>
<listitem>
</varlistentry>
<varlistentry>
<term>
+ <option>-z</option>
+ </term>
+ <term>
+ <option>--disable-avc-transcoder</option>
+ </term>
+ <listitem>
+ <para>Disable transcoding to AVC.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
<option>-U</option>
</term>
<term>
</varlistentry>
<varlistentry>
<term>
+ <envar>RYGEL_DISABLE_AVC_TRANS</envar>
+ </term>
+ <listitem>
+ <para>Disable transcoding to AVC format.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
<envar>RYGEL_LOG</envar>
</term>
<listitem>
private static bool no_lpcm_trans;
private static bool no_wmv_trans;
private static bool no_aac_trans;
+ private static bool no_avc_trans;
private static bool disallow_upload;
private static bool disallow_deletion;
"Disable WMV transcoder", null },
{ "disable-aac-transcoder", 'a', 0, OptionArg.NONE, ref no_aac_trans,
"Disable AAC_ISO_320 transcoder", null },
+ { "disable-avc-transcoder", 'z', 0, OptionArg.NONE, ref no_avc_trans,
+ "Disable AVC_MP4 transcoder", null },
{ "disallow-upload", 'U', 0, OptionArg.NONE,
ref disallow_upload, "Disallow upload", null },
{ "disallow-deletion", 'D', 0, OptionArg.NONE,
}
}
+ public bool get_avc_transcoder () throws GLib.Error {
+ if (!no_avc_trans) {
+ throw new ConfigurationError.NO_VALUE_SET (_("No value available"));
+ } else {
+ return false;
+ }
+ }
+
public bool get_allow_upload () throws GLib.Error {
if (!disallow_upload) {
throw new ConfigurationError.NO_VALUE_SET (_("No value available"));
public abstract bool get_aac_transcoder () throws GLib.Error;
+ public abstract bool get_avc_transcoder () throws GLib.Error;
+
public abstract bool get_allow_upload () throws GLib.Error;
public abstract bool get_allow_deletion () throws GLib.Error;
"_MP2TS_TRANS";
private static string WMV_TRANSCODING_ENV = DISABLE_PREFIX + "_WMV_TRANS";
private static string AAC_TRANSCODING_ENV = DISABLE_PREFIX + "_AAC_TRANS";
+ private static string AVC_TRANSCODING_ENV = DISABLE_PREFIX + "_AVC_TRANS";
private static string DISALLOW_UPLOAD_ENV = DISABLE_PREFIX + "_UPLOAD";
private static string DISALLOW_DELETION_ENV = DISABLE_PREFIX + "_DELETION";
private static string LOG_LEVELS_ENV = RYGEL_PREFIX + "_LOG";
return !this.get_bool_variable (AAC_TRANSCODING_ENV);
}
+ public bool get_avc_transcoder () throws GLib.Error {
+ return !this.get_bool_variable (AVC_TRANSCODING_ENV);
+ }
+
public bool get_lpcm_transcoder () throws GLib.Error {
return !this.get_bool_variable (LPCM_TRANSCODING_ENV);
}
return val;
}
+ public bool get_avc_transcoder () throws GLib.Error {
+ bool val = true;
+ bool unavailable = true;
+
+ foreach (var config in this.configs) {
+ try {
+ val = config.get_avc_transcoder ();
+ unavailable = false;
+ break;
+ } catch (GLib.Error err) {}
+ }
+
+ if (unavailable) {
+ throw new ConfigurationError.NO_VALUE_SET (_("No value available"));
+ }
+
+ return val;
+ }
+
public bool get_allow_upload () throws GLib.Error {
bool val = true;
bool unavailable = true;
mp2ts_transcoder = config.get_mp2ts_transcoder ();
wmv_transcoder = config.get_wmv_transcoder ();
aac_transcoder = config.get_aac_transcoder ();
+ avc_transcoder = config.get_avc_transcoder ();
}
} catch (Error err) {}
public static const string LPCM_TRANSCODER_KEY = "enable-lpcm-transcoder";
public static const string WMV_TRANSCODER_KEY = "enable-wmv-transcoder";
public static const string AAC_TRANSCODER_KEY = "enable-aac-transcoder";
+ public static const string AVC_TRANSCODER_KEY = "enable-avc-transcoder";
public static const string ALLOW_UPLOAD_KEY = "allow-upload";
public static const string ALLOW_DELETION_KEY = "allow-deletion";
public static const string LOG_LEVELS_KEY = "log-level";
return this.get_bool ("general", AAC_TRANSCODER_KEY);
}
+ public bool get_avc_transcoder () throws GLib.Error {
+ return this.get_bool ("general", AVC_TRANSCODER_KEY);
+ }
+
public bool get_allow_upload () throws GLib.Error {
return this.get_bool ("general", ALLOW_UPLOAD_KEY);
}