[FFmpeg-trac] #7969(ffprobe:new): Flac tracknumber is incorrectly identified
FFmpeg
trac at avcodec.org
Sun Jun 23 19:37:47 EEST 2019
#7969: Flac tracknumber is incorrectly identified
-------------------------------------+-------------------------------------
Reporter: rayden | Type: defect
Status: new | Priority: normal
Component: ffprobe | Version:
Keywords: flac | unspecified
metadata | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug: track number is shown incorrectly for flac files.
ffprobe shows tracknumber as track (lowercase), and track as TRACK
(uppercase). Only using metaflac I realised the tags were different
How to reproduce:
Grab a good flac file, and then run:
{{{
$ ffprobe '02 - Angelica.flac'
Input #0, flac, from '02 - Angelica.flac':
Metadata:
ALBUM : Eternity [Peaceville Records-Pony Canyon Inc PCCY-01050]
TRACKTOTAL : 15
ARTIST : Anathema
PERFORMER : Anathema
GENRE : "Doom metal"
DATE : 1996
TITLE : Angelica
track : 02
Duration: 00:05:50.40, start: 0.000000, bitrate: 809 kb/s
Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
$ metaflac --list '02 - Angelica.flac'
...
METADATA block #2
type: 4 (VORBIS_COMMENT)
is last: false
length: 233
vendor string: reference libFLAC 1.3.2 20170101
comments: 8
comment[0]: ALBUM=Eternity [Peaceville Records-Pony Canyon Inc
PCCY-01050]
comment[1]: TRACKNUMBER=02
comment[2]: TRACKTOTAL=15
comment[3]: ARTIST=Anathema
comment[4]: PERFORMER=Anathema
comment[5]: GENRE=Doom Metal
comment[6]: DATE=1996
comment[7]: TITLE=Angelica
}}}
Tracknumber is the correct tag that players use to identify, hence the
following example is just for the purpose of showing the differences:
{{{
$ metaflac --set-tag=track=02 '02 - Angelica.flac'
$ ffprobe -fflags +bitexact 02\ -\ Angelica.flac
Input #0, flac, from '02 - Angelica.flac':
Metadata:
ALBUM : Eternity [Peaceville Records-Pony Canyon Inc
PCCY-01050]
TITLE : Angelica
TRACKTOTAL : 15
ARTIST : Anathema
PERFORMER : Anathema
GENRE : Doom Metal
DATE : 1996
TRACK : 02
Duration: 00:05:50.40, start: 0.000000, bitrate: 809 kb/s
Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
}}}
This is very confusing and I think the tracknumber should show as
TRACKNUMBER (uppercase).
It took me a good while initially to understand why the tags on my flac
album were not being set correctly, and that was because I was using track
as ffprobe was showing it.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7969>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list