[FFmpeg-trac] #4209(undetermined:new): GPS coordinates location and other iOS metadata in MOV are not copied to output MP4
FFmpeg
trac at avcodec.org
Fri Dec 26 22:45:33 CET 2014
#4209: GPS coordinates location and other iOS metadata in MOV are not copied to
output MP4
-------------------------------------+-------------------------------------
Reporter: elmimmo | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Certain metadata in MOV files recorded with iOS devices, such as GPS
location, is lost when converting to MP4.
**ffmpeg** does state in its log that the output file will contain such
metadata, but such is not the case as identified with **ffprobe** and
**exiftool**.
Some of the metadata present in the input MOV that is missing in the
output MP4, according to **ffprobe**:
- make ("Apple")
- encoder
- location (GPS latitude/longitude/altitude coordinates)
- model (the iPhone/iPad/iPod model)
**exiftool** identifies some more:
- camera identifier ("Back" or "Front")
- Software Version (iOS version)
This happens irrespective of input video/audio being transcoded or just
repackaged.
How to reproduce:
{{{
% ffmpeg -i INPUT.mov -map_metadata 0 -c copy OUTPUT.mp4
ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Dec 26 2014 21:55:58 with Apple LLVM version 4.2
(clang-425.0.28) (based on LLVM 3.2svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-
libx264 --enable-libmp3lame --enable-libxvid --enable-libvo-aacenc
--enable-vda
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'INPUT.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2014-12-26 20:54:22
model : iPhone 4
model-spa : iPhone 4
encoder : 7.1.1
encoder-spa : 7.1.1
date : 2014-12-26T21:54:22+0100
date-spa : 2014-12-26T21:54:22+0100
location : +41.4082+002.1852+027.119/
location-spa : +41.4082+002.1852+027.119/
make : Apple
make-spa : Apple
Duration: 00:00:01.07, start: 0.000000, bitrate: 11694 kb/s
Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661),
yuv420p(tv, bt709), 1280x720, 11890 kb/s, 24 fps, 24 tbr, 600 tbn, 1200
tbc (default)
Metadata:
rotate : 90
creation_time : 2014-12-26 20:54:22
handler_name : Core Media Data Handler
encoder : H.264
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono,
fltp, 62 kb/s (default)
Metadata:
creation_time : 2014-12-26 20:54:22
handler_name : Core Media Data Handler
Output #0, mp4, to 'OUTPUT.mp4':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2014-12-26 20:54:22
model : iPhone 4
model-spa : iPhone 4
make-spa : Apple
encoder : Lavf56.15.102
date : 2014-12-26T21:54:22+0100
date-spa : 2014-12-26T21:54:22+0100
location : +41.4082+002.1852+027.119/
location-spa : +41.4082+002.1852+027.119/
make : Apple
Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p,
1280x720, q=2-31, 11890 kb/s, 24 fps, 19200 tbn, 600 tbc (default)
Metadata:
rotate : 90
creation_time : 2014-12-26 20:54:22
handler_name : Core Media Data Handler
encoder : H.264
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, mono,
62 kb/s (default)
Metadata:
creation_time : 2014-12-26 20:54:22
handler_name : Core Media Data Handler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 25 fps=0.0 q=-1.0 Lsize= 1522kB time=00:00:01.06
bitrate=11673.4kbits/s
video:1512kB audio:8kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.123020%
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4209>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list