Skip to content

Instantly share code, notes, and snippets.

View sbuckle's full-sized avatar
💭
Available for hire

Simon Buckle sbuckle

💭
Available for hire
View GitHub Profile
package main
import (
"fmt"
"sync"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
@sbuckle
sbuckle / index.html
Created September 16, 2020 13:10
Sample VideoJS template
<!DOCTYPE html>
<html>
<head>
<link href="https://vjs.zencdn.net/7.8.4/video-js.css" rel="stylesheet" />
</head>
<body>
<video
id="my-video"
class="video-js"
controls
@sbuckle
sbuckle / nginx.conf
Last active March 2, 2025 15:05
Nginx RTMP module configuration
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /run/nginx.pid;
load_module modules/ngx_rtmp_module.so;
events {
worker_connections 1024;
}
@sbuckle
sbuckle / README
Created June 24, 2020 08:59
FFmpeg HLS example
Download Sintel trailer: https://download.blender.org/durian/trailer/
Run the following command:
$ ffmpeg -y -i sintel_trailer-1080p.mp4 -c:v libx264 -b:v 1100k -g 48 -keyint_min 48 \
-c:a copy -f hls -hls_time 6 -hls_playlist_type vod prog_index.m3u8
$ python3 -m htttp.server
Open 'http://localhost:8000/' in a browser.