Skip to content

Instantly share code, notes, and snippets.

View bleggett's full-sized avatar
💭
bleppin'

Ben Leggett bleggett

💭
bleppin'
View GitHub Profile
@bleggett
bleggett / dsd2flac.py
Last active April 23, 2022 23:03 — forked from hyperknot/dsd2flac.py
DSD to FLAC conversion using SoX DSD. Original by @hyperknot. Scans the file once to determine optimum gain, then converts using that. You can get SoX DSD binaries from https://audiodigitale.eu/repo/sox/
#!/usr/bin/env python3
import pathlib
import subprocess
import sys
import shutil
import math
root = pathlib.Path(__file__).parent.resolve()
target_root = root / 'dsd'
@bleggett
bleggett / subtitle-overlap-fixer.go
Created April 8, 2019 01:05 — forked from nimatrueway/subtitle-overlap-fixer.go
Little tool to fix overlapping subtitles (especially the ones extracted from english auto-subtitles of youtube, vtt files that you would convert to srt with ffmpeg)
package main
import (
"time"
"regexp"
"bufio"
"strconv"
"fmt"
"os"
"errors"