From 93cd121b9b0f15cfe47ea222d79ce1c83456778a Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Tue, 31 Jul 2018 02:04:41 +0200 Subject: [PATCH] Added deinterlace option for livestreams --- livestreams.py | 2 ++ templates/course.html | 1 + 2 files changed, 3 insertions(+) diff --git a/livestreams.py b/livestreams.py index ee76e44..fd1a6ea 100644 --- a/livestreams.py +++ b/livestreams.py @@ -177,6 +177,8 @@ def schedule_livestream(lecture_id): if not obj['clientid']: flash('Quelle „%s“ ist nicht aktiv!'%obj['name']) return None + if settings.get('source%i_deinterlace'%idx): + data['src%i'%idx]['vfilter'].append('yadif') mode = settings.get('source%i_audiomode'%idx) leftvol = float(settings.get('source%i_leftvolume'%idx, 100))/100.0 rightvol = float(settings.get('source%i_rightvolume'%idx, 100))/100.0 diff --git a/templates/course.html b/templates/course.html index abe33f4..587740c 100644 --- a/templates/course.html +++ b/templates/course.html @@ -161,6 +161,7 @@ {% endfor %} </select> <img src="{{ url_for('static', filename='smptebars.jpg') }}" style="width: 100%; margin-bottom: 0.5em; margin-top: 0.5em"/> + <div class="checkbox"><label><input name="source{{num }}_deinterlace" type="checkbox">Video deinterlacen</label></div> <label>Lautstärke</label> <div class="row"> <div class="col-xs-6"> -- GitLab