Skip to content

Instantly share code, notes, and snippets.

@nateify
nateify / FEL2P8.sh
Created May 2, 2023 02:05
Simplified method of remuxing MKV with Dolby Vision P7 FEL to P8.1 with EL discarded
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 input_file" >&2
exit 1
fi
input_file="$1"
input_dir=$(dirname "$input_file")
input_base=$(basename "${input_file%.*}")
@nateify
nateify / table_to_csv.py
Last active January 2, 2021 00:45
Convert text-based tables to CSV - specifically for tables generated by https://www.tablesgenerator.com/text_tables/ - does not support multiline or vertically merged cells
import csv
import re
import os
import sys
def table_to_csv(args):
if len(args) < 3:
outpath = os.path.join(
os.path.dirname(os.path.abspath(args[1])),