Ogg metadata. Duration

Started by mujer_esponja, August 02, 2011, 04:13:10 AM

Previous topic - Next topic

mujer_esponja

Hello, I have been searching in this forum about Ogg format, but seems that nobody has faced problems with it.

I have also checked Ogg types in the documentation https://exiftool.org/TagNames/Ogg.html but in none of the types exists "Duration" field.
Is there some way to get this metadata?

Thanks in advance

Phil Harvey

It seems that Ogg files do not store duration in the metadata.  To get this information one may have to calculate the duration of the audio/video stream, which sometimes requires reading the entire file.  In general, ExifTool does not parse the audio/video stream data, so unless there is a simpler way to calculate duration for this type of file then we may be out of luck.  I did a quick google to look for solutions, but didn't find any.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mujer_esponja

Thank you for your answer Phil