News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Error with date underflow

Started by jackb_guppy, December 03, 2015, 07:09:12 PM

Previous topic - Next topic

jackb_guppy

Been working on cleanup my video library, by setting orignal air dates into the mp4.  avcont allows me to update the date correctly and it shows it back correct.  But exiftool appears to be an underflow on the date.

S01E00:  1964-06-24, but exiftool shows 2030:06:25.  Any suggestions in correcting?

Ubuntu 14.04 LTS
exiftool 9.46
"exiftool star.trek.s01e00.mp4"

console output:

ExifTool Version Number         : 9.46
File Name                       : star.trek.s01e00.mp4
Directory                       : /plex/SSD/plex.archive/tv/star.trek/s01
File Size                       : 383 MB
File Modification Date/Time     : 2015:12:03 18:32:44-05:00
File Access Date/Time           : 2015:12:03 18:32:45-05:00
File Inode Change Date/Time     : 2015:12:03 18:32:44-05:00
File Permissions                : rwxrwxrwx
File Type                       : MP4
MIME Type                       : video/mp4
Major Brand                     : MP4  Base Media v1 [IS0 14496-12:2003]
Minor Version                   : 0.2.0
Compatible Brands               : isom, iso2, avc1, mp41
Movie Data Size                 : 398674617
Movie Data Offset               : 48
Movie Header Version            : 0
Warning                         : [minor] Patched incorrect time zero for QuickTime date/time tag
Create Date                     : 2030:06:25 00:00:00
Modify Date                     : 2030:06:25 00:00:00
Time Scale                      : 1000
Duration                        : 1:10:59
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 2030:06:25 00:00:00
Track Modify Date               : 2030:06:25 00:00:00
Track ID                        : 1
Track Duration                  : 1:10:59
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 635
Image Height                    : 480
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 852
Source Image Height             : 480
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Pixel Aspect Ratio              : 900:1207
Video Frame Rate                : 23.976
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2030:06:25 00:00:00
Media Modify Date               : 2030:06:25 00:00:00
Media Time Scale                : 44100
Media Duration                  : 1:10:59
Media Language Code             : und
Handler Description             : SoundHandler
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 44100
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Title                           : star trek s01e00
Encoder                         : Lavf54.20.4
Avg Bitrate                     : 749 kbps
Image Size                      : 635x480
Rotation                        : 0


avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xd00fc0] multiple edit list entries, a/v desync might occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/plex/plex/lock/video/mp4/star.trek.s01e00.the.cage.pilot.ad19640624.sd480.sr16x9.rt1h10.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1964-06-24 00:00:00
    title           : star trek s01e00 the cage pilot
    encoder         : Lavf54.20.4
  Duration: 01:11:00.12, start: 0.000000, bitrate: 754 kb/s
    Stream #0.0(und): Video: h264 (High), yuv420p, 852x480 [PAR 900:1207 DAR 45:34], 551 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
    Metadata:
      creation_time   : 1964-06-24 00:00:00
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, fltp, 197 kb/s
    Metadata:
      creation_time   : 1964-06-24 00:00:00
Output #0, mp4, to '/plex/plex/work/video/mp4/star.trek.s01e00.the.cage.pilot.ad19640624.sd480.sr16x9.rt1h10.mp4':
  Metadata:
    title           : star trek s01e00 the cage pilot
    creation_time   : 1964-06-24 00:00:00
    encoder         : Lavf54.20.4
    Stream #0.0(und): Video: libx264, yuv420p, 852x480 [PAR 900:1207 DAR 45:34], q=2-31, 551 kb/s, 24k tbn, 24k tbc
    Metadata:
      creation_time   : 1964-06-24 00:00:00
    Stream #0.1(und): Audio: libvo_aacenc, 44100 Hz, stereo, 197 kb/s
    Metadata:
      creation_time   : 1964-06-24 00:00:00
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)

Hayo Baan

Phil probably needs to get back on this when he is back (he is away for some days), but have you already tried with the latest version of exiftool?
Hayo Baan – Photography
Web: www.hayobaan.nl

jackb_guppy

Version is most current in the repository for Ubuntu 14.04.

Just loaded 10.07, still underflows

