Skip to content

Instantly share code, notes, and snippets.

@m1tk4
m1tk4 / bars_w_text.bat
Created March 4, 2020 17:59
SMPTE HD Bars + Overlay Text as TS Loop suitable for Mux
@echo off
:: Set duration in seconds
set duration=20
:: Temporary loop TS file to create
set loopfile=svc%1.ts
set "overlaytext=ABC-%2 / LTN"
:: Create the loop file
ffmpeg.exe ^
@m1tk4
m1tk4 / hevc-test-pattern.bat
Last active July 30, 2022 19:11
HEVC Test Pattern to UDP Multicast
@echo off
:: Set duration in seconds
set duration=10
:: Temporary loop TS file to create
set loopfile=loop.mkv
:: Target mpegts URL (ESCAPE &s with ^!!! and add double quotes)
:: see https://www.ffmpeg.org/ffmpeg-protocols.html#udp for full syntax
set "target=udp://239.0.0.1:1234?ttl=13^&pkt_size=1316"
FFMPEG Streaming
# Basic Stream Command
.\ffmpeg.exe -stream_loop -1 -re -i '..\..\Darude - Sandstorm.mp4' -tune zerolatency -vcodec copy udp://224.1.1.1:30000
.\ffmpeg.exe -stream_loop -1 -re -i '..\..\Darude - Sandstorm.mp4' -tune zerolatency -filter_complex:v "split=3[out1][out2]" \
-map "[out1]" -filter-f mpegts udp://224.1.1.1:30000
# Play command
@abrar71
abrar71 / install1.sh
Last active November 23, 2019 15:37
Compile FFmpeg
#!/bin/bash
clear
( exec &> >(while read -r line; do echo "$(date +"[%Y-%m-%d %H:%M:%S]") $line"; done;) #Date to Every Line
tput bold ; echo "adam | 2014 < 2019-10-10" ; tput sgr0
tput bold ; echo "Auto ! Download && Build Last Static FFmpeg" ; tput sgr0
tput bold ; echo "OS X | 10.12 < 10.14" ; tput sgr0
# Check Xcode Install
tput bold ; echo ; echo '♻️ ' Check Xcode Install ; tput sgr0
@hz37
hz37 / ffmpeg.txt
Last active January 20, 2024 17:49
ffmpeg examples Hens Zimmerman
# MacOS shell script om alle wav bestanden in een dir te checken op EBU loudness in LUFS. Don't forget to chmod +x
#!/bin/bash
for f in *.wav
do
echo "$f"
ffmpeg -i "$f" -af ebur128=framelog=verbose -f null - 2>&1 | awk '/I:/{print $2}'
done
@Brainiarc7
Brainiarc7 / ubuntu_setup.md
Created June 23, 2019 04:13 — forked from AnmolTomer/ubuntu_setup.md
Ubuntu Setup
  1. Installing NVIDIA Drivers ❗❗
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
  1. From last command see nvidia-driver-number and use it in the command below and then reboot 📺 ✔️
@Eincrou
Eincrou / FfmpegMux.vbs
Last active December 3, 2021 13:35
Directory Opus script for muxing video files.
Option Explicit
' ------ FFMPEG Path ------
Const FFMPEGPATH = """H:\Encode\ffmpeg.exe"""
' -------------------------
Dim videoFile, audioFile, containerFormat, includeOrigAudio
' Set up supported file extensions arrays
Dim AUDIOFILETYPES : AUDIOFILETYPES = Array(".aac", ".m4a", ".mp3", ".wma")
Dim VIDEOFILETYPES : VIDEOFILETYPES = Array(".avi",".264", ".h264",".265", ".hevc", ".mp4", ".mkv", ".m4v", ".flv")
version 4.1:
--- b/configure
+++ a/configure
@@ -298,6 +298,7 @@
--enable-lv2 enable LV2 audio filtering [no]
--disable-lzma disable lzma [autodetect]
--enable-decklink enable Blackmagic DeckLink I/O support [no]
+ --enable-libndi_newtek enable Newteck NDI I/O support [no]
--enable-mbedtls enable mbedTLS, needed for https support
@jordicenzano
jordicenzano / start-webserver.sh
Last active August 31, 2019 13:46
Start simple webserver on 8080
#!/usr/bin/env bash
# Assume nodeJS and npm is installed
# Assume npm http-server is installed in global mode (-g)
echo "Starting local webserver on 8080"
http-server ~/origin -p 8080 --cors -c -1