Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
| # Source http://slanter-ahk.blogspot.de/2009/02/ahk-new-auto-clicker.html | |
| # This is a new 5-line autoclicker made possible with the release of AHK 1.0.48. Use Insert to toggle it on and off. | |
| LButton:: | |
| While GetKeyState("LButton","P") | |
| Send {LButton} | |
| Return | |
| Insert::Hotkey, LButton, Toggle |
A Pen by Bennett Feely on CodePen.
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Threading; | |
| using System.Drawing; | |
| using System.IO; | |
| using Newtonsoft.Json; |
| /* | |
| ffmpeg -i "$file" -f s32be -acodec pcm_s32be -ar 44100 -af "volume=0.5" tcp://espip:5522 | |
| */ | |
| #include "i2s.h" | |
| #include <ESP8266WiFi.h> | |
| const char* ssid = "***********"; | |
| const char* password = "**********"; | |
| WiFiServer pcmServer(5522); | |
| static WiFiClient pcmClient; |
| /** | |
| * GradientArray • Steps gradient. | |
| * @author Siamak Mokhtari <[email protected]> | |
| * @date 06/21/16. | |
| */ | |
| class GradientArray { | |
| // Convert a hex color to an RGB array e.g. [r,g,b] | |
| // Accepts the following formats: FFF, FFFFFF, #FFF, #FFFFFF | |
| hexToRgb(hex) { | |
| let r, g, b, parts; |
| // Filename: HttpServer.cs | |
| // Author: Benjamin N. Summerton <define-private-public> | |
| // License: Unlicense (http://unlicense.org/) | |
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using System.Net; | |
| using System.Threading.Tasks; |
| /* | |
| * tiny_IRremote | |
| * Version 0.2 July, 2016 | |
| * Christian D'Abrera | |
| * Fixed what was originally rather broken code from http://www.gammon.com.au/Arduino/ | |
| * ...itself based on work by Ken Shirriff. | |
| * | |
| * This code was tested for both sending and receiving IR on an ATtiny85 DIP-8 chip. | |
| * IMPORTANT: IRsend only works from PB4 ("pin 4" according to Arduino). You will need to | |
| * determine which physical pin this corresponds to for your chip, and connect your transmitter |
Update on Nov 30, 2025: This Gist is nearly eight years old! These instructions worked back in 2018 for the Pi 3, but recent comments suggest that they may not be sufficient on more recent Pi models and newer versions of Raspberry Pi OS. Be advised.
On my RetroPie machine I wanted a hardware volume knob — the games I play use a handful of emulators, and there's no unified software interface for controlling the volume. The speakers I got for my cabinet are great, but don't have their own hardware volume knob. So with a bunch of googling and trial and error, I figured out what I need to pull this off: a rotary encoder and a daemon that listens for the signals it sends.