[FFmpeg-user] How to get video duration in a script using ffmpeg?
h.reindl at thelounge.net
Thu Jan 20 03:01:46 EET 2022
Am 19.01.22 um 19:07 schrieb Carl Zwanzig:
> On 1/19/2022 3:23 AM, Bo Berglund wrote:
>> I have tried in various ways to limit the output of ffmpeg/ffprobe to
>> the line
>> holding the duration but it seems impossible...
> Depending on the source of a recording, I've found that various methods
> will report different values* for the duration, occasionally I've found
> some to be just plane wrong (below). It also appears that some formats
> tend to have more accurate durations than others, this is not a format
> problem per se, it's how people encode to that.
the problem are things like "variable bitrate" and there are better
tools as ffmpeg like mediainfo
More information about the ffmpeg-user