Skip to content

Instantly share code, notes, and snippets.

View nickferrando's full-sized avatar
💭
I may be slow to respond.

Nick Ferrando nickferrando

💭
I may be slow to respond.
View GitHub Profile
@nickferrando
nickferrando / single-rendition-hls.sh
Created August 25, 2023 10:43
BASH Script for HLS Single Rendition
#!/bin/bash
#This script will process each file in a given input directory
#and will create a corresponding output folder for each processed file.
# Input and output directories
input_dir="YOUR_INPUT_DIRECTORY"
output_dir="output_folder"
# Create the output directory if it doesn't exist
@nickferrando
nickferrando / smpte_hd_bars.sh
Created March 2, 2021 18:22
Generate SMPTE Color Bars/1kHz Test Tone with FFMPEG
#Display Custom Message on STMPE Bars and Server's Local Time
ffmpeg -re -f lavfi -i "smptehdbars=rate=30:size=1920x1080" \
-f lavfi -i "sine=frequency=1000:sample_rate=48000" \
-vf drawtext="text='YOUR MESSAGE %{localtime\:%X}':rate=30:x=(w-tw)/2:y=(h-lh)/2:fontsize=48:fontcolor=white:box=1:boxcolor=black" \
-f flv -c:v h264 -profile:v baseline -pix_fmt yuv420p -preset ultrafast -tune zerolatency -crf 28 -g 60 -c:a aac \
"rtmp://your_server_address/stream_key"
#Display Custom Message on STMPE Bars and Time (HH:MM:MS)
@nickferrando
nickferrando / imagemagick-ubuntu.txt
Last active April 25, 2024 04:05
Install ImageMagick with JPG, PNG and TIFF Delegates - Ubuntu (20.04)
#These are the steps required in order to Install ImageMagick with JPG, PNG and TIFF delegates.
sudo apt-get update
#Install Build-Essential in order to configure and make the final Install
sudo apt-get install build-essential
#libjpg62-dev required in order to work with basic JPG files