Skip to content

Instantly share code, notes, and snippets.

@whizkydee
whizkydee / ffmpeg.md
Created July 17, 2018 12:17 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@whizkydee
whizkydee / openvideo.js
Last active October 10, 2018 23:37
openvideo.js - Lone Instagram video extractor.
// openvideo.js - Lone Instagram video extractor.
const openVideo = (() => {
location.hostname === 'www.instagram.com'
&& location.pathname.includes('/p/') ? (
Promise.resolve(document.querySelector('._7thjo').click())
.then(() =>
window.location = document.querySelector('video').src
).catch(() => window.alert('We need a refactor, maybe ;)'))
) : window.alert('Oops. You\'re prolly not on the right page.')
})()
@whizkydee
whizkydee / styles.less
Last active January 13, 2021 21:58
Atom Material Palenight Syntax Operator Mono Tweak
atom-text-editor {
-webkit-font-feature-settings: "liga" off, "calt" off; /* very mandatory */
text-rendering: optimizeLegibility; /* cool */
font-weight: normal; /* for specificity */
line-height: 1.7; /* feel free to adjust */
}
.syntax--doctype, .syntax--entity.syntax--other.syntax--attribute-name, .syntax--source.syntax--js.syntax--jsx > .syntax--keyword.syntax--control.syntax--flow.syntax--js,
.syntax--punctuation.syntax--section.syntax--embedded, .syntax--keyword:not(.syntax--logical):not(.syntax--arithmetic):not(.syntax--bitwise):not(.syntax--increment):not(.syntax--ternary):not(.syntax--comparison),
.syntax--meta.syntax--structure.syntax--dictionary.syntax--key.syntax--json,
.syntax--entity.syntax--name.syntax--tag.syntax--yaml,