30 lines
941 B
HTML
30 lines
941 B
HTML
|
{% 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 <infile> {{cfg.command}} <outfile></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 %}
|