Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2731 closed enhancement (fixed)

Problem with -metadata disc

Reported by: Markus Owned by: Carl Eugen Hoyos
Priority: wish Component: avformat
Version: git-master Keywords: mov metadata
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by Carl Eugen Hoyos)

metadata disc is not working for me.

"title" tag is updated but the tag "disc" is not created (also tried different solutions).

working with latest windows version...

F:\>ffmpeg -i inFile.m4a -metadata disc="5/6" -metadata title="test" outFile.m4a

ffmpeg version N-53724-g716dbc7 Copyright (c) 2000-2013 the FFmpeg developers
  built on May 31 2013 23:33:02 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 12.102 / 55. 12.102
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 73.100 /  3. 73.100
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'inFile.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 512
    compatible_brands: isomiso2
    track           : 13
   [b] disc            : 1/2[/b]
    album           : Kontor - Chilled Beats
    album_artist    : Various Artists
    artist          : Hardwell vs. Collin McLoughlin
    title           : Call Me a Spaceman (Unplugged Version)
    encoder         : Lavf54.3.100
    date            : 2013
  Duration: 00:02:19.20, start: 0.000000, bitrate: 193 kb/s
    Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 19
2 kb/s
    Metadata:
      handler_name    : SoundHandler
File 'outFile.m4a' already exists. Overwrite ? [y/N] y
Output #0, ipod, to 'outFile.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 512
    compatible_brands: isomiso2
    track           : 13
    date            : 2013
    album           : Kontor - Chilled Beats
    album_artist    : Various Artists
    artist          : Hardwell vs. Collin McLoughlin
    disc            : 5/6
    title           : test
    encoder         : Lavf55.8.102
    Stream #0:0(und): Audio: aac (libvo_aacenc) (mp4a / 0x6134706D), 44100 Hz, s
tereo, s16, 128 kb/s
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (aac -> libvo_aacenc)
Press [q] to stop, [?] for help
size=    2200kB time=00:02:19.21 bitrate= 129.5kbits/s
video:0kB audio:2176kB subtitle:0 global headers:0kB muxing overhead 1.121632%

F:\>ffprobe outfile.m4a
ffprobe version N-53724-g716dbc7 Copyright (c) 2007-2013 the FFmpeg developers
  built on May 31 2013 23:33:02 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 12.102 / 55. 12.102
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 73.100 /  3. 73.100
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'outfile.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 512
    compatible_brands: isomiso2
    title           : test
    artist          : Hardwell vs. Collin McLoughlin
    album_artist    : Various Artists
    album           : Kontor - Chilled Beats
    date            : 2013
    encoder         : Lavf55.8.102
    track           : 13
  Duration: 00:02:19.24, start: 0.000000, bitrate: 129 kb/s
    Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 12
8 kb/s
    Metadata:
      handler_name    : SoundHandler

F:\>

Attachments (2)

bunny.m4a (576.7 KB ) - added by burek 11 years ago.
before mp3tag
bunny_new.m4a (576.7 KB ) - added by burek 11 years ago.
after mp3tag

Download all attachments as: .zip

Change History (11)

comment:1 by Carl Eugen Hoyos, 11 years ago

Component: FFmpegundetermined
Description: modified (diff)
Keywords: mov added; disc removed
Version: unspecifiedgit-master

Why do you think that mov/m4a supports metadata called "disc"? If you have such a sample please attach it.

comment:2 by Markus, 11 years ago

If i use e.g. mp3tag to update disc tag the output of ffprobe is correct:

F:\>ffprobe outfile.m4a
ffprobe version N-53724-g716dbc7 Copyright (c) 2007-2013 the FFmpeg developers
  built on May 31 2013 23:33:02 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 12.102 / 55. 12.102
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 73.100 /  3. 73.100
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'outfile.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 512
    compatible_brands: isomiso2
    track           : 13
    disc            : 1/3
    album           : Kontor - Chilled Beats
    album_artist    : Various Artists
    artist          : Hardwell vs. Collin McLoughlin
    title           : test
    encoder         : Lavf55.8.102
    date            : 2013
  Duration: 00:02:19.24, start: 0.000000, bitrate: 129 kb/s
    Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 12
