Skip to content

Instantly share code, notes, and snippets.

View futzu's full-sized avatar

Adrian of Doom futzu

  • Super Kabuki
  • ATL, Georgia
  • 17:24 (UTC -05:00)
View GitHub Profile
@alfg
alfg / README.md
Last active February 16, 2024 08:34
MP4 Parser example in Go.

Minimal MP4 Parser Example

  • Download MP4: https://github.com/alfg/mp4/blob/master/test/tears-of-steel.mp4?raw=true
  • Run
go run mp4_example.go tears-of-steel.mp4

go run mp4_example_2.go tears-of-steel.mp4
@flavioribeiro
flavioribeiro / scte35-pid-on-ts-segment.py
Created January 28, 2021 15:44
SCTE-35 PID presence on HLS TS Segments
import datetime
import os
from concurrent.futures import ThreadPoolExecutor
from requests import get
import m3u8
from threefive import decode
import time
PLAYLIST = ""
@dksmiffs
dksmiffs / multicast-rcv.cpp
Last active June 23, 2022 09:20
Linux C++ UDP multicast example, guidance here: https://www.tenouk.com/Module41c.html
// Guidance: https://www.tenouk.com/Module41c.html
#include <arpa/inet.h>
#include <array>
#include <iostream>
#include <netinet/in.h>
#include "udpSock.hpp"
#include "zz_diagnose.hpp"
int main()
{
@dksmiffs
dksmiffs / udp-rcv.py
Last active December 9, 2021 02:04
Python 3 UDP example, with only very minor modifications needed to this guidance: https://wiki.python.org/moin/UdpCommunication
# Simple example that receives UDP messages using Python 3
# Guidance: https://wiki.python.org/moin/UdpCommunication
import socket
UDP_IP = '127.0.0.1'
UDP_PORT = 5005
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))