Skip to content

Instantly share code, notes, and snippets.

View Bioblaze's full-sized avatar

Bioblaze Payne Bioblaze

View GitHub Profile
@Bioblaze
Bioblaze / ffmpeg.sh
Created June 26, 2020 05:23 — forked from chrisstubbs93/ffmpeg.sh
auto-restart FFMPEG when it stops sending frames to youtube
#!/bin/sh
sleep 5
ffmpeg -re -f mjpeg -r 10 -i "http://localhost/?action=stream" -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 1k -strict experimental -s 640x360 -vcodec h264 -pix_fmt yuv420p -g 20 -vb 500k -preset ultrafast -crf 31 -r 10 -f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx" 2> /home/pi/ffmpeg.log
@Bioblaze
Bioblaze / audio-video-manipulation.md
Created June 26, 2020 05:23 — forked from garcon/audio-video-manipulation.md
This is a collection of command line one-liners for manipulating with audio and video files
@Bioblaze
Bioblaze / gist:385c81949f4f217aed5a2c94ae6cbb61
Created June 26, 2020 05:23 — forked from alexjpaz/gist:de25c83d69e597e311602ffaa7d16f06
ffmpeg with audio with visualization on top of an image with text
#!/bin/bash
ffmpeg \
-y \
-i input.wav \
-i paz.png \
-filter_complex "\
[1:v]scale=-1:480:flags=neighbor,loop=size=2:loop=-1[fg];
[0:a]showcqt=s=1280x720:axis_h=0:sono_h=0:basefreq=27.5:endfreq=1000.0[v];
[fg]drawtext=text='Primitive Rule':fontcolor=white:fontsize=72:font=Bebas Neue:x=(w-text_w)/2:y=(h-text_h)/2[fg];
@Bioblaze
Bioblaze / images_to_video.sh
Created June 26, 2020 05:23 — forked from m4nh/images_to_video.sh
#ffmpeg #video from #images
# Create from folder
ffmpeg -framerate 1 -pattern_type glob -i '/tmp/ciao/*.png' -c:v libx264 -r 30 -pix_fmt yuv420p /tmp/out.mp4
# Repeat video until CTRL+c (is very dense! )
ffmpeg -stream_loop -1 -i /tmp/out.mp4 -c copy /tmp/out_repeat.mp4
@Bioblaze
Bioblaze / imageaudio2mp4
Created June 26, 2020 05:23 — forked from sharapeco/imageaudio2mp4
画像と音声からMP4動画を作る
#!/bin/sh
### 画像と音声からMP4動画を作る
# なんでかわからんけどこれで順番に引数が入る
image=$1
shift
audio=$*
# shift
# dai_3_no_hikisuu=$*
# example of using xargs to find files and sending files to a shell command with complicated file parsing
ls *mp4 | xargs -I{} sh -c 'base=$(basename $1 .mp4) ; ffmpeg -i "$1" -vcodec copy -an "${base}"_noaudio.mp4' -- {}
@Bioblaze
Bioblaze / stream_to_youtube.sh
Created June 26, 2020 05:23 — forked from olasd/stream_to_youtube.sh
Stream video to youtube via ffmpeg
#! /bin/bash
#
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube
@Bioblaze
Bioblaze / picam-stream.sh
Created June 26, 2020 05:22 — forked from russfeld/picam-stream.sh
Stream Raspberry Pi Camera to Twitch
#!/bin/bash
# =================================================================
# Stream configuration file for Raspberry Pi Camera
#
# @author Russell Feldhausen ([email protected])
# @version 2019-06-05
#
# This set of commands should allow you to stream video from your
# Raspberry Pi Camera to Twitch and Youtube (and possibly other
@Bioblaze
Bioblaze / BlueprintAsyncHTTP.cpp
Created April 21, 2020 16:26
Example of a Async Blueprint HTTP Call.
// Fill out your copyright notice in the Description page of Project Settings.
#include "loginUserClient.h"
#include "ClientSDK.h"
#include "ClientSDKStructs.h"
#include "ConfigCacheIni.h"
#include "Misc/MessageDialog.h"
#include "Interfaces/IHttpResponse.h"
#include "HttpModule.h"
#include "Dom/JsonObject.h"
location ^~ /.well-known/acme-challenge {
root /var/www/letsencrypt;
default_type "text/plain";
}