Skip to content

Instantly share code, notes, and snippets.

View iameli's full-sized avatar
💭
Beep boop

Eli Mallon iameli

💭
Beep boop
View GitHub Profile
@iameli
iameli / streamplace.json
Created May 22, 2025 20:51
Graze custom feed for Streamplace
{
"order": "new",
"manifest": {
"filter": {
"and": [
{
"or": [
{
"regex_matches": [
"text",
#!/bin/bash
set -euo pipefail
curl 'https://stream.place/api/playback/iame.li/webrtc?rendition=source' \
-H 'content-type: application/sdp' \
--data-binary @sdp.txt
This file has been truncated, but you can view the full file.
# github.com/livepeer/lpms/ffmpeg
decoder.c:286:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
# stream.place/streamplace/pkg/media.test
ld: warning: duplicate -rpath '/Users/iameli/code/streamplace/build-darwin-arm64/lib' ignored
ld: warning: duplicate -rpath '/Users/iameli/code/streamplace/build-darwin-arm64/lib' ignored
ld: warning: duplicate -rpath '/Users/iameli/code/streamplace/build-darwin-arm64/lib' ignored
ld: warning: ignoring duplicate libraries: '-lavfilter', '-lavformat', '-lc2pa', '-lgio-2.0', '-lglib-2.0', '-lgobject-2.0', '-lgstapp-1.0', '-lgstbase-1.0', '-lgstcontroller-1.0', '-lgstreamer-1.0', '-lintl', '-lm'
ld: warning: search path '/Users/iameli/code/go/pkg/mod/git.stream.place/streamplace/[email protected]/target/release' not found
? stream.place/streamplace/pkg/media/mediatesting [no test files]
@iameli
iameli / gist:9190f1b383da3d0649e7d95649d9588b
Last active March 13, 2025 00:06
gstreamer allocations
[17:06:03] Top 10 stacks with outstanding allocations:
8388608 bytes in 2 allocations from stack
0x000056370b994190 x_cgo_mmap+0x10 [streamplace]
0x000056370a64703f runtime.mmap.func1+0x3f [streamplace]
0x000056370a646f7a runtime.mmap+0x5a [streamplace]
0x000056370a657ad3 runtime.sysMapOS+0x33 [streamplace]
0x000056370a657554 runtime.sysMap+0x34 [streamplace]
0x000056370a66ad96 runtime.(*mheap).grow+0x236 [streamplace]
0x000056370a66a410 runtime.(*mheap).allocSpan+0x1b0 [streamplace]
0x000056370a669ebc runtime.(*mheap).alloc.func1+0x5c [streamplace]
@iameli
iameli / ai.diff
Created February 12, 2025 14:47
Prompt: Could you refactor this so that all of the protocols are in a separate structure that's iterated over to create the <ListItems> and stuff?
diff --git a/js/app/components/player/controls.tsx b/js/app/components/player/controls.tsx
index d89aea0..24aae03 100644
--- a/js/app/components/player/controls.tsx
+++ b/js/app/components/player/controls.tsx
@@ -267,6 +267,34 @@ function LiveBubbleText() {
function GearMenu(props: PlayerProps) {
const [menu, setMenu] = useState("root");
+
+ const protocols = [
default 14:06:03.526606-0800 filecoordinationd Received state update for 15687 (anon<input-leapc>(501), running-NotVisible
default 14:06:03.533046-0800 filecoordinationd Received state update for 15687 (anon<input-leapc>(501), running-NotVisible
default 14:06:03.541233-0800 filecoordinationd Received state update for 15687 (anon<input-leapc>(501), running-NotVisible
default 14:06:03.543589-0800 filecoordinationd Received state update for 15687 (anon<input-leapc>(501), running-NotVisible
default 14:06:03.655890-0800 filecoordinationd Received state update for 15687 (anon<input-leapc>(501), running-NotVisible
default 14:06:03.660042-0800 filecoordinationd Received state update for 15687 (anon<input-leapc>(501), running-NotVisible
default 14:09:30.030750-0800 runningboardd Acquiring assertion targeting [app<application.input-leap.21787575.21787646(501)>:5840] from originator [app<application.input-leap.21787575.21787646(501)>:5840] with description <RBSAssertionDescriptor| "AppNap adapter assertion" ID:391-5840-
@iameli
iameli / gstreamer-rs-windows-build-fail.log
Created December 6, 2024 00:11
gstreamer-rs-windows-build-fail.log
This file has been truncated, but you can view the full file.
[0/42] env PKG_CONFIG_ALL_STATIC=1 SYSTEM_DEPS_LINK=static PKG_CONFIG=/usr/bin/x86_64-w64-mingw32-pkg-config 'PKG_CONFIG_PATH=/home/iameli/code/aquareum/build-windows-amd64/meson-uninstalled;/home/iameli/code/aquareum/build-windows-amd64/subprojects/gst-plugins-rs/meson-uninstalled' 'RUSTC=rustc --target x86_64-pc-windows-gnu -C linker=x86_64-w64-mingw32-gcc' /usr/bin/python3 /home/iameli/code/aquareum/subprojects/gst-plugins-rs/cargo_wrapper.py build /home/iameli/code/aquareum/build-windows-amd64/subprojects/gst-plugins-rs /home/iameli/code/aquareum/subprojects/gst-plugins-rs /home/iameli/code/aquareum/build-windows-amd64 debug /usr/local lib --packages gst-plugin-rtp gst-plugin-webrtc --depfile subprojects/gst-plugins-rs/gst-plugins-rs.dep --lib-suffixes lib --features gst-video/v1_22 gst-webrtc/v1_22 gst-rtp/v1_22 gst-sdp/v1_22 gst-app/v1_22 gst/v1_22 --disable-doc
Skipping git submodule `https://github.com/gtk-rs/gir` due to update strategy in .gitmodules
#include "../src/input/input_hls.h"
#include "../src/input/input_dtsc.h"
#include "../src/input/input_mp3.h"
#include "../src/input/input_flv.h"
#include "../src/input/input_ogg.h"
#include "../src/input/input_buffer.h"
#include "../src/input/input_h264.h"
#include "../src/input/input_ebml.h"
#include "../src/input/input_ismv.h"
#include "../src/input/input_mp4.h"
[1/4] Compiling C++ object MistInFLAC.p/src_input_input_flac.cpp.o
FAILED: MistInFLAC.p/src_input_input_flac.cpp.o
c++ -IMistInFLAC.p -I. -I.. -I../subprojects/mbedtls/include -Isubprojects/libsrtp/include -I../subprojects/libsrtp/include -Imist -fdiagnostics-color=always -Wall -Winvalid-pch -std=c++98 -O0 -g -funsigned-char -D_LARGEFILE_SOURCE -Wno-sign-compare -Wparentheses -Wno-non-virtual-dtor -Wno-strict-aliasing '-DAPPNAME="MistServer"' -DDEBUG=4 '-DRELEASE="Generic_aarch64"' '-DPACKAGE_VERSION="3.3-7-gdbafa808b"' -DSHM_DATASIZE=40 -DSTAT_CUTOFF=600 -DSTATS_DELAY=15 '-DUDP_API_HOST="localhost"' -DUDP_API_PORT=4242 -DSSL=1 -DUPDATER=1 -DHAVE_UPSTREAM_MBEDTLS_SRTP=0 -DWITH_DATACHANNELS '-DINPUTTYPE="input_flac.h"' -MD -MQ MistInFLAC.p/src_input_input_flac.cpp.o -MF MistInFLAC.p/src_input_input_flac.cpp.o.d -o MistInFLAC.p/src_input_input_flac.cpp.o -c ../src/input/input_flac.cpp
../src/input/input_flac.cpp:199:38: error: use of overloaded operator '=' is ambiguous (with operand types 'Value' and 'size_t'
apiVersion: apps/v1
kind: Deployment
metadata:
name: catalyst
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels: