Prints just the duration in seconds with nothing else, which is ideal for scripts. -show_entries format=duration limits the query to one field, and -of default=noprint_wrappers=1:nokey=1 strips the labels. -v error silences warnings.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.