Hi,
I recognized that for several Olympus Models (EM1.2, EM1.3, E-P7) there is no AvgBitrate output by exiftool. Is this something known to be missing?
When I check other cameras (also the Olympus EM1), the information is there.
The following tags are missing for the three (EM1.2, EM1.3, E-P7), compared to EM1 and the other vendors:
[QuickTime:Video:Main:MOV:ID-mdat-size] MediaDataSize: 40015233
[QuickTime:Video:Main:MOV:ID-mdat-offset] MediaDataOffset: 917504
[Composite:Video:Main:Composite:ID-QuickTime-AvgBitrate] AvgBitrate: 25.6 Mbps
What I recognize is that all the quicktime metadata for (EM1.2, EM1.3, E-P7) are the same, for EM1 it looks a little different.
EM1 has two tracks/streams: QuickTime:Track1 & QuickTime:Track2, while (EM1.2, EM1.3, E-P7) have three tracks QuickTime:Track1 & QuickTime:Track2 & QuickTime:Track3
When checking with ffprobe it looks like this on (EM1.2, EM1.3, E-P7)
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
...
[STREAM]
index=1
codec_name=pcm_s16le
codec_long_name=PCM signed 16-bit little-endian
...
[STREAM]
index=2
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=data
codec_tag_string=tmcd
...
See the Composite tags documentation (https://exiftool.org/TagNames/Composite.html) for the tags that AvgBitrate is derived from. If AvgBitrate isn't reported, then likely one of these tags is missing. I'm not sure why MediaDataSize won't be extracted. I would have to see a sample to help more.
- Phil
Hi Phil,
when checking the tags, I found this:
AvgBitrate is calculated from:
QuickTime::MediaDataSize
QuickTime::Duration
MediaDataSize:(not a real tag ID, this tag represents the size of the 'mdat' data in bytes and is used in the AvgBitrate calculation)
As written in my fist post, MediaDataSize is not listed for (EM1.2, EM1.3, E-P7).
Checking "mdat"
EM1:
[QuickTime:Video:Main:MOV:ID-mdat-size] MediaDataSize: 40015233
[QuickTime:Video:Main:MOV:ID-mdat-offset] MediaDataOffset: 917504
EM1.2, EM1.3, E-P7:
<tags missing>
Maybe do a fallback to this tag in case MediaDataSize is missing?
[File:System:Other:Main:System:ID-FileSize] FileSize
Duration:
This is available for (EM1.2, EM1.3, E-P7) - same as e.g. EM1:
[QuickTime:Video:Main:MOV-Movie-MovieHeader:ID-4] Duration
I have uploaed a small clip (1sec - 17MB) from EM1.3 to dropbox:
https://www.dropbox.com/sh/45gka28ka7kggwu/AABm9G2dLDDAkdsLVP_T0T9Qa?dl=0 (https://www.dropbox.com/sh/45gka28ka7kggwu/AABm9G2dLDDAkdsLVP_T0T9Qa?dl=0)
Thanks for the sample. The mdat size isn't reported because it isn't stored in the mdat chunk header because this chunk extends to the end of file. I will see about reporting the mdat size in this case.
- Phil
Hi Phil,
great, thanks!
What I just recognized when looking at the video file with a hex editor:
Starting at offset: C47 there is the Lens Information: "OLYMPUS M.12-40mm F2.8" - currently not listed by exiftool
Hi Phil,
I was checking my older video files too and in addition I downloaded video samples of recent cameras from different brands.
The results of my checks are available in an excel on Dropbox:https://www.dropbox.com/sh/45gka28ka7kggwu/AABm9G2dLDDAkdsLVP_T0T9Qa?dl=0 (https://www.dropbox.com/sh/45gka28ka7kggwu/AABm9G2dLDDAkdsLVP_T0T9Qa?dl=0).
Summary:
Sample cameras 2015-2021: all reporting quicktime tags and fps/bitrate/codec is available via exiftool (with exception of EM1.2, EM1.3 and E-P7 - but here we already have the details). Some report Aperture/Shutterspeed/ISO, but most don't
Sample cameras 2009-2014: all reporting M2TS tags, fps and bitrate missing here
Sample cameras 2001-2008: all reporting RIFF tags, all main info available via exiftool.
In detail:
1. Olympus:
a) Newer Models: EM1.2, EM1.3, E-P7: bitrate not reported (see previous posts)
b) Newer Models: EM1.2, EM1.3, E-P7: Lens info not reported, is stored in video (xC47="OLYMPUS M.12-40mm F2.8" see dropbox "PA149960.MOV")
c )EM1.3 can record high-res Audio (24bit/96kHz) - see dropbox sample file "PA159962_24bitSound.MOV":
Reported by exiftool are:
Correct: lpcm = PCM signed 24-bit little-endian
[QuickTime:Track2:Audio:Main:MOV-Movie-Track-Media-MediaInfo-SampleTable-AudioSampleDesc:ID-4] AudioFormat: lpcm
Reported by exiftool are 16bit, but should be 24:
QuickTime:Track2:Audio:Main:MOV-Movie-Track-Media-MediaInfo-SampleTable-AudioSampleDesc:ID-26] AudioBitsPerSample: 16
should be 96000 here, with 16bit audio exiftool reports 48000 correctly:
[QuickTime:Track2:Audio:Main:MOV-Movie-Track-Media-MediaInfo-SampleTable-AudioSampleDesc:ID-32] AudioSampleRate: 1
2. Sigma:
Sigma fpL
Currently camera and lens info are not reported by exiftool.
If you download the first sample video here: https://www.photographyblog.com/reviews/sigma_fp_l_review (https://www.photographyblog.com/reviews/sigma_fp_l_review)
Checking "sigma_fp_l_01.mov" with hex editor:
x1317 = SIGMA SIGMA fp L = (Vendor and Camera)?
x16EC = SIGMA 65mm F2 DG DN | Contemporary
3. Ricoh
Ricoh GR III
Currently camera info is not reported by exiftool.
If you download the first sample video here: https://www.photographyblog.com/reviews/ricoh_gr_iii_review (https://www.photographyblog.com/reviews/ricoh_gr_iii_review)
Checking "ricoh_gr_iii_01.mov" with hex editor:
at the very end of file: "RICOH GR III Ver. 1.00 RICOH GR III"
4. Fujifilm
Fujifilm X-T4 can record 24bit/48khz
If you download the first sample video here: https://www.photographyblog.com/reviews/fujifilm_x_t4_review (https://www.photographyblog.com/reviews/fujifilm_x_t4_review)
fujifilm_x_t4_01.mov
Correct: lpcm = PCM signed 24-bit little-endian
[QuickTime:Track2:Audio:Main:MOV-Movie-Track-Media-MediaInfo-SampleTable-AudioSampleDesc:ID-4] AudioFormat: lpcm
Reported by exiftool are 16bit, but should be 24 (simliar to Olympus that also reports 16 here):
[QuickTime:Track2:Audio:Main:MOV-Movie-Track-Media-MediaInfo-SampleTable-AudioSampleDesc:ID-26] AudioBitsPerSample: 16
Should be 48000 (simliar to Olympus that also reports 1 here)
[QuickTime:Track2:Audio:Main:MOV-Movie-Track-Media-MediaInfo-SampleTable-AudioSampleDesc:ID-32] AudioSampleRate: 1
kind regards
Sebastian
Hi Sebastian,
I'll extract LensModel and the MediaDataOffset/Size tags from the sample you sent, and this will make it into ExifTool 12.33 (to be released probably later today).
I'll deal with the rest of your last post later when I have some time.
- Phil
Wow, that was fast! Thanks a lot!
I did some quick checks with 12.33 and can confirm that it's working (both lensID and bitrate) on my EM1.2 and EM1.3 files and also the E-P7 sample I had downloaded 8)