[FFmpeg-user] [EXTERNAL] Re: How to get video duration in a script using ffmpeg?
Bo Berglund
bo.berglund at gmail.com
Wed Jan 19 20:17:18 EET 2022
On Wed, 19 Jan 2022 18:12:08 +0000, "Shupert, Jim via ffmpeg-user"
<ffmpeg-user at ffmpeg.org> wrote:
>
>I have used mediainfo
>
>mediainfo --Inform="Video;%Duration/String3%" $SrcDir/${f%.*}.* > $HOME/t.txt
>trt=$(<$HOME/t.txt)
mediainfo is not existing on my Ubuntu Server 20.04.3...
But the ffprobe suggestions if done right works fine for me.
--
Bo Berglund
Developer in Sweden
More information about the ffmpeg-user
mailing list