diff --git a/livestreams.py b/livestreams.py index ee76e449bae79b949482a6be0db4b50a4d781f7c..fd1a6ea58a5e825d2cbf82c262ddd7f0a8f34f23 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 abe33f4a4cb0715c68b26395301cf92a4498145e..587740c622aa05cf358d6e6420511991e1c053fd 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">