[FFmpeg-trac] #4209(avformat:open): GPS coordinates location and other iOS metadata in MOV are not copied to output MP4
FFmpeg
trac at avcodec.org
Mon Mar 20 19:38:02 EET 2023
#4209: GPS coordinates location and other iOS metadata in MOV are not copied to
output MP4
------------------------------------+------------------------------------
Reporter: elmimmo | Owner: (none)
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: mov | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by Oleksandr):
I believe the cause of this bug is the improper location of the `meta` tag
as it was suggested by TimvW1984.
I faced the same issue as the ticket's reporter: iOS doesn't show the
location if media files were created by FFmpeg. After some analysis
independently of TimvW1984, I've found where FFmpeg and iOS put their
metadata tags:
FFmpeg: `moov/udta/meta`
iOS: `moov/meta`
Furthermore, Apple's QuickTime specification [1] defines the correct
location for the metadata tag:
> Within a QuickTime file, metadata can be stored within a movie atom
(‘moov’), a track atom (‘trak’) or a media atom (‘mdia’). Only one
metadata atom is allowed for each location.
The current FFmpeg implementation contradicts this specification and
writes it inside the `udta` tag[2].
From that, I can conclude this is the cause of why location metadata is
not recognized by Apple's software.
[1]:
https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/Metadata/Metadata.html
[2]:
https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/refs/heads/release/5.0:/libavformat/movenc.c#l4054
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4209#comment:25>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list