I have used mediainfo
mediainfo --Inform="Video;%Duration/String3%" $SrcDir/${f%.*}.* > $HOME/t.txt trt=$(<$HOME/t.txt) _______________________________________________ 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".