Skip to content

Instantly share code, notes, and snippets.

@themaxdavitt
themaxdavitt / gist:05f62a59e6e0426f26f8b02d73ae0e32
Created October 31, 2024 20:05
FFmpeg command to play silent audio to fix Bluetooth headphones cutting off sounds (e.g. in Anki)
ffplay -nodisp -f lavfi -i anullsrc=r=44100:cl=stereo
// Max Davitt - https://max.davitt.me
// Released under CC0 1.0 Universal
// https://creativecommons.org/publicdomain/zero/1.0/
const { createHash } = require('crypto');
const readFile = require('util').promisify(require('fs').readFile);
(async () => {
if (process.argv.length < 3) {
BEGIN MESSAGE.
SUMz4blU4oNWqqI d6QyVlEhjP97tMe 0UUKnRWLl3NCH2T MvpZTlHvDApMZW7
CJShiS3wMtlZBQv PGhShG95g0yTCKq 6Xr2MZHgg6tGcSB vH1ur5iLbcMuIBK
oWrYsFwy9CcD4Fk 1xXXzWTNiDrAH2Y fUDNi13iZcIhFCf pDAiZmaNlVi8kMK
xE4EuQgiiAO2xR0 914L64ttnPmQDZU OXcWN2BwlTVlNtt .
END MESSAGE.

Keybase proof

I hereby claim:

  • I am themaxdavitt on github.
  • I am themaxdavitt (https://keybase.io/themaxdavitt) on keybase.
  • I have a public key ASBwtK-rHJOfAaWd8yYjibeLsPQw3ttHrEhOSPlo27vyIAo

To claim this, I am signing this object: