IPB

Welcome Guest ( Log In | Register )

FLAC1170: a ITU BS.1770 loudness scanner for FLAC
pbelkner
post Dec 2 2012, 17:26
Post #1





Group: Members
Posts: 412
Joined: 13-June 10
Member No.: 81467



FLAC1770 is a ITU BS.1770 loudness scanner and tagger for FLAC. For tagging it should do exactly tha same as "metaflac".

Binaries are available for Win32, Linux, and Linux64:
CODE
$ flac1770
FLAC1170 v0.1.0, a ITU BS.1770 loudness scanner for FLAC.

Usage: flac1770 [options] <files>

Options:
  --help: dispaly this usage information and exit.
  --version: dispaly version information and exit.
  --tag: write replay gain tags to the input files (off).
  --r128: use EBU R128 compliant presets (default).
  --a85: use ATSC A/85 compliant presets.
  --rg: use ReplayGain compatible presets.
  --reference=<float>: set reference loudness (-23.0).
  --gate=<float>: set BS.1770 gate (-10.0).
  --partition=<int>: set BS.1770 partition (4).
  --unit=LU|LK|dB: use the respective loudness unit (LU).
  --progress=on|off: display progress percentage (on).
  --true-peak=fast|medium|best|off: determine inter-sample peaks (off).

