Skip to content

Instantly share code, notes, and snippets.

View RingoMar's full-sized avatar
💫
Pushing limits

Ringo RingoMar

💫
Pushing limits
View GitHub Profile
@RingoMar
RingoMar / live_pipe.bash
Created March 29, 2024 21:08
ffmpeg command to get the live audio from any m3u8 link / service to be able to and process it
ffmpeg -i "https://live.servace.m3u8" -f wav pipe:1
@RingoMar
RingoMar / main.go
Created October 23, 2022 23:59
Download webms and save it to a folder with ffmpeg
package main
import (
"crypto/rand"
"fmt"
"os"
"os/exec"
"strings"
)
import json
import os
import shutil
import time
import re
from subprocess import Popen
class strims_ffmpeg:
def __init__(self, dbname="streams.json", hostAddress="0.0.0.0") -> None:
@RingoMar
RingoMar / jsonDatabase.go
Created July 16, 2022 17:51
Using json as a database with golang // Might be a better implementation / package but I would rather something local
package database
import (
"encoding/json"
"io/ioutil"
"log"
"os"
"time"
)
@RingoMar
RingoMar / stream.sh
Last active July 6, 2022 19:05
Live stream direct to Twitch using Raspberry Pi & ffmpeg
#! /bin/bash
PRESET="ultrafast" # ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow, placebo
SOURCE="https://link.m3u8"
KEY="live_XXXXXX_XXXXXXXXXXXXXXXXXX"
ffmpeg \
-re -i "$SOURCE" -vcodec libx264 -preset $PRESET -maxrate 3000k -b:v 2500k \
-bufsize 600k -pix_fmt yuv420p -g 60 -c:a aac -b:a 160k -ac 2 \
-ar 44100 -f flv -s 1280x720 "rtmp://live-lhr.twitch.tv/app/$KEY"
@RingoMar
RingoMar / Shirt_comp.txt
Last active June 29, 2019 02:32
Super Secret Zaquelle Shirt Logo/design/text competition for meme website
- Competition Ends Wednesday
- We want to keep it secrect so only Dm RingoMär#7116 on Discord with the Logo/design/text.
- Only the Logo/design/text must be sent (Not already on the shirt)
- Check if your Logo/design/text looks good on all the shirts.
- Must have a cool simple but creative name for the shirt, nevermind that name it whatever they want but it must have a name.
Shirts can be found below:
https://i.imgur.com/9aCduaE.png
https://i.imgur.com/IRjSGGZ.png
https://i.imgur.com/uZ3Xi9O.png
https://i.imgur.com/yHhPODm.png
Memeing with you guys seriously helps when I'm in a bad mood.\n
I need to start doing more shooters.\n
I hate the bot.\n
Zoey’s not a hooker.\n
You all are the prettiest nerds of all of everything.\n
Will you get off of my ass? I know it’s great but you don’t want this!\n
It takes a lot of stamina to mount a person.\n
It’s super hot up in here, and it’s not just my good looks.\n
It gets hotter.\n
I will discipline you more, don’t make me get the whip out!\n
import sys
from caesar_encryption import encrypt
def caesar():
key = 1
is_error = False
for index, arg in enumerate(sys.argv):