Skip to content

Instantly share code, notes, and snippets.

@seydx
seydx / gist:abf277192c9ed9fb0f4ba3e4923fcedf
Created January 22, 2022 06:46 — forked from pguillory/gist:729616
Hooking into Node.js stdout
var util = require('util')
function hook_stdout(callback) {
var old_write = process.stdout.write
process.stdout.write = (function(write) {
return function(string, encoding, fd) {
write.apply(process.stdout, arguments)
callback(string, encoding, fd)
}
@seydx
seydx / gist:5f9c2c5d7443c630a24d619891f2d0de
Created October 19, 2021 20:10 — forked from tayvano/gist:6e2d456a9897f55025e25035478a3a50
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@seydx
seydx / gist:1de76187a846f2281997de72866c3f6c
Last active January 17, 2022 22:07
install_ffmpeg_with_all_codes.sh
# On "error while loading shared libraries: libz.so.1: cannot open shared object file"
# sudo apt-get install zlib1g lib64z1
# On "E: Unable to locate package libfdk-aac-dev"
# 1. sudo nano /etc/apt/sources.list
# 2. Paste in following on a new line. Save and exit.
# deb http://www.deb-multimedia.org buster main non-free
# 3. sudo apt-get install deb-multimedia-keyring
# 4. sudo apt-get update --allow-insecure-repositories
# 5. Try again below