Last active
March 1, 2023 09:46
-
-
Save m1tk4/8192bad401fbe845138ab47756139df6 to your computer and use it in GitHub Desktop.
Create a test video file - SMPTE HD Bars with burn-in timecode and 1kHz sound
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
@echo off | |
:: Set duration in seconds | |
set duration=615 | |
:: Note - this outputs 720p 59.94fps drop-frame sample | |
ffmpeg.exe ^ | |
-f lavfi -i "smptebars=duration=%duration%:size=1280x720:rate=60000/1001" ^ | |
-f lavfi -i "sine=frequency=1000:sample_rate=48000:duration=%duration%" ^ | |
-vf drawtext="fontfile=consola.ttf:\ timecode='00\:00\:00\;00':rate=60000/1001:fontsize=64:fontcolor='white':\ boxcolor=0x00000088:box=1:boxborderw=5:x=20:y=20" ^ | |
-c:v mpeg2video -b:v 6000k ^ | |
-c:a libvo_aacenc -b:a 64k ^ | |
-y ^ | |
smpte_bars_720.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://trac.ffmpeg.org/wiki/FilteringGuide for pieces of it