MediaDash/templates/transcode/profiles.html

30 lines
941 B
HTML
Raw Normal View History

2021-08-29 13:03:28 +00:00
{% extends "base.html" %}
{% from 'utils.html' import make_tabs %}
{% from 'bootstrap/form.html' import render_form, render_field, render_form_row %}
{% macro profile_list() %}
{% for name, cfg in config.APP_CONFIG.transcode_profiles.items() %}
<h3>{{name}}</h3>
<h5>{{cfg.doc}}</h5>
<pre>ffmpeg -i &lt;infile&gt; {{cfg.command}} &lt;outfile&gt;</pre>
{% if cfg.vars %}
{% for var,doc in cfg.vars.items() %}
<p>
<pre class="inline">{{var}}</pre>
({{doc}}{% if cfg.defaults[var] %}, Default: <pre class="inline">{{cfg.defaults[var]}}</pre>{% endif %})</p>
{% endfor %}
{% endif %}
<hr>
{% endfor %}
{% endmacro %}
{% block app_content %}
<div class="row">
<div class="col">
<h1>Transcode profiles</h1>
{{profile_list()}}
</div>
</div>
{% endblock %}