ExifTool Version Number         : 10.07
File Name                       : star.trek.s01e00.the.cage.pilot.ad19640624.sd480.sr16x9.rt1h10.mp4
Directory                       : /plex/SSD/plex.archive/star.trek/tv/star.trek/s01
File Size                       : 383 MB
File Modification Date/Time     : 2015:12:04 01:21:37-05:00
File Access Date/Time           : 2015:12:04 01:21:38-05:00
File Inode Change Date/Time     : 2015:12:04 01:21:37-05:00
File Permissions                : rwxrwxrwx
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
Major Brand                     : MP4  Base Media v1 [IS0 14496-12:2003]
Minor Version                   : 0.2.0
Compatible Brands               : isom, iso2, avc1, mp41
Movie Data Size                 : 398674617
Movie Data Offset               : 48
Movie Header Version            : 0
Warning                         : [minor] Patched incorrect time zero for QuickTime date/time tag
Create Date                     : 2030:06:25 00:00:00
Modify Date                     : 2030:06:25 00:00:00
Time Scale                      : 1000
Duration                        : 1:10:59
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 2030:06:25 00:00:00
Track Modify Date               : 2030:06:25 00:00:00
Track ID                        : 1
Track Duration                  : 1:10:59
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 635
Image Height                    : 480
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 852
Source Image Height             : 480
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Pixel Aspect Ratio              : 900:1207
Video Frame Rate                : 23.976
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2030:06:25 00:00:00
Media Modify Date               : 2030:06:25 00:00:00
Media Time Scale                : 44100
Media Duration                  : 1:10:59
Media Language Code             : und
Handler Description             : SoundHandler
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 44100
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Title                           : star trek s01e00 the cage pilot
Encoder                         : Lavf54.20.4
Avg Bitrate                     : 749 kbps
Image Size                      : 635x480
Megapixels                      : 0.305
Rotation                        : 0

Hayo Baan

Hmm, can you provide us with a sample file that exhibits this problem? If it is really small, upload here, otherwise please provide a download link.
Hayo Baan – Photography
Web: www.hayobaan.nl

jackb_guppy

Sorry for the size but wanted to give you all the info.

Also my guess at the error is: in a date function that is using uint32 for date/time processing, since 1968 is prior to 1970-01-01 (beginning of time in unix/linux :)  when mapping the date, it underflows and reports back as if the date was after 1970-01-01.  This could be an issue with my system but I am using Unbuntu 14.04 LTS x64, and I have tested the date function, it is what formats the dates that I feed to avconv, and seams to validate for all my tests and file encodings.

how file was created:
jackb@SAL:~$ avconv -i Desktop/test.avi -s hd480 -map_metadata -1 -map_chapters -1 -metadata title="test 1968-07-05" -metadata creation_time="1968-07-05 00:00:00" Desktop/test.mp4

avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, avi, from 'Desktop/test.avi':
  Metadata:
    creation_time   : 2012-05-17 11:01:39
    DTIM            : 2012:05:17 11:01:39
    encoder         :
    SRAT            :
    IKEY            : �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
  Duration: 00:00:02.16, start: 0.000000, bitrate: 26434 kb/s
    Stream #0.0: Video: mjpeg, yuvj422p, 1280x720, 30 fps, 30 tbr, 30 tbn
    Stream #0.1: Audio: pcm_mulaw, 16000 Hz, mono, s16, 128 kb/s
[libx264 @ 0x1d8d4c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x1d8d4c0] profile High, level 3.1
[libx264 @ 0x1d8d4c0] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25 aq=1:1.00
Output #0, mp4, to 'Desktop/test.mp4':
  Metadata:
    title           : test 1968-07-05
    creation_time   : 1968-07-05 00:00:00
    encoder         : Lavf54.20.4
    Stream #0.0: Video: libx264, yuv420p, 852x480, q=-1--1, 30 tbn, 30 tbc
    Stream #0.1: Audio: libvo_aacenc, 16000 Hz, mono, s16, 200 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> libx264)
  Stream #0:1 -> #0:1 (pcm_mulaw -> libvo_aacenc)
