[FFmpeg-trac] #8338(avformat:new): can't copy GoPro metadata

FFmpeg trac at avcodec.org
Sun Jul 11 17:09:49 EEST 2021


#8338: can't copy GoPro metadata
-------------------------------------+------------------------------------
             Reporter:  importon     |                    Owner:  (none)
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  mov          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------
Comment (by Roman Gaufman):

 Any solution to this? - I tried:

 {{{
 ffmpeg -i 0.MP4 -c copy -map 0:v -map 0:a -map 0:3 out.mp4
 }}}


 But I get 4 steams in my output file instead of 5 in the original.

 if I change to -map 0:4 it says:

 {{{
 $ ffmpeg -i GX010804\ NEW.MP4 -c copy -map 0:v -map 0:a -map 0:4 -y
 out.mp4
 ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
   built with Apple clang version 12.0.5 (clang-1205.0.22.9)
   configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/4.4_2 --enable-
 shared --enable-pthreads --enable-version3 --cc=clang --host-cflags=
 --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-
 libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-
 libopus --enable-librav1e --enable-librubberband --enable-libsnappy
 --enable-libsrt --enable-libtesseract --enable-libtheora --enable-
 libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-
 libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma
 --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-
 libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-
 libzimg --disable-libjack --disable-indev=jack --enable-avresample
 --enable-videotoolbox
   libavutil      56. 70.100 / 56. 70.100
   libavcodec     58.134.100 / 58.134.100
   libavformat    58. 76.100 / 58. 76.100
   libavdevice    58. 13.100 / 58. 13.100
   libavfilter     7.110.100 /  7.110.100
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale      5.  9.100 /  5.  9.100
   libswresample   3.  9.100 /  3.  9.100
   libpostproc    55.  9.100 / 55.  9.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GX010804 NEW.MP4':
   Metadata:
     major_brand     : mp41
     minor_version   : 538120216
     compatible_brands: mp41
     creation_time   : 2021-04-24T16:42:06.000000Z
     firmware        : HD8.01.02.50.00
   Duration: 00:05:09.96, start: 0.000000, bitrate: 60283 kb/s
   Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc,
 bt709), 3840x2160 [SAR 1:1 DAR 16:9], 60022 kb/s, 50 fps, 50 tbr, 90k tbn,
 50 tbc (default)
     Metadata:
       creation_time   : 2021-04-24T16:42:06.000000Z
       handler_name    : GoPro H.265
       vendor_id       : [0][0][0][0]
       encoder         : GoPro H.265 encoder
       timecode        : 16:42:06:19
   Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
 fltp, 189 kb/s (default)
     Metadata:
       creation_time   : 2021-04-24T16:42:06.000000Z
       handler_name    : GoPro AAC
       vendor_id       : [0][0][0][0]
       timecode        : 16:42:06:19
   Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
     Metadata:
       creation_time   : 2021-04-24T16:42:06.000000Z
       handler_name    : GoPro TCD
       timecode        : 16:42:06:19
   Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 45 kb/s (default)
     Metadata:
       creation_time   : 2021-04-24T16:42:06.000000Z
       handler_name    : GoPro MET
   Stream #0:4(eng): Data: none (fdsc / 0x63736466), 12 kb/s (default)
     Metadata:
       creation_time   : 2021-04-24T16:42:06.000000Z
       handler_name    : GoPro SOS
 [mp4 @ 0x12d81d000] Could not find tag for codec none in stream #2, codec
 not currently supported in container
 Could not write header for output file #0 (incorrect codec parameters ?):
 Invalid argument
 Error initializing output stream 0:2 --
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
   Stream #0:4 -> #0:2 (copy)
     Last message repeated 1 times
 ```

 Any solution to this?
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/8338#comment:11>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list