Skip to content

Instantly share code, notes, and snippets.

View bjrne's full-sized avatar

Bjarne Sievers bjrne

  • jellyfish coding
View GitHub Profile
@bjrne
bjrne / ffmpeg_audio_filter.py
Last active June 22, 2020 11:24
A simple script for removing high-pitched hissing sounds from bad quality lecture recordings. Add this script to a folder of videos and start it from there. You can play around with the values for lowpass and highpass for best results.
import os
for filename in os.listdir():
if ".py" not in filename:
print("start with:")
print("ffmpeg -i " + filename + " -af lowpass=1000,highpass=200 " + filename + "out.mp4")
os.system("ffmpeg -i " + filename + " -af lowpass=1000,highpass=200 " + filename + "out.mp4")
@bjrne
bjrne / download_opencast_uni_halle.md
Created April 29, 2020 11:31
Javascript Bookmarklet for downloading lecture videos without hassle from the uni halle opencast server

Opencast Videos herunterladen

Diese Anleitung funktioniert für alle opencast-Installationen, die so konfiguriert sind, wie die Instanz der MLU Halle. Falls deine Universität einen anderen Player einsetzt, schau doch mal hier vorbei.

Setup

  1. Erstelle ein neues Lesezeichen von einer beliebigen Website. Welche genau ist egal, der Link wird später sowieso getauscht. Wichtig ist nur, dass du später komfortabel an das Lesezeichen rankommst, also leg es zum Beispiel in die Lesezeichenleiste. Shortcut: Strg + D. Als Namen kannst du z.B. "VL runterladen" ö.ä wählen.
  2. Bearbeite das Lesezeichen. Wie genau, hängt von deinem Browser ab. In Firefox machst du einen Rechtsklick auf das Lesezeichen, dann Eigenschaften oder Properties. In Chrome wählst du Bearbeiten oder Edit. Füge nun den Code statt der Adresse ein, je nach Browser unter Adresse, URL oder Location. Der Code ist die folgende Zeile:

`javascript:(