Skip to content

Instantly share code, notes, and snippets.

@matiaspl
Last active March 29, 2024 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save matiaspl/8afbccc5933ac3052ab7db4bec51cdfe to your computer and use it in GitHub Desktop.
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.
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