Skip to content

Instantly share code, notes, and snippets.

View jeffdupont's full-sized avatar

Jeff Dupont jeffdupont

View GitHub Profile
@jeffdupont
jeffdupont / ffmpeg.md
Created July 5, 2025 20:17 — forked from protrolium/ffmpeg.md
ffmpeg guide

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

You can get the list of installed codecs with:

@jeffdupont
jeffdupont / websocket_binary_data_go.md
Created May 2, 2024 21:36
Example of WebSocket binary data in Go

The server

package main

import (
	"bytes"
	"encoding/binary"
	"flag"
	"fmt"
// html
<div>This is my post</div>
<!-- Just put this div at the bottom of your template somewhere-->
<!-- Notice that its hidden by default, so if it doesnt get used, thats fine-->
<div class="modal hide"></div>
//JS
$.ajax({
type: 'post', // or post?