Some examples:
  • Analyze some individual tracks:
    CODE
    flac1770 track1.flac track2.flac track3.flac


  • Analyze some individual tracks and write RG tags to them:
    CODE
    flac1770 --tag track1.flac track2.flac track3.flac


  • Analyze all tracks from a folder:
    CODE
    flac1770 dir/*.flac


  • Analyze all tracks from a folder and write RG tags to them:
    CODE
    flac1770 --tag dir/*.flac


  • Analyze all tracks from a folder and write RG tags to them, compatible with standard ReplayGain:
    CODE
    flac1770 --rg --tag dir/*.flac


  • Analyze all tracks from a folder, including inter-sample peak determination, and write RG tags to them, compatible with standard ReplayGain:
    CODE
    flac1770 --rg --true-peak=fast --tag dir/*.flac


This post has been edited by pbelkner: Dec 2 2012, 17:30
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Surfi
post Dec 4 2012, 12:17
Post #2





Group: Members
Posts: 175
Joined: 1-October 04
Member No.: 17420



::

... so why that many decimals?
And why does flac1770 tag the positive algebraic sign?
(db - dB, REPLAYGAIN_ALGORITHM tag)

I know it's a bit nitpicking but I wish it would be more consistent ... and I hope those differences really result from rounding and are not caused by SOX's automatic dithering.

::
Go to the top of the page
+Quote Post
pbelkner
post Dec 4 2012, 18:06
Post #3





Group: Members
Posts: 412
Joined: 13-June 10
Member No.: 81467



QUOTE (Surfi @ Dec 4 2012, 12:17) *
I know it's a bit nitpicking but I wish it would be more consistent ... and I hope those differences really result from rounding and are not caused by SOX's automatic dithering.

I have to admit that there are considerable differences between "r128gain" and "flac1770", but I think "flac1770" is doing it right:
  1. Let "flac1770" run on the EBU R128 test vector converted to FLAC in order to see that it reproduces the expected results:

    CODE
    $ flac1770 *.flac
        loudness |      gain |       peak | track
    -------------+-----------+------------+-------------------------------
    -19.96 LUFS |  -3.04 LU |-19.94 dBFS | 1kHz Sine -20 LUFS-16bit.flac
    -25.96 LUFS |   2.96 LU |-25.93 dBFS | 1kHz Sine -26 LUFS-16bit.flac
    -39.99 LUFS |  16.99 LU |-39.78 dBFS | 1kHz Sine -40 LUFS-16bit.flac
    -22.96 LUFS |  -0.04 LU |-22.94 dBFS | seq-3341-1-16bit.flac
    -32.96 LUFS |   9.96 LU |-32.75 dBFS | seq-3341-2-16bit.flac
    -23.00 LUFS |   0.00 LU | -2.64 dBFS | seq-3341-2011-8_seq-3342-6-24bit-v02.flac
    -23.03 LUFS |   0.03 LU |-23.00 dBFS | seq-3341-3-16bit-v02.flac
    -23.02 LUFS |   0.02 LU |-23.00 dBFS | seq-3341-4-16bit-v02.flac
    -22.99 LUFS |  -0.01 LU |-20.00 dBFS | seq-3341-5-16bit-v02.flac
    -23.68 LUFS |   0.68 LU |-24.00 dBFS | seq-3341-6-6channels-WAVEEX-16bit.flac
    -22.99 LUFS |  -0.01 LU | -8.91 dBFS | seq-3341-7_seq-3342-5-24bit.flac
    -22.60 LUFS |  -0.40 LU |-20.00 dBFS | seq-3342-1-16bit.flac
    -16.82 LUFS |  -6.18 LU |-15.00 dBFS | seq-3342-2-16bit.flac
    -20.05 LUFS |  -2.95 LU |-20.00 dBFS | seq-3342-3-16bit.flac
    -24.50 LUFS |   1.50 LU |-20.00 dBFS | seq-3342-4-16bit.flac
    -------------+-----------+------------+-------------------------------
    -21.99 LUFS |  -1.01 LU | -2.64 dBFS | album

  2. Change the reference loudness from (implicit) -23.0 LU to -18.0 LU which is generally assumed to be the equivalent of ReplayGain's reference loudness of 89.0 dB and observe that the absolute loudness stays the same (indeed it is the same) but the gain has changed by 5.0 dB as expected:

    CODE
    $ flac1770 --reference=-18.0 *.flac
        loudness |      gain |       peak | track
    -------------+-----------+------------+-------------------------------
    -19.96 LUFS |   1.96 LU |-19.94 dBFS | 1kHz Sine -20 LUFS-16bit.flac
    -25.96 LUFS |   7.96 LU |-25.93 dBFS | 1kHz Sine -26 LUFS-16bit.flac
    -39.99 LUFS |  21.99 LU |-39.78 dBFS | 1kHz Sine -40 LUFS-16bit.flac
    -22.96 LUFS |   4.96 LU |-22.94 dBFS | seq-3341-1-16bit.flac
    -32.96 LUFS |  14.96 LU |-32.75 dBFS | seq-3341-2-16bit.flac
    -23.00 LUFS |   5.00 LU | -2.64 dBFS | seq-3341-2011-8_seq-3342-6-24bit-v02.flac
    -23.03 LUFS |   5.03 LU |-23.00 dBFS | seq-3341-3-16bit-v02.flac
    -23.02 LUFS |   5.02 LU |-23.00 dBFS | seq-3341-4-16bit-v02.flac
    -22.99 LUFS |   4.99 LU |-20.00 dBFS | seq-3341-5-16bit-v02.flac
    -23.68 LUFS |   5.68 LU |-24.00 dBFS | seq-3341-6-6channels-WAVEEX-16bit.flac
    -22.99 LUFS |   4.99 LU | -8.91 dBFS | seq-3341-7_seq-3342-5-24bit.flac
    -22.60 LUFS |   4.60 LU |-20.00 dBFS | seq-3342-1-16bit.flac
    -16.82 LUFS |  -1.18 LU |-15.00 dBFS | seq-3342-2-16bit.flac
    -20.05 LUFS |   2.05 LU |-20.00 dBFS | seq-3342-3-16bit.flac
    -24.50 LUFS |   6.50 LU |-20.00 dBFS | seq-3342-4-16bit.flac
    -------------+-----------+------------+-------------------------------
    -21.99 LUFS |   3.99 LU | -2.64 dBFS | album

  3. Finally switch to ReplayGain which implies a reference loudness of -18.0 LU and absolute values transformed according to -18.0 LU (ITU BS.1770) == 89.0 dB (ReplayGain). As expected, 1) the absolute values are changed accordingly but 2) the gain is not altered:

    CODE
    $ flac1770 --rg *.flac
        loudness |      gain |       peak | track
    -------------+-----------+------------+-------------------------------
      87.04 dBFS |   1.96 dB |-19.94 dBFS | 1kHz Sine -20 LUFS-16bit.flac
      81.04 dBFS |   7.96 dB |-25.93 dBFS | 1kHz Sine -26 LUFS-16bit.flac
      67.01 dBFS |  21.99 dB |-39.78 dBFS | 1kHz Sine -40 LUFS-16bit.flac
      84.04 dBFS |   4.96 dB |-22.94 dBFS | seq-3341-1-16bit.flac
      74.04 dBFS |  14.96 dB |-32.75 dBFS | seq-3341-2-16bit.flac
      84.00 dBFS |   5.00 dB | -2.64 dBFS | seq-3341-2011-8_seq-3342-6-24bit-v02.flac
      83.97 dBFS |   5.03 dB |-23.00 dBFS | seq-3341-3-16bit-v02.flac
      83.98 dBFS |   5.02 dB |-23.00 dBFS | seq-3341-4-16bit-v02.flac
      84.01 dBFS |   4.99 dB |-20.00 dBFS | seq-3341-5-16bit-v02.flac
      83.32 dBFS |   5.68 dB |-24.00 dBFS | seq-3341-6-6channels-WAVEEX-16bit.flac
      84.01 dBFS |   4.99 dB | -8.91 dBFS | seq-3341-7_seq-3342-5-24bit.flac
      84.40 dBFS |   4.60 dB |-20.00 dBFS | seq-3342-1-16bit.flac
      90.18 dBFS |  -1.18 dB |-15.00 dBFS | seq-3342-2-16bit.flac
      86.95 dBFS |   2.05 dB |-20.00 dBFS | seq-3342-3-16bit.flac
      82.50 dBFS |   6.50 dB |-20.00 dBFS | seq-3342-4-16bit.flac
    -------------+-----------+------------+-------------------------------
      85.01 dBFS |   3.99 dB | -2.64 dBFS | album

    The only thing left is that the unit for the absolute loudness in ReplayGain world should be dB instead of dBFS.
Go to the top of the page
+Quote Post

Posts in this topic
- pbelkner   FLAC1170: a ITU BS.1770 loudness scanner for FLAC   Dec 2 2012, 17:26
- - eahm   Thanks for the software. Shouldn't the / be ...   Dec 2 2012, 17:32
|- - pbelkner   QUOTE (eahm @ Dec 2 2012, 17:32) Shouldn...   Dec 2 2012, 17:42
|- - pbelkner   QUOTE (eahm @ Dec 2 2012, 17:32) Also, wh...   Dec 2 2012, 18:38
|- - Surfi   QUOTE (pbelkner @ Dec 2 2012, 18:38) I do...   Dec 3 2012, 21:40
|- - pbelkner   QUOTE (Surfi @ Dec 3 2012, 21:40) from fo...   Dec 4 2012, 08:22
|- - Surfi   QUOTE (pbelkner @ Dec 4 2012, 08:22) flac...   Dec 4 2012, 11:31
- - Wombat   Hi, finally something to replace metaflac while it...   Dec 3 2012, 03:18
- - skamp   The first two thumbs show the same values, except ...   Dec 4 2012, 11:46
- - Surfi   :: ... so why that many decimals? And why does f...   Dec 4 2012, 12:17
|- - pbelkner   QUOTE (Surfi @ Dec 4 2012, 12:17) I know ...   Dec 4 2012, 18:06
- - Surfi   :: Thanks for answering, all of your tools and yo...   Dec 4 2012, 20:30
- - leo-bogert   Very nice, thank you. This is a component which I...   Dec 4 2012, 21:55
- - Triza   I use loudness command from libebur128. Works grea...   Dec 5 2012, 00:33
|- - Surfi   QUOTE (Triza @ Dec 5 2012, 00:33) That us...   Dec 5 2012, 07:58
|- - Triza   I have read through libebur128 thread and tested a...   Dec 5 2012, 21:28
|- - Surfi   QUOTE (Triza @ Dec 5 2012, 21:28) ... Qua...   Dec 6 2012, 11:29
- - jangk   Target for EBU R128 is -23dBFS, but this possibly ...   Dec 6 2012, 12:15
|- - Surfi   QUOTE (jangk @ Dec 6 2012, 12:15) Target ...   Dec 6 2012, 15:35
|- - pbelkner   QUOTE (Surfi @ Dec 6 2012, 15:35) Have a ...   Dec 6 2012, 17:39
- - Singtoh   Hello All, Just stumbled upon the r128gain progra...   Dec 6 2012, 13:22
- - Surfi   :: Thank you very much for clarifying. ::   Dec 6 2012, 21:02
- - Singtoh   Hello All Again, I am not sure if this is the cor...   Dec 7 2012, 05:15
|- - pbelkner   QUOTE (Singtoh @ Dec 7 2012, 05:15) 3. Th...   Dec 7 2012, 07:42
- - Singtoh   Sure thing, and thanks again for your hard work on...   Dec 7 2012, 07:59
|- - pbelkner   QUOTE (Singtoh @ Dec 7 2012, 08:59) Sure ...   Dec 7 2012, 17:42
- - pbelkner   FLAC1770 v0.2.0 released What's new? Test cas...   Dec 7 2012, 20:15
|- - pbelkner   FLAC1770 v0.3.0 released What's new? Computat...   Dec 9 2012, 21:47
- - Wombat   QUOTE (pbelkner @ Dec 7 2012, 21:15) FLAC...   Dec 7 2012, 20:23
|- - pbelkner   QUOTE (Wombat @ Dec 7 2012, 21:23) How to...   Dec 7 2012, 21:53
- - Wombat   QUOTE (pbelkner @ Dec 7 2012, 22:53) By u...   Dec 7 2012, 23:24
- - JJZolx   As a casual follower of these threads, is there a ...   Dec 8 2012, 06:01
|- - pbelkner   QUOTE (JJZolx @ Dec 8 2012, 07:01) As a c...   Dec 8 2012, 07:33
- - pbelkner   FLAC1770 v0.4.0 released Download: https://sourcef...   Dec 12 2012, 18:28
- - pbelkner   FLAC1770 v0.4.1 released Download: https://sourcef...   Dec 19 2012, 18:58


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 31st October 2014 - 17:01