get metadata for video start time with ffmpeg
You can use the companion ffprobe tool, which really is meant for machine-parseable text.
ffprobe -v 0 -show_entries format=start_time -of compact=p=0:nk=1 &quot;input&quot;

This will print a value with the form x.yyyyyy or N/A for formats without timestamps.