Skip to content

Instantly share code, notes, and snippets.

@m1tk4
Last active March 1, 2023 09:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m1tk4/8192bad401fbe845138ab47756139df6 to your computer and use it in GitHub Desktop.
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
@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
@m1tk4
Copy link
Author

m1tk4 commented Apr 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment