Skip to content

Instantly share code, notes, and snippets.

@macpit
macpit / index.html
Created July 13, 2023 09:40
HLS web-audio-peak-meter Test
<!doctype html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.video-responsive video {
position: relative;
top: 0;
left: 0;
@macpit
macpit / GStreamer-1.0 some strings.sh
Created June 4, 2019 12:24 — forked from strezh/GStreamer-1.0 some strings.sh
GStreamer-1.0 personal cheat sheet
#!/bin/bash
# play YUV444 FULL HD file
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \
videoparse width=1920 height=1080 framerate=25/1 format=GST_VIDEO_FORMAT_Y444 ! \
videoconvert ! \
autovideosink
# play YUV422 FULL HD file
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \
@macpit
macpit / youtube-test.sh
Created May 30, 2019 14:11 — forked from joeladdison/youtube-test.sh
Test stream for YouTube Live
#!/bin/sh
YT_SERVER="rtmp://a.rtmp.youtube.com/live2"
# Needs AUTH, which is the "Stream Name" from Ingestion Settings > Main Camera
# apt-get install --assume-yes gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools
# https://bugzilla.gnome.org/show_bug.cgi?id=731352#c6
@macpit
macpit / install-ffmpeg-with-decklink-support-ubuntu-18.04-server.md
Last active November 11, 2022 00:39 — forked from afriza/install-ffmpeg-with-decklink-support-ubuntu-18.04-server.md
Compiling and installing `ffmpeg` with Decklink support on Ubuntu 18.04 Server
# Configuration for Alacritty, the GPU enhanced terminal emulator.
#
# Windows Path: C:\Users\Marc\AppData\Roaming\alacritty\alacritty.yaml
#
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
@macpit
macpit / read_mitmproxy_dumpfile.py
Created May 2, 2019 13:23 — forked from nderkach/read_mitmproxy_dumpfile.py
Read a mitmproxy dump file and generate a curl command
#!/usr/bin/env python
#
# Simple script showing how to read a mitmproxy dump file
#
### UPD: this feature is now avaiable in mitmproxy: https://github.com/mitmproxy/mitmproxy/pull/619
from libmproxy import flow
import json, sys