Last active
May 14, 2024 13:42
-
-
Save matiaspl/8afbccc5933ac3052ab7db4bec51cdfe to your computer and use it in GitHub Desktop.
A visual aid for debugging embedded timestamp issues. Shows both SEI and PTS timestamps and some general stream info. Accepts one parameter - the stream/file URL/URI.
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
#!/bin/sh | |
# | |
# This script uses a pretty monospaced/terminal font called iosevka by be5invis (https://github.com/be5invis/Iosevka/) | |
# Get the TTF file from here: https://git.mmk2410.org/deb/fonts-iosevka/src/branch/main/ttf-unhinted/iosevka-extended.ttf | |
# | |
ffplay -loglevel info -sync ext -x 960 -y 540 -vf "drawtext=text='\ SEI\: %{metadata\:timecode\:NOT PRESENT} | |
PTS\:%{pts\:hms} / %{pict_type} | |
PTS(UTC)\: %{pts\:gmtime} | |
INFO\: %{eif\:w\:d}x%{eif\:h\:d} %{e\:1/duration} Hz | |
______________________________________ | |
TELLYO ENGINEERING %{localtime}':x=(w-tw)/2:y=h-7*lh:fontsize=50:fontcolor=white:line_spacing=10:borderw=5:fontfile=iosevka-extended.ttf" -rw_timeout 3M $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment