Re: Length of a video file (.avi, .mpg) from the command line
Hi,
On Wed, 14 Aug 2019 17:43:42 +0200 (CEST)
Jean-Baptiste Thomas <cau2jeaf1honoq@laposte.net> wrote:
> Can anyone recommend a command line program that could tell me
> the length of the video stream in a .avi or .mpg file ? Thanks
> in advance.
>
as Jonas already suggested, I would use mediainfo, with for example
$ mediainfo --Inform="Video;%Duration/String3%" <videofile>
which will output something like:
01:58:39.029
See
$ mediainfo --Info-Parameters
for a list of possible output parameters and formats.
Regards
Michael
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
On my planet, to rest is to rest -- to cease using energy. To me, it
is quite illogical to run up and down on green grass, using energy,
instead of saving it.
-- Spock, "Shore Leave", stardate 3025.2
Reply to: