I suggest you create a new "CreateDateLocal" tag in which you store the creation time as local time.ExifTool is a platform-independent Perl library plus a command-line application for reading, writing and editing meta information in image, audio and video files. why?Īny help or insight would be very much appreciated! But still, I find myself intrigued by this and wondering. Perhaps this is even more reason to sort by year/month instead of year/month/day, as I won't even tell that videos are shifted by 5 hours since they'll all be within that month's directory. Or perhaps there's no hope if the phone is recording in UTC time. But I got to wondering, is there a means to have exiftool look at an mp4 file and acknowledge the UTC timing difference? I know video files are a different beast and exiftool is largely focused on pictures, but even still, given exiftool does such a good job with acknowledging metadata even on these videos, it had me thinking there might be a way to tweak it to view the non-UTC time. I find this to be a little strange, but online searching suggests it's common, but I have yet to hear and understand why.Ģ) I'm sure I can add some logic within my script to simply sort pictures via CreateDate and sort video file types via FileModifyDate, or even added some extra parameter to systematically re-date all videos back by 5 hours. Is there a way to keep my videos from being recorded in UTC format? Pictures are fine, it's just videos. ![]() This suggests that it's not an app-specific setting. In the upper lines you can see the time stamps ending with 05:00, which is my understanding that it's the time differential to UTC.ġ) I tried multiple camera apps on my Motorola, but all of them yielded the exact same behavior. Further below I ran the 'date' command so you can see the current local time when this took place. Below is a video file that was taken, immediately transferred to my server, and exiftool was ran against it to check all of the time stamps. There's one snafu though - the video files seem to be recording in UTC time, whereas the pictures seem to be recorded in local time. This process is kind of amazing and I'm very happy with it. (?!) After that, the second exiftool line does the copying+sorting. This is really only useful for pictures saved via Hangouts conversations as Google seems to strip exif data. If it doesn't, it uses the FileModifyDate to create the CreateDate parameter. ![]() ![]() So basically, the first exiftool line checks if CreateDate exists. '-Directoryscript, for whatever it's worth, is as follows: #!/bin/bashĮxiftool -overwrite_original_in_place -P -if 'not $CreateDate' '-CreateDate
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |