This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# spec - Copyright (c) 2024 Matthias C. Hormann | |
# 2024-03-26 | |
# Show spectrogram for an audio file, using ffmpeg's showspectrumpic | |
# Add this to the "Open with…" context menu of your file manager! | |
# define me | |
me=`basename "$0"` | |
version="0.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sse_hpnp.js | |
// | |
// | |
// 2023-12-01 Moonbase59 | |
// 2023-12-02 Moonbase59 - retry forever on errors, workaround for Chrome bug | |
// - add player autostart | |
// - add album art alt text, link title | |
// 2023-12-04 Moonbase59 - add localStorage cache for better UX | |
// 2023-12-05 Moonbase59 - code cleanup, add translatable strings | |
// - use event listener instead of .onreadystatechange |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Server-sent events demo (Centrifugo)</title> | |
<!-- style the indicators: -isonline, -islive, isrequest, progress bar --> | |
<style> | |
.label { border-radius: 0.1rem; padding: .1rem .2rem; background: #f0f1f4; color: #5b657a; display: inline-block; } | |
.label.label-success { background: #32b643; color: #fff; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Use sudo plz | |
# CONFIGURATION, EDIT PLEASE | |
ALLOWED_DOMAINS=https://localhost:5000 | |
CORS_DOMAIN=cors.example.com | |
# Install dependencies | |
apt install npm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i rtsp://${SOURCE} -vcodec copy -f flv\ | |
-acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k\ | |
rtmp://a.rtmp.youtube.com/live2/${KEY} |