8 kb/s
    Metadata:
      handler_name    : SoundHandler

comment:3 by Carl Eugen Hoyos, 11 years ago

Please provide the sample.

in reply to:  3 comment:4 by Markus, 11 years ago

Replying to cehoyos:

Please provide the sample.

You can use any m4a file

comment:5 by burek, 11 years ago

I can confirm this.
I went to download a free sample m4a file: http://developer.longtailvideo.com/trac/browser/trunk/html5/test/files/bunny.m4a?rev=944
Then I downloaded latest mp3tag to test things: http://www.mp3tag.de/en/download.html

Before using mp3tag, the output was:

> ffmpeg -i bunny.m4a
ffmpeg version N-54277-gff130d7 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 30 2013 01:25:12 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 17.100 / 55. 17.100
  libavformat    55. 10.100 / 55. 10.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003eb940] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bunny.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 0
    compatible_brands: M4A mp42isom
    creation_time   : 2008-05-07 11:45:07
    title           : Big Buck Bunny
    gapless_playback: 0
    encoder         : iTunes v7.6.1, QuickTime 7.4.1
    artist          : Blender foundation
    genre           : Animation
    date            : 2008
    lyrics          : The Peach open movie project presents One big rabbit Three rodents And one giant payback Get ready Big Buck Bunny Coming soon www.bigbuckbunny.org
  Duration: 00:00:33.07, start: 0.000000, bitrate: 142 kb/s
    Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
    Metadata:
      creation_time   : 2008-05-07 11:45:07
    Stream #0:1: Video: mjpeg, yuvj444p, 424x600 [SAR 100:100 DAR 53:75], 90k tbr, 90k tbn, 90k tbc
At least one output file must be specified

and after using the mp3tag utility:

> ffmpeg -i bunny_new.m4a
ffmpeg version N-54277-gff130d7 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 30 2013 01:25:12 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 17.100 / 55. 17.100
  libavformat    55. 10.100 / 55. 10.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000024eb980] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bunny_new.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 0
    compatible_brands: M4A mp42isom
    creation_time   : 2008-05-07 11:45:07
    disc            : 1/4
    genre           : Animation
    artist          : Blender foundation
    lyrics          : The Peach open movie project presents One big rabbit Three rodents And one giant payback Get ready Big Buck Bunny Coming soon www.bigbuckbunny.org
    title           : Big Buck Bunny
    encoder         : iTunes v7.6.1, QuickTime 7.4.1
    date            : 2008
    gapless_playback: 0
  Duration: 00:00:33.07, start: 0.000000, bitrate: 142 kb/s
    Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
    Metadata:
      creation_time   : 2008-05-07 11:45:07
    Stream #0:1: Video: mjpeg, yuvj444p, 424x600 [SAR 100:100 DAR 53:75], 90k tbr, 90k tbn, 90k tbc
At least one output file must be specified

by burek, 11 years ago

Attachment: bunny.m4a added

before mp3tag

by burek, 11 years ago

Attachment: bunny_new.m4a added

after mp3tag

comment:6 by Markus, 11 years ago

thx for testing and providing examples!

Last edited 11 years ago by Markus (previous) (diff)

comment:7 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavformat
Owner: set to Carl Eugen Hoyos
Priority: normalwish
Reproduced by developer: set
Status: newopen
Type: defectenhancement

Patch sent to ffmpeg.devel.

comment:8 by Carl Eugen Hoyos, 11 years ago

Resolution: fixed
Status: openclosed

Fixed in fbc0004, thank you for the report!

comment:9 by Markus, 11 years ago

thank you.
tested and OK.

Note: See TracTickets for help on using tickets.