-
Python/애플 사진(Desktop Apple Photos)/Video date & EXIF issue코딩/Python 2024. 2. 1. 18:48728x90
The differences between MOV and MP4 regarding date and GPS support are as follows.
.MOV .MP4 GPS Non standard X EXIF Non standard X With Exiftool, I got the tags as follows.
GPS is displayed in the Photos app(Desktop) by "Keys:GPSCoordinates" Tag, and date is displayed by "QuickTime:CreateDate" tag.When using the gps tag with exiftool, the format is "% deg %' %.2f" when reading the value, but the format is "% % %.8f" for writing. For writing, there are ways to use the same format as reading, but unstable due to escapes. Use the format 54 deg 59' 22.80" (reading) -> 54 59 22.80000000 (writing).
Also, if exiftool touches the tag, the system file creation and modification dates are changed.
In POSIX (Mac OS), it is not possible to modify the file creation date using os.stat. So, you need to modify it with "SetFile".
한국의 특별한 경우 Special Case in Korea
그리고 mp4의 경우 한국시간의 날짜를 덧셈으로 바꿔버린다. 시간이 0:00시이면 +9:00으로 9:00시로 바꿔버린다. 황당한 경우가 아닐 수 없다. 해결하려고 노력하는데 아직 방법을 찾지 못했다. 갑갑하다....
And in the case of mp4, the date in Korean time is changed to addition. If the time is 0:00, it changes to +9:00 to 9:00. This cannot be anything other than an absurd case. I'm trying to solve it, but I haven't found a way yet. It's stuffy....Python/Mac/POSIX/SetFile로 파일 생성일 변경
GPS Tag MOV MP4 Composite:GPSAltitude O X Composite:GPSLatitude O X Composite:GPSLongitude O X Composite:GPSPosition O X Keys:GPSCoordinates (Apple Photos tag) O X Composite:GPSAltitudeRef O X Date Tag MOV MP4 System:FileModifyDate O O System:FileAccessDate O O System:FileInodeChangeDate O O QuickTime:CreateDate (Apple Photos tag) O O QuickTime:ModifyDate O O Track1:TrackCreateDate O O Track1:TrackModifyDate O O Track1:MediaCreateDate O O Track1:MediaModifyDate O O Track2:TrackCreateDate O O Track2:TrackModifyDate O O Track2:MediaCreateDate O O Track2:MediaModifyDate O O Track3:TrackCreateDate O X Track3:TrackModifyDate O X Track3:MediaCreateDate O X Track3:MediaModifyDate O X Track4:TrackCreateDate O X Track4:TrackModifyDate O X Track4:MediaCreateDate O X Track4:MediaModifyDate O X Track5:TrackCreateDate O X Track5:TrackModifyDate O X Track5:MediaCreateDate O X Track5:MediaModifyDate O X Keys:CreationDate O X 728x90'코딩 > Python' 카테고리의 다른 글
Python/Enumerate()의 올바른 이해 (1) 2024.02.26 Python/Data 입력값, 인수, 변수 (1) 2024.02.11 Python/사진, 동영상 정리 V2 (0) 2024.01.23 Python/Mac/POSIX/SetFile로 파일 생성일 변경 (0) 2024.01.23 Python/터미널 출력화면을 화려하게 만들어주는 라이브러리 colorama (1) 2024.01.23