[FFmpeg-trac] #6193(undetermined:new): GPS coordinates getting lost after encoding

FFmpeg trac at avcodec.org
Mon Feb 27 01:17:04 EET 2017


#6193: GPS coordinates getting lost after encoding
-------------------------------------+-------------------------------------
             Reporter:  AndriusWild  |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Hello,
 Here is the command I am using:

 ffmpeg -i in.mp4 -c:v libx264 -crf 23 -c:a aac -strict experimental -q:a
 100 -map_metadata 0 out.mp4

 I read metadata of both input and output file after that with:

 exiftool -a -G1 -s

 and noticed that the following information is missing in the output file:

 [QuickTime]     PlayMode                        : SEQ_PLAY
 [QuickTime]     GPSCoordinates                  : ## deg ##' ##.##" N, ##'
 ##.##" W
 ....
 [Composite]     GPSLatitude                     : ## deg ##' ##.##" N
 [Composite]     GPSLongitude                    : ## deg ##' ##.##" W
 [Composite]     GPSPosition                     : ## deg ##' ##.##" N, ##'
 ##.##" W

 **Real coordinates are not shown**

 Here is the output of:

 ffmpeg -v 9 -loglevel 99 -i
 ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
   configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-
 suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
 --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl
 --enable-shared --disable-stripping --disable-decoder=libopenjpeg
 --disable-decoder=libschroedinger --enable-avresample --enable-avisynth
 --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite
 --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-
 libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-
 libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-
 libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal
 --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883
 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
   WARNING: library configuration mismatch
   avcodec     configuration: --prefix=/usr --extra-
 version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened
 --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
 --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping
 --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-
 avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-
 libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-
 libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype
 --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug
 --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-
 libpulse --enable-librtmp --enable-libschroedinger --enable-libshine
 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh
 --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid
 --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab
 --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r
 --enable-libx264 --enable-libopencv --enable-version3 --disable-doc
 --disable-programs --disable-avdevice --disable-avfilter --disable-
 avformat --disable-avresample --disable-postproc --disable-swscale
 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-
 libvo_aacenc --enable-libvo_amrwbenc
   libavutil      54. 31.100 / 54. 31.100
   libavcodec     56. 60.100 / 56. 60.100
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 40.101 /  5. 40.101
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-i' ...Missing argument for option 'i'.
 Error splitting the argument list: Invalid argument

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6193>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list