Press ctrl-c to stop encoding
frame=   65 fps= 32 q=32764.0 Lsize=     381kB time=2.10 bitrate=1487.3kbits/s   
video:109kB audio:6kB global headers:0kB muxing overhead 233.623297%
[libx264 @ 0x1d8d4c0] frame I:1     Avg QP:25.61  size: 36085
[libx264 @ 0x1d8d4c0] frame P:32    Avg QP:26.14  size:  8406
[libx264 @ 0x1d8d4c0] frame B:32    Avg QP:29.95  size:  2369
[libx264 @ 0x1d8d4c0] consecutive B-frames:  1.5% 98.5%  0.0%  0.0%
[libx264 @ 0x1d8d4c0] mb I  I16..4:  4.1% 69.8% 26.1%
[libx264 @ 0x1d8d4c0] mb P  I16..4:  0.5%  5.2%  1.5%  P16..4: 44.4% 14.0% 10.1%  0.0%  0.0%    skip:24.3%
[libx264 @ 0x1d8d4c0] mb B  I16..4:  0.1%  0.6%  0.2%  B16..8: 40.3%  4.3%  1.0%  direct: 1.7%  skip:51.9%  L0:43.2% L1:49.3% BI: 7.5%
[libx264 @ 0x1d8d4c0] 8x8 transform intra:71.4% inter:71.9%
[libx264 @ 0x1d8d4c0] coded y,uvDC,uvAC intra: 75.9% 86.4% 54.3% inter: 15.2% 22.9% 2.8%
[libx264 @ 0x1d8d4c0] i16 v,h,dc,p: 18% 23%  4% 55%
[libx264 @ 0x1d8d4c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 16% 10%  7%  9% 11%  8% 12%  8%
[libx264 @ 0x1d8d4c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 24%  9%  6% 10% 10%  8%  8%  5%
[libx264 @ 0x1d8d4c0] i8c dc,h,v,p: 53% 17% 21%  9%
[libx264 @ 0x1d8d4c0] Weighted P-Frames: Y:6.2% UV:0.0%
[libx264 @ 0x1d8d4c0] ref P L0: 62.7% 16.9% 13.5%  6.8%  0.2%
[libx264 @ 0x1d8d4c0] ref B L0: 85.7% 14.3%
[libx264 @ 0x1d8d4c0] kb/s:1406.32


What exiftool sees:
jackb@SAL:~$ exiftool Desktop/test.mp4

ExifTool Version Number         : 10.07
File Name                       : test.mp4
Directory                       : Desktop
File Size                       : 381 kB
File Modification Date/Time     : 2015:12:06 11:49:14-05:00
File Access Date/Time           : 2015:12:06 11:49:12-05:00
File Inode Change Date/Time     : 2015:12:06 11:49:14-05:00
File Permissions                : rw-rw-r--
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
Major Brand                     : MP4  Base Media v1 [IS0 14496-12:2003]
Minor Version                   : 0.2.0
Compatible Brands               : isom, iso2, avc1, mp41
Movie Data Size                 : 387710
Movie Data Offset               : 48
Movie Header Version            : 0
Warning                         : [minor] Patched incorrect time zero for QuickTime date/time tag
Create Date                     : 2034:07:06 00:00:00
Modify Date                     : 2034:07:06 00:00:00
Time Scale                      : 1000
Duration                        : 2.26 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 2034:07:06 00:00:00
Track Modify Date               : 2034:07:06 00:00:00
Track ID                        : 1
Track Duration                  : 2.17 s
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 852
Image Height                    : 480
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 852
Source Image Height             : 480
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Video Frame Rate                : 30
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2034:07:06 00:00:00
Media Modify Date               : 2034:07:06 00:00:00
Media Time Scale                : 16000
Media Duration                  : 2.26 s
Media Language Code             : und
Handler Description             : SoundHandler
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 16000
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Title                           : test 1968-07-05
Encoder                         : Lavf54.20.4
Avg Bitrate                     : 1.37 Mbps
Image Size                      : 852x480
Megapixels                      : 0.409
Rotation                        : 0

jackb_guppy

Sorry to post twice, but was not able to source file to post, so I set-up test again.

jackb@SAL:~$ exiftool Desktop/test.mp4
ExifTool Version Number         : 10.07
File Name                       : test.mp4
Directory                       : Desktop
File Size                       : 381 kB
File Modification Date/Time     : 2015:12:06 12:21:00-05:00
File Access Date/Time           : 2015:12:06 11:49:21-05:00
File Inode Change Date/Time     : 2015:12:06 12:21:00-05:00
File Permissions                : rw-rw-r--
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
Major Brand                     : MP4  Base Media v1 [IS0 14496-12:2003]
Minor Version                   : 0.2.0
Compatible Brands               : isom, iso2, avc1, mp41
Movie Data Size                 : 387710
Movie Data Offset               : 48
Movie Header Version            : 0
Create Date                     : 2012:05:17 11:01:39
Modify Date                     : 2012:05:17 11:01:39
Time Scale                      : 1000
Duration                        : 2.26 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 2012:05:17 11:01:39
Track Modify Date               : 2012:05:17 11:01:39
Track ID                        : 1
Track Duration                  : 2.17 s
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 852
Image Height                    : 480
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 852
Source Image Height             : 480
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Video Frame Rate                : 30
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2012:05:17 11:01:39
Media Modify Date               : 2012:05:17 11:01:39
Media Time Scale                : 16000
Media Duration                  : 2.26 s
Media Language Code             : und
Handler Description             : SoundHandler
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 16000
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Encoder                         : Lavf54.20.4
Avg Bitrate                     : 1.37 Mbps
Image Size                      : 852x480
Megapixels                      : 0.409
Rotation                        : 0
jackb@SAL:~$ avconv -i Desktop/test.mp4 -s hd480 -map_metadata -1 -map_chapters -1 -metadata title="test 1968-07-05" -metadata creation_time="1968-07-05 00:00:00" Desktop/test.new.mp4
avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Desktop/test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2012-05-17 11:01:39
    encoder         : Lavf54.20.4
  Duration: 00:00:02.25, start: 0.000000, bitrate: 1383 kb/s
    Stream #0.0(und): Video: h264 (High), yuv420p, 852x480, 1408 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc
    Metadata:
      creation_time   : 2012-05-17 11:01:39
    Stream #0.1(und): Audio: aac, 16000 Hz, mono, fltp, 21 kb/s
    Metadata:
      creation_time   : 2012-05-17 11:01:39
[libx264 @ 0x219ed80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x219ed80] profile High, level 3.1
[libx264 @ 0x219ed80] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25 aq=1:1.00
Output #0, mp4, to 'Desktop/test.new.mp4':
  Metadata:
    title           : test 1968-07-05
    creation_time   : 1968-07-05 00:00:00
    encoder         : Lavf54.20.4
    Stream #0.0(und): Video: libx264, yuv420p, 852x480, q=-1--1, 30 tbn, 30 tbc
    Metadata:
      creation_time   : 2012-05-17 11:01:39
    Stream #0.1(und): Audio: libvo_aacenc, 16000 Hz, mono, s16, 200 kb/s
    Metadata:
      creation_time   : 2012-05-17 11:01:39
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> libvo_aacenc)
Press ctrl-c to stop encoding
frame=   65 fps= 39 q=32763.0 Lsize=     339kB time=2.10 bitrate=1322.8kbits/s   
video:100kB audio:6kB global headers:0kB muxing overhead 220.201219%
[libx264 @ 0x219ed80] frame I:1     Avg QP:24.22  size: 36050
[libx264 @ 0x219ed80] frame P:28    Avg QP:25.08  size:  7980
[libx264 @ 0x219ed80] frame B:36    Avg QP:30.41  size:  2162
[libx264 @ 0x219ed80] consecutive B-frames:  1.5% 61.5% 36.9%  0.0%
[libx264 @ 0x219ed80] mb I  I16..4:  2.3% 74.1% 23.6%
[libx264 @ 0x219ed80] mb P  I16..4:  0.7%  6.1%  1.5%  P16..4: 44.9% 14.5%  8.2%  0.0%  0.0%    skip:24.1%
[libx264 @ 0x219ed80] mb B  I16..4:  0.1%  0.7%  0.2%  B16..8: 39.0%  4.3%  0.8%  direct: 1.2%  skip:53.8%  L0:45.2% L1:48.6% BI: 6.1%
[libx264 @ 0x219ed80] 8x8 transform intra:73.9% inter:74.9%
[libx264 @ 0x219ed80] coded y,uvDC,uvAC intra: 73.6% 84.3% 46.3% inter: 12.5% 18.3% 1.8%
[libx264 @ 0x219ed80] i16 v,h,dc,p: 17% 20%  3% 60%
[libx264 @ 0x219ed80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 17% 10%  6%  9% 11%  8% 11%  8%
[libx264 @ 0x219ed80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 26%  9%  5% 10% 10%  7%  8%  5%
[libx264 @ 0x219ed80] i8c dc,h,v,p: 52% 18% 22%  9%
[libx264 @ 0x219ed80] Weighted P-Frames: Y:7.1% UV:0.0%
[libx264 @ 0x219ed80] ref P L0: 66.0% 16.4% 11.2%  6.2%  0.2%
[libx264 @ 0x219ed80] ref B L0: 85.1% 14.3%  0.6%
[libx264 @ 0x219ed80] ref B L1: 96.2%  3.8%
[libx264 @ 0x219ed80] kb/s:1245.43
jackb@SAL:~$ exiftool Desktop/test.new.mp4
ExifTool Version Number         : 10.07
File Name                       : test.new.mp4
Directory                       : Desktop
File Size                       : 339 kB
File Modification Date/Time     : 2015:12:06 12:22:19-05:00
File Access Date/Time           : 2015:12:06 12:22:23-05:00
File Inode Change Date/Time     : 2015:12:06 12:22:19-05:00
File Permissions                : rw-rw-r--
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
Major Brand                     : MP4  Base Media v1 [IS0 14496-12:2003]
Minor Version                   : 0.2.0
Compatible Brands               : isom, iso2, avc1, mp41
Movie Data Size                 : 344483
Movie Data Offset               : 48
Movie Header Version            : 0
Warning                         : [minor] Patched incorrect time zero for QuickTime date/time tag
Create Date                     : 2034:07:06 00:00:00
Modify Date                     : 2034:07:06 00:00:00
Time Scale                      : 1000
Duration                        : 2.40 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 2034:07:06 00:00:00
Track Modify Date               : 2034:07:06 00:00:00
Track ID                        : 1
Track Duration                  : 2.17 s
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 852
Image Height                    : 480
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 852
Source Image Height             : 480
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Video Frame Rate                : 30
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2034:07:06 00:00:00
Media Modify Date               : 2034:07:06 00:00:00
Media Time Scale                : 16000
Media Duration                  : 2.39 s
Media Language Code             : und
Handler Description             : SoundHandler
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 16000
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Title                           : test 1968-07-05
Encoder                         : Lavf54.20.4
Avg Bitrate                     : 1.15 Mbps
Image Size                      : 852x480
Megapixels                      : 0.409
Rotation                        : 0
jackb@SAL:~$

Phil Harvey

The problem is associated with a patch to fix incorrectly written QuickTime date/time values:

% exiftool ~/Desktop/test.mp4 -quicktime:time:all -warning
Create Date                     : 2034:07:06 00:00:00
Modify Date                     : 2034:07:06 00:00:00
Track Create Date               : 2034:07:06 00:00:00
Track Modify Date               : 2034:07:06 00:00:00
Media Create Date               : 2034:07:06 00:00:00
Media Modify Date               : 2034:07:06 00:00:00
Track Create Date               : 2034:07:06 00:00:00
Track Modify Date               : 2034:07:06 00:00:00
Media Create Date               : 2034:07:06 00:00:00
Media Modify Date               : 2034:07:06 00:00:00
Warning                         : [minor] Patched incorrect time zero for QuickTime date/time tag


It is not uncommon for software to improperly use a time zero if 1970 instead of 1904 for QuickTime date/time values, so if ExifTool sees a date/time before 1970 it assumes that this is the case and shifts the date/time accordingly.

I don't see any way around this because if I fix this for true dates before 1970 I will break it for the (much more common) case where the wrong zero time was used.

- Phil

Edit:  I thought of a solution.  I'll enhance the QuickTimeUTC api option to also enforce the proper time zero, so you can use this option to extract the proper date/time values when reading your files:

exiftool ~/Desktop/test.mp4 -ver -quicktime:time:all -warning -api quicktimeutc
10.08
Create Date                     : 1968:07:04 20:00:00-04:00
Modify Date                     : 1968:07:04 20:00:00-04:00
Track Create Date               : 1968:07:04 20:00:00-04:00
Track Modify Date               : 1968:07:04 20:00:00-04:00
Media Create Date               : 1968:07:04 20:00:00-04:00
Media Modify Date               : 1968:07:04 20:00:00-04:00
Track Create Date               : 1968:07:04 20:00:00-04:00
Track Modify Date               : 1968:07:04 20:00:00-04:00
Media Create Date               : 1968:07:04 20:00:00-04:00
Media Modify Date               : 1968:07:04 20:00:00-04:00
...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 ($).

jackb_guppy

Phil, thank you for the quick change.  Looking forward to the release of 10.08.