{"id":3059,"date":"2016-02-04T21:54:41","date_gmt":"2016-02-04T21:54:41","guid":{"rendered":"http:\/\/www.edwardsd.co.uk\/work\/?p=3059"},"modified":"2016-06-05T17:54:33","modified_gmt":"2016-06-05T16:54:33","slug":"iphone-video-rename-by-datetime-exif-values-cheatsheet","status":"publish","type":"post","link":"https:\/\/www.edwardsd.co.uk\/work\/2016\/02\/iphone-video-rename-by-datetime-exif-values-cheatsheet\/","title":{"rendered":"iPhone Video Rename by Date\/Time EXIF Values | Cheatsheet"},"content":{"rendered":"<p>I always like to copy the video&#8217;s off my iPhone onto my PC and then resync them back to the phone (selecting only the ones I want) unfortunately this process isn&#8217;t always straight forward when you also want to\u00a0rename them using their EXIF date &amp; time values.\u00a0As you may already know EXIF date works great with JPGs but there doesn&#8217;t seem to be so much of a &#8220;standard&#8221; when it comes to EXIF data for videos. The resync back to iPhone sometimes causes the incorrect date\/time stamp in the Camera Roll. This really bothers me during iMovie creations because I like to reference (and know by the title) when the clip was created. Fortunately when the iPhone camera creates video files it also injects EXIF\u00a0data\u00a0(When using the native App). This is a great reference\u00a0when you want to date\/time rename the files but can be confusing when video files\u00a0contain over 20 EXIF values all specifically related to date\/time.<\/p>\n<p><!--more--><\/p>\n<p>The main EXIF value I always reference is &#8220;CreateDate&#8221; this is the original date\/time when the file was created and is set by the iPhone injecting the EXIF &#8220;[QuickTime]&#8221; tag. All other values I ignore, this is the &#8220;sacred&#8221; golden value that fixes things (in a quest to rid the world of incorrect dates listed on videos). The other important value to note is\u00a0&#8220;FileCreateDate&#8221; which is a\u00a0EXIF &#8220;[File:System]&#8221; tag, this can sometimes be different to the &#8220;CreateDate&#8221; but is important because this is what the iPhone Camera Roll references and how the videos are organised. As I&#8217;ve experienced the FileCreateDate value can sometimes be different to the CreateDate therefore\u00a0showing incorrect date\/time date in iOS.<\/p>\n<p>Basically with all this background information above, I&#8217;m going to cut to the chase and list a load of EXIFTool commands to help rename videos based on creation date and ensure that when you sync them back to your iPhone they display in the correct order within &#8220;CameraRoll&#8221;<\/p>\n<p>The <a href=\"http:\/\/www.sno.phy.queensu.ca\/~phil\/exiftool\/\" target=\"_blank\">EXIFTOOL<\/a>\u00a0is great but can be open to how you code your lines so don&#8217;t be surprised if you find a different string on another website else where. The lines below are how I do it&#8230;<\/p>\n<p><strong>Shows all EXIF info | Lists all data values<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool -s -G &quot;M:\\Share&quot;<\/pre>\n<p><strong>Show date\/time | Lists all Date\/Time &#8220;File:System&#8221;\u00a0only\u00a0values (What Windows OS sees)<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool -AllDates -a &quot;M:\\Share&quot;<\/pre>\n<p><strong>Show date\/time | <\/strong><strong>Lists all Date\/Time &#8220;EXIF&#8221;\u00a0values<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool -time:all -a -G0:1 -s &quot;M:\\Share&quot; <\/pre>\n<p><strong>Modify\u00a0Filename | Based on &#8220;CreateDate&#8221; &#8211; Only MOV\/MP4 files &#8211;\u00a0Sub-directories\u00a0&#8211;\u00a0Without\u00a0modifying\u00a0<\/strong><b>time-stamps<\/b><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool &quot;-filename&lt;CreateDate&quot; -d %Y-%m-%d_%H-%M-%S%%-c.%%le -r -ext mp4 -ext mov &quot;M:\\Share&quot;<\/pre>\n<p><strong>Modify Filename <\/strong><strong>| Based on &#8220;CreateDate&#8221; &#8211; Only MOV\/MP4 files &#8211;\u00a0Sub-directories\u00a0&#8211;\u00a0Without\u00a0modifying\u00a0<b>time-stamps &#8211; i<\/b>f &#8220;Apple&#8221;<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool &quot;-filename&lt;CreateDate&quot; -if &quot;$Make eq 'Apple'&quot; -d %Y-%m-%d_%H-%M-%S_gmt_de_iP6%%-c.%%le -r -P -ext mp4 -ext mov &quot;M:\\Share&quot;<\/pre>\n<p><strong>Modify Filename <\/strong><strong>| Based on &#8220;CreateDate&#8221;\u00a0&#8211; Only JPG files\u00a0&#8211;\u00a0Sub-directories\u00a0&#8211;\u00a0Without\u00a0modifying\u00a0<b>time-stamps<\/b><\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool &quot;-filename&lt;CreateDate&quot; -d %Y-%m-%d_%H-%M-%S_gmt_de%%-c.%%le -r -ext jpg &quot;M:\\Share&quot;<\/pre>\n<p><strong>Modify Date\/Time | Only \u201cFile Create Date\u201d (What Windows Uses)<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool &quot;-FileCreateDate&lt;CreateDate&quot; &quot;M:\\Share&quot;<\/pre>\n<p><strong>Modify Date\/Time | Only \u201cFile Access Date\u201d (What Windows Uses)<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool &quot;-FileAccessDate&lt;CreateDate&quot; &quot;M:\\Share&quot;<\/pre>\n<p><strong>Modify Date\/Time | Only \u201cFile Modify Date\u201d (What Windows Uses)<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool &quot;-FileModifyDate&lt;CreateDate&quot; &quot;M:\\Share&quot;<\/pre>\n<p><strong>Modify Date\/Time | All date\/time values (But not What Windows Uses)<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool &quot;-time:all&lt;CreateDate&quot; &quot;M:\\Share&quot;<\/pre>\n<p><strong>Delete all meta values &#8211; Only JPG files<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">exiftool -all= -ext jpg &quot;M:\\Share&quot;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I always like to copy the video&#8217;s off my iPhone onto my PC and then resync them back to the phone (selecting only the ones I want) unfortunately this process isn&#8217;t always straight forward when you also want to\u00a0rename them using their EXIF date &amp; time values.\u00a0As you may already know EXIF date works great [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[21],"tags":[],"class_list":["post-3059","post","type-post","status-publish","format-standard","hentry","category-code"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pOPt8-Nl","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts\/3059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/comments?post=3059"}],"version-history":[{"count":6,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts\/3059\/revisions"}],"predecessor-version":[{"id":3118,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts\/3059\/revisions\/3118"}],"wp:attachment":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/media?parent=3059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/categories?post=3059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/tags?post=3059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}