QMPlay2 icon indicating copy to clipboard operation
QMPlay2 copied to clipboard

[Feature Request] inside Information tab show encoder info and replay gain if available

Open Amaunator opened this issue 7 years ago • 3 comments

Could be useful to be able to see additional info in Information tab, such as tags: "Tool" (LAME3.97 for example) and "Track gain" : -7.65 dB...for example

It helps to see if album has been normalized and what encoder was used to create it. at the moment I need to fire up Foobar2000 in Wine to check that issue

Amaunator avatar Jan 24 '17 01:01 Amaunator

QMPlay2 reads replaygain tags, so no problem for display. The "Tool" is not a tag and I don't know if FFmpeg can read it. Currently no plans for doing it manually.

zaps166 avatar Jan 24 '17 22:01 zaps166

http://gabriel.mp3-tech.org/mp3infotag.html they are tags apparently but there is a lot of "Jebanie się" involved to implement it without external library... if I'm not mistaken. plus: http://wiki.hydrogenaud.io/index.php?title=MP3#VBRI.2C_XING.2C_and_LAME_headers must be easier way to query.

in case of flac file one of the ways (my quick research shows) is to use metaflac library: "metaflac --list blahblablah.flac" that will spit out ` METADATA block #0 type: 0 (STREAMINFO) is last: false length: 34 minimum blocksize: 4096 samples maximum blocksize: 4096 samples minimum framesize: 14 bytes maximum framesize: 14265 bytes sample_rate: 44100 Hz channels: 2 bits-per-sample: 16 total samples: 97417488 MD5 signature: c861ddccea224a18e612e977860bf379 METADATA block #1 type: 3 (SEEKTABLE) is last: false length: 3978 seek points: 221 point 0: sample_number=0, stream_offset=0, frame_samples=4096

... point 190: sample_number=83787776, stream_offset=232372802, frame_samples=4096

point 220: sample_number=97017856, stream_offset=270266356, frame_samples=4096

METADATA block #2 type: 4 (VORBIS_COMMENT) is last: false length: 305 vendor string: reference libFLAC 1.2.1 20070917 comments: 11 comment[0]: ALBUM=Metal and Hell comment[1]: ARTIST=Kat comment[2]: COMMENT=Track 2 comment[3]: DATE=1985 comment[4]: GENRE=Thrash Metal comment[5]: TITLE=Killer comment[6]: TRACKNUMBER=02 comment[7]: replaygain_album_gain=-10.52 dB comment[8]: replaygain_album_peak=0.987305 comment[9]: replaygain_track_gain=-10.52 dB comment[10]: replaygain_track_peak=0.987305 METADATA block #3 type: 1 (PADDING) is last: true length: 65398 ` then need to extract what we want from it let's say " vendor string: reference libFLAC 1.2.1 20070917"

too much hassle & not worth the time in my opinion

Amaunator avatar Jan 24 '17 22:01 Amaunator

mediainfo can show used encoder from FLAC files, but looks like it can't read it from MP3.

Doing it w/o external library probably is not so difficult (you gave me a specs), but there is a lot of different formats (FLAC, OGG Vorbis, MP3, etc.).

I'll check taglib soon - maybe it can read this...


For MP3 just open it in okteta and you'll see e.g. LAME3.93 somewhere in bitstream (begin and/or end of file). No need for Foobar via Wine 😄

zaps166 avatar Jan 24 '17 23:01 zaps166