Skip to content

Instantly share code, notes, and snippets.

View sturmen's full-sized avatar

Nicholas Tinsley sturmen

  • Facebook
  • New York, NY
View GitHub Profile
### Keybase proof
I hereby claim:
* I am sturmen on github.
* I am sturmen (https://keybase.io/sturmen) on keybase.
* I have a public key ASD9flhSNpM6cHMBocIgZZeR9fpdXZHMb72sPq8u6QqD_wo
To claim this, I am signing this object:
@sturmen
sturmen / my-ublock-static-filters.txt
Last active November 28, 2018 18:48
sturmen's uBlock Origin filters
androidpolice.com###comment-policy
twitter.com##.js-wtf-module
facebook.com###homepage_panel_pagelet
##[id^="ac-lre-player-ph"]
##[class$="recvontent"]
slickdeals.net##.fpGridBox:has-text(Bank Advertiser)
@sturmen
sturmen / .inputrc
Created December 17, 2018 00:20
the two most important lines any terminal user should have in their configuration
"\e[A": history-search-backward
"\e[B": history-search-forward
@sturmen
sturmen / mp4_to_webm.sh
Created May 12, 2017 18:15
Conversion Script from MP4 to WebM in good quality
#!/bin/sh
set -ex
for i in *.mp4; do
ffmpeg -y -i "$i" -c:v libvpx-vp9 -pass 1 -b:v 2M -crf 30 -threads 8 -speed 4 \
-pix_fmt yuv420p -tile-columns 6 -frame-parallel 1 \
-an -f webm /dev/null
ffmpeg -i "$i" -c:v libvpx-vp9 -pass 2 -b:v 2M -crf 30 -threads 8 -speed 2 \
@sturmen
sturmen / config.txt
Last active January 23, 2024 15:42
Nick's youtube-dl Config File
# nick's yt-dlp config
--write-auto-sub
--embed-subs
--embed-metadata
--embed-chapters
# requires https://github.com/QuantumWarpCode/yt-dlp-dearrow
--use-postprocessor DeArrow:when=pre_process
--sponsorblock-remove sponsor,selfpromo
--prefer-free-formats
-o %(uploader)s-%(title)s[%(resolution)s].%(ext)s
@sturmen
sturmen / FFmpeg Commands.md
Last active March 16, 2024 14:41
Useful ffmpeg Commands

Useful FFmpeg Commands

Often we use ffmpeg commands that have esoteric or unmemorizable options. This is my dumping grounds for all the ones I need to remember somewhere. I am posting this publicly in the hope that it can help other people. If anyone has specific questions/suggestions/improvements for a command, please comment. If you're seeking help creating your own ffmpeg command, I recommend using ChatGPT. It may be bad at math, but it's actually really good at coming up with CLI usages, and even writing quick scripts for their use.

Video

Lossless Transcoding For Archive (plus lossy for viewing) [REQURIES NVIDIA GPU]

Encode a video losslessly for archiving and as a deinterlaced H.264+AAC file for viewing. This was designed for taking the uncompressed (!) Quicktime MOV output of Blackmagic Media Express and shrinking it to something more manageable for archiving as well as viewing. Note the "seek