![]() and in the right – Free Online YouTube Video Downloader metadata location=15.0325356+107.9142184 -metadata location-eng=15.0325356+107.9142184ģ) Transcode to mp4, including location metadataįfmpeg -i DSCF7919.AVI -metadata location=15.0325356+107.9142184 -metadata location-eng=15.0325356+107.9142184 -c:a aac -b:a 128k -c:v libx264 -crf 23 4Ĥ) Set CreateDate and MediaCreateDate using exiftool (can't figure out how to do this during the transcodewith ffmpeg.?):Įxiftool -CreateDate="2006:12:31 12:13:14" -MediaCreateDate="2006:12:31 12:13:14" 4Įt voila when uploaded to Google Photos via the web interface (I have not tried any other method), (EDIT: after a short time) video will be set to 12:13:14 GMT+7 and have the correct GPS coords set with the location pointer pointing to the random location in Vietnam. This is also Amazon Cloud Drive/Prime Photos (at least flavour) friendly too.ġ) To get the location I use google maps, find a random part of the country or whatever and lat and long can be gained from the "Share" 15.0325356,107.9142184,10z/data=!4m5!3m4!1s0x31157a4d736a1e5f:0xb03bb0c9e2fe62be!8m2!3d14.058324!4d108.277199?hl=enĢ) The GPSPosition is set with ffmpeg using -metadata location=+ and -metadata location-eng=+īelow is a random location in Vietnam as per step 1. This is on linux (debian testing/9), but you can get ffmpeg and exiftool on Windows too and the parameters are the same. I could not figure out how to tag avis, so I am transcoding to mp4 and gzipping the original avi. It requires transcoding, but as this is for Google Photos who cares(?).įWIW, we have a load of happy snap AVI files from pre smart phone older cameras which do not have any form of GPS, and my wife has been rather slack at manually setting the time on them too. As I have found a solution I am posting this here so that hopefully it helps someone. I came across this post several times while trying to find a solution to setting the GPSPosition on videos for Google Photos (mostly to set the timezone because setting the date and time is woefully bad in google photos which will randomly mess up the order of your photos and videos). Phil, perhaps even you can get the foundation for transfer of quicktime tags from Bento4 (they have GNU 2.0 license) Also, AtomicParsley development appears to have stopped in 2006, while Bento4 was last update. I suppose AtomicParsley can do the same, but I am not sure. ©xyz) and you lose the information again. I also used it to maintain a 90 degree rotation that got lost during conversion by replacing the atom.īe sure to do all this AFTER you packed tracks into a mp4 file using mp4box, as mp4box does not know some of these atoms (e.g. You can basically transfer any atom from input.mp4 to output.mp4, e.g. To get an overview over all available atoms and their path you can run Mp4extract.exe moov/meta input.mp4 temp.txt The .ISO6709 coordinates can be copied from input.mp4 to output.mp4 by by copying the entire meta atom along with the atom that contains the location (and others) using those commands: ![]() Change to code page that contain the copyright symbol first using chcp 1250. ![]() (Note: the copyright sign is not part of the US codepage 437, a batch file containing ©xyz will fail. You could also copy the entire atom along with all the information that are in it. Mp4edit.exe -insert moov:temp.txt output.mp4 output_gps.mp4 Mp4extract.exe moov/udta/©xyz input.mp4 temp.txt ![]() The ©xyz coordinates can be copied from input.mp4 to output.mp4 using those commands: This is what these two options looks like in Mediainfo: iPhone or iPad stores it somewhere inside the numerous atoms that are part of the atom, which is a member of the atom. My Android phone stores it in the atom, which is a member of atom, which in turn is a member of the atom. I ended up using to transfer GPS information that got lost during re-encoding of videos from AVS (h.264) to HEVC (h.265).įound out gps location information is inconsistently stored. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |