[FFmpeg-trac] #7579(undetermined:new): ID3 metadata not written in WAV

FFmpeg trac at avcodec.org
Wed Nov 28 22:58:57 EET 2018


#7579: ID3 metadata not written in WAV
-------------------------------------+-------------------------------------
             Reporter:  slhck        |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  metadata     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 ID3 metadata embedded in a WAV file is not copied over to the output
 despite specifying `-map_metadata 0`.

 How to reproduce:

 {{{
 ➜ ffmpeg -i 04\ -\ Mr\ Unconductive\ Frying\ Pan\ Handle\ Man\ -\ A\
 Beautiful\ Ballada\ Cover\ -\ giovanigoulart.wav -c copy -map_metadata 0
 -t 1 test.wav
 ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
   built with Apple LLVM version 10.0.0 (clang-1000.10.44.4)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1 --enable-shared
 --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-
 avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay
 --enable-gpl --enable-libmp3lame --enable-libopus --enable-libsnappy
 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
 --enable-libx265 --enable-libxvid --enable-lzma --enable-frei0r --enable-
 libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
 --enable-librtmp --enable-librubberband --enable-libsoxr --enable-libspeex
 --enable-libssh --enable-libtesseract --enable-libtwolame --enable-
 libvidstab --enable-libwavpack --enable-libwebp --enable-libzimg --enable-
 libzmq --enable-opencl --enable-openssl --enable-videotoolbox --enable-
 libopenjpeg --disable-decoder=jpeg2000 --extra-
 cflags=-I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 --enable-
 nonfree
   libavutil      56. 22.100 / 56. 22.100
   libavcodec     58. 35.100 / 58. 35.100
   libavformat    58. 20.100 / 58. 20.100
   libavdevice    58.  5.100 / 58.  5.100
   libavfilter     7. 40.101 /  7. 40.101
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale      5.  3.100 /  5.  3.100
   libswresample   3.  3.100 /  3.  3.100
   libpostproc    55.  3.100 / 55.  3.100
 Guessed Channel Layout for Input Stream #0.0 : stereo
 Input #0, wav, from '04 - Mr Unconductive Frying Pan Handle Man - A
 Beautiful Ballada Cover - giovanigoulart.wav':
   Duration: 00:03:46.72, bitrate: 2845 kb/s
     Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz,
 stereo, flt, 2822 kb/s
 File 'test.wav' already exists. Overwrite ? [y/N] y
 Output #0, wav, to 'test.wav':
   Metadata:
     ISFT            : Lavf58.20.100
     Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz,
 stereo, flt, 2822 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=     348kB time=00:00:00.99 bitrate=2856.1kbits/s speed= 138x
 video:0kB audio:348kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.031991%
 }}}

 The input file contains metadata:

 {{{
 ➜ mediainfo 04\ -\ Mr\ Unconductive\ Frying\ Pan\ Handle\ Man\ -\ A\
 Beautiful\ Ballada\ Cover\ -\ giovanigoulart.wav
 General
 Complete name                            : 04 - Mr Unconductive Frying Pan
 Handle Man - A Beautiful Ballada Cover - giovanigoulart.wav
 Format                                   : Wave
 File size                                : 76.9 MiB
 Duration                                 : 3 min 46 s
 Overall bit rate mode                    : Constant
 Overall bit rate                         : 2 845 kb/s
 Album                                    : To The Moon Edition - BETA
 Album/Performer                          : FASNASTIC
 Track name                               : Mr Unconductive Frying Pan
 Handle Man - A Beautiful Ballada Cover
 Track name/Position                      : 4
 Performer                                : FASNASTIC
 Genre                                    : Comedy
 Recorded date                            : 2015
 Copyright                                : FASNASTIC LTD
 Cover                                    : Yes
 Cover type                               : Cover (front)
 Cover MIME                               : image/png
 Comment                                  : giovanigoulart

 Audio
 Format                                   : PCM
 Format profile                           : Float
 Codec ID                                 : 3
 Codec ID/Hint                            : IEEE
 Duration                                 : 3 min 46 s
 Bit rate mode                            : Constant
 Bit rate                                 : 2 822 kb/s
 Channel(s)                               : 2 channels
 Sampling rate                            : 44.1 kHz
 Bit depth                                : 32 bits
 Stream size                              : 76.3 MiB (99%)
 }}}

 The output file does not:

 {{{
 ➜ mediainfo test.wav
 General
 Complete name                            : test.wav
 Format                                   : Wave
 File size                                : 348 KiB
 Duration                                 : 1 s 10 ms
 Overall bit rate mode                    : Constant
 Overall bit rate                         : 2 823 kb/s
 Writing application                      : Lavf58.20.100

 Audio
 Format                                   : PCM
 Format profile                           : Float
 Codec ID                                 :
 00000003-0000-0010-8000-00AA00389B71
 Codec ID/Hint                            : IEEE
 Duration                                 : 1 s 10 ms
 Bit rate mode                            : Constant
 Bit rate                                 : 2 822 kb/s
 Channel(s)                               : 2 channels
 Channel layout                           : L R
 Sampling rate                            : 44.1 kHz
 Bit depth                                : 32 bits
 Stream size                              : 348 KiB (100%)
 }}}

 Also reproduced with Git master.

 The file has been shared by the user @FASNASTIC. I can supply the sample,
 but it's 80MB:

 https://www.dropbox.com/s/oqtdqzpgetkvivw/04%20-%20Mr%20Unconductive%20Frying%20Pan%20Handle%20Man%20-%20A%20Beautiful%20Ballada%20Cover%20-%20giovanigoulart.wav?dl=0

 The (ID3) metadata is added in the end:
 https://www.dropbox.com/s/aidlpcr13q4h22f/Screenshot%202018-11-28%2021.56.00.png?dl=0

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


More information about the FFmpeg-trac mailing list