Opened 10 years ago

Closed 5 years ago

#3922 closed defect (fixed)

comment metadata doesn't show on iTunes

Reported by: Anas Qadrei Owned by:
Priority: normal Component: avformat
Version: 2.3 Keywords: metadata
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% ffmpeg -i input.mp3 -y -codec copy -metadata comment="test 123" output.mp3 -report
ffmpeg started on 2014-09-04 at 12:54:54
Report written to "ffmpeg-20140904-125454.log"
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Aug 20 2014 13:28:07 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect
  libavutil      52. 92.100 / 52. 92.100
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 48.100 / 55. 48.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.100 /  4. 11.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mp3, from 'input.mp3':
  Metadata:
    date            : 2002
    TLEN            : 261000
    publisher       : Sony International
    title           : "hhh hhh"
    album           : Mi Alma Y Corazon
    album_artist    : India
    track           : 4
    genre           : أوتاريكا
    artist          : الخند
    encoder         : Lavf55.48.100
  Duration: 00:04:21.28, start: 0.011995, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
Output #0, mp3, to 'output.mp3':
  Metadata:
    TDRL            : 2002
    TLEN            : 261000
    TPUB            : Sony International
    TIT2            : "hhh hhh"
    TALB            : Mi Alma Y Corazon
    TPE2            : India
    TRCK            : 4
    TCON            : أوتاريكا
    TPE1            : الخند
    comment         : test 123
    TSSE            : Lavf55.48.100
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press ÆqÅ to stop, Æ?Å for help
size=    4083kB time=00:04:21.26 bitrate= 128.0kbits/s    
video:0kB audio:4082kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.015812%

content of the report file ffmpeg-20140904-125454.log

ffmpeg started on 2014-09-04 at 12:54:54
Report written to "ffmpeg-20140904-125454.log"
Command line:
./ffmpeg -i input.mp3 -y -codec copy -metadata "comment=test 123" output.mp3 -report
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Aug 20 2014 13:28:07 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect
  libavutil      52. 92.100 / 52. 92.100
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 48.100 / 55. 48.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.100 /  4. 11.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'input.mp3'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-codec' ... matched as option 'codec' (codec name) with argument 'copy'.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'comment=test 123'.
Reading option 'output.mp3' ... matched as output file.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file input.mp3.
Successfully parsed a group of options.
Opening an input file: input.mp3.
[mp3 @ 0x7f814180f000] Format mp3 probed with size=2048 and score=51
[mp3 @ 0x7f814180f000] id3v2 ver:4 flags:00 len:229
[mp3 @ 0x7f814180f000] pad 0 0
[mp3 @ 0x7f814180f000] Before avformat_find_stream_info() pos: 656 bytes read:32768 seeks:0
[mp3 @ 0x7f814180f000] demuxer injecting skip 529
[mp3 @ 0x7f8140804a00] skip 529 samples due to side data
[mp3 @ 0x7f8140804a00] skip 529/1152 samples
[mp3 @ 0x7f814180f000] max_analyze_duration 5000000 reached at 5015510 microseconds
[mp3 @ 0x7f814180f000] After avformat_find_stream_info() pos: 82576 bytes read:98304 seeks:0 frames:194
Input #0, mp3, from 'input.mp3':
  Metadata:
    date            : 2002
    TLEN            : 261000
    publisher       : Sony International
    title           : "hhh hhh"
    album           : Mi Alma Y Corazon
    album_artist    : India
    track           : 4
    genre           : أوتاريكا
    artist          : الخند
    encoder         : Lavf55.48.100
  Duration: 00:04:21.28, start: 0.011995, bitrate: 128 kb/s
    Stream #0:0, 194, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
Successfully opened the file.
Parsing a group of options: output file output.mp3.
Applying option codec (codec name) with argument copy.
Applying option metadata (add metadata) with argument comment=test 123.
Successfully parsed a group of options.
Opening an output file: output.mp3.
Successfully opened the file.
Output #0, mp3, to 'output.mp3':
  Metadata:
    TDRL            : 2002
    TLEN            : 261000
    TPUB            : Sony International
    TIT2            : "hhh hhh"
    TALB            : Mi Alma Y Corazon
    TPE2            : India
    TRCK            : 4
    TCON            : أوتاريكا
    TPE1            : الخند
    comment         : test 123
    TSSE            : Lavf55.48.100
    Stream #0:0, 0, 1/14112000: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
No more output streams to write to, finishing.
size=    4083kB time=00:04:21.26 bitrate= 128.0kbits/s    
video:0kB audio:4082kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.015812%
Input file #0 (input.mp3):
  Input stream #0:0 (audio): 10002 packets read (4180451 bytes); 
  Total: 10002 packets (4180451 bytes) demuxed
Output file #0 (output.mp3):
  Output stream #0:0 (audio): 10002 packets muxed (4180451 bytes); 
  Total: 10002 packets (4180451 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x7f81406245a0] Statistics: 2 seeks, 10004 writeouts
[AVIOContext @ 0x7f81407000c0] Statistics: 4181084 bytes read, 0 seeks
 

I don't get any errors when I set the comment metadata but when I open it with iTunes, I do not see it in the Info -> Comments.

I am using iTunes 11.3.1 on OS X 10.9.4

Change History (3)

comment:1 by Carl Eugen Hoyos, 10 years ago

Component: ffmpegavformat

Is this issue reproducible with current FFmpeg git head?

comment:2 by Anas Qadrei, 10 years ago

I am not sure. I downloaded and used SNOW LEOPARD ABOVE AND/OR INTEL ONLY 64-BIT version from http://ffmpegmac.net/ few days ago.

comment:3 by Elon Musk, 5 years ago

Resolution: fixed
Status: newclosed

Can not reproduce any more.

Note: See TracTickets for help on using tickets.