On Wed, 19 Jan 2022 12:59:45 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote:
>Thanks, this returns the following output: >0:43:26.384000 > >Can the duration be limited to only seconds resolution (no decimals)? > Turns out I found a simple way: CMD="ffprobe -v 0 -of compact=p=0:nk=1 -sexagesimal -show_entries format=duration $INPUTFILE" DURATION=$($CMD) echo ${DURATION%.*} Results in this output: 0:43:26 Exactly what is needed... -- Bo Berglund Developer in Sweden _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".