Quote from: hippo on June 06, 2024, 09:49:36 AMIn all the cases I've tried I've either found:
- No time fields at all
Exiftool only reads the metadata in the file and doesn't process the streams for the most part. If you have a file you know has a StartTimecode and exiftool doesn't find it with the command in FAQ #30, "How do I extract absolutely all metadata from a file?" (https://exiftool.org/faq.html#Q30), then a sample to look at would be helpful in case Phil wants to look at it.
Quote- Duration provided but just in a `10s` style format
Yes, it depends upon the video type and how long the video is. Shorter videos will show up as seconds like that. You can get the total raw value in seconds with the
-n (
--printConv) option (https://exiftool.org/exiftool_pod.html#n---printConv), which can be applied on a per tag bases by appending a hashtag to the tag name
C:\>exiftool -G1 -a -s -Duration -Duration# test.mp4
[QuickTime] Duration : 12.43 s
[QuickTime] Duration : 12.425
C:\>exiftool -G1 -a -s -duration -Duration# test2.mp4
[Flash] Duration : 0:04:00
[Flash] Duration : 240.072
Also note that exiftool doesn't read the stream to figure out the duration, and can return incorrect on some videos. See this GitHub post (https://github.com/exiftool/exiftool/issues/160#issuecomment-1293946184).
Quote- Timecode field provided but in a h:mm:ss format, without frame number.
This isn't my best area of knowledge, but it sounds like this might require more processing of the streams than exiftool does.
Quote- StartTimecode field provided with correct format, but incorrect value compared to a tool like Davinci Resolve (this was seen in an R3D file).
If you can provide a sample, Phil might be interested in trying to fix this. Unless it's a situation similar to the
Duration issue above.
QuoteI was wondering what the feasibility of collecting this kind of data would be for exiftool?
In case you haven't check them out already, you might look into
MediaInfo (https://mediaarea.net/en/MediaInfo) or
ffprobe (part of
ffmpeg), as those are more video centric than exiftool.