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
jangk
post Dec 6 2012, 12:15
Post #2





Group: Members
Posts: 36
Joined: 31-December 10
Member No.: 86953



Target for EBU R128 is -23dBFS, but this possibly may be adapted in the future.

Jean
Go to the top of the page
+Quote Post
Surfi
post Dec 6 2012, 15:35
Post #3





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



QUOTE (jangk @ Dec 6 2012, 12:15) *
Target for EBU R128 is -23dBFS, ...
::

Have a look at the loudness column in post #11, 1st list. This must be wrong for e.g.

seq-3341-2-16bit (-32.96 LUFS)
seq-3342-2-16bit (-16.82 LUFS)
seq-3342-3-16bit (-20.05 LUFS)
seq-3342-4-16bit (-24.50 LUFS)

and maybe

seq-3341-6-6channels-WAVEEX-16bit (-23.68 LUFS)
seq-3342-1-16bit (-22.60 LUFS)

too. Or are these rounding errors? I can't believe that.


Greetings, ...

::


Go to the top of the page
+Quote Post
pbelkner
post Dec 6 2012, 17:39
Post #4





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



QUOTE (Surfi @ Dec 6 2012, 15:35) *
Have a look at the loudness column in post #11, 1st list. This must be wrong for e.g.

The expected results for the test cases regarding loudness measurement according to EBU R128 are specified in the respective standards document "Loudness Metering: ‘EBU Mode’ metering to supplement loudness normalisation in accordance with EBU R 128" (http://tech.ebu.ch/docs/tech/tech3341.pdf).

"flac1770" passes all these test cases in the specified range except #6 (which is multi channel):

CODE
           expected |    measured | deviation | track
--------------------+-------------+-----------+-------------------------------
I = -23.0 ±0.1 LUFS | -22.96 LUFS |   0.04 LU | seq-3341-1-16bit.flac
I = -33.0 ±0.1 LUFS | -32.96 LUFS |   0.04 LU | seq-3341-2-16bit.flac
I = -23.0 ±0.1 LUFS | -23.03 LUFS |   0.03 LU | seq-3341-3-16bit-v02.flac
I = -23.0 ±0.1 LUFS | -23.02 LUFS |   0.02 LU | seq-3341-4-16bit-v02.flac
I = -23.0 ±0.1 LUFS | -22.99 LUFS |   0.01 LU | seq-3341-5-16bit-v02.flac
I = -23.0 ±0.1 LUFS | -23.68 LUFS |   0.68 LU | seq-3341-6-6channels-WAVEEX-16bit.flac
I = -23.0 ±0.1 LUFS | -22.99 LUFS |   0.01 LU | seq-3341-7_seq-3342-5-24bit.flac
I = -23.0 ±0.1 LUFS | -23.00 LUFS |   0.00 LU | seq-3341-2011-8_seq-3342-6-24bit-v02.flac

Please note that all these test cases inluding #6 are passed by "r128gain":

CODE
$ r128gain --fast *3341*.flac
SoX sucessfully loaded.
FFmpeg sucessfully loaded.
analyzing ...
  [1/8] "seq-3341-1-16bit.flac": -23.0 LUFS (-0.0 LU)
  [2/8] "seq-3341-2-16bit.flac": -33.0 LUFS (10.0 LU)
  [3/8] "seq-3341-2011-8_seq-3342-6-24bit-v02.flac": -23.0 LUFS (0.0 LU)
  [4/8] "seq-3341-3-16bit-v02.flac": -23.0 LUFS (0.0 LU)
  [5/8] "seq-3341-4-16bit-v02.flac": -23.0 LUFS (0.0 LU)
  [6/8] "seq-3341-5-16bit-v02.flac": -23.0 LUFS (-0.0 LU)
  [7/8] "seq-3341-6-6channels-WAVEEX-16bit.flac": -23.0 LUFS (0.0 LU)
  [8/8] "seq-3341-7_seq-3342-5-24bit.flac": -23.0 LUFS (-0.0 LU)
  [ALBUM]: -23.2 LUFS (0.2 LU)
done.

There are three other test cases specifying the expected result in the file name. These test cases are also passed in the specified range of ±0.1 LUFS:

CODE
           expected |    measured | deviation | track
--------------------+-------------+-----------+-------------------------------
I = -20.0 ±0.1 LUFS | -19.96 LUFS |   0.04 LU | 1kHz Sine -20 LUFS-16bit.flac
I = -26.0 ±0.1 LUFS | -25.96 LUFS |   0.04 LU | 1kHz Sine -26 LUFS-16bit.flac
I = -40.0 ±0.1 LUFS | -39.99 LUFS |   0.01 LU | 1kHz Sine -40 LUFS-16bit.flac

The remaning test cases are w.r.t. the loudness range. These test cases are specified in the respective document "Loudness Range: A measure to supplement loudness normalisation in accordance with EBU R 128" (http://tech.ebu.ch/docs/tech/tech3342.pdf). For these test cases there's no expected value w.r.t loudness.

"flac1770" doesn't support loudness range, i.e. w.r.t. "flac1770" these test cases are maeningless.

Please note that "r128gain" passes these test cases:

CODE
$ ~/r128gain-1.0-alpha-7-3/r128gain --fast --range  *3342*.flac
SoX sucessfully loaded.
FFmpeg sucessfully loaded.
analyzing ...
  [1/6] "seq-3341-2011-8_seq-3342-6-24bit-v02.flac": -23.0 LUFS (0.0 LU)
      range: 15.3 LU
  [2/6] "seq-3341-7_seq-3342-5-24bit.flac": -23.0 LUFS (-0.0 LU)
      range: 4.8 LU
  [3/6] "seq-3342-1-16bit.flac": -22.6 LUFS (-0.4 LU)
      range: 10.0 LU
  [4/6] "seq-3342-2-16bit.flac": -16.8 LUFS (-6.2 LU)
      range: 5.0 LU
  [5/6] "seq-3342-3-16bit.flac": -20.1 LUFS (-2.9 LU)
      range: 20.0 LU
  [6/6] "seq-3342-4-16bit.flac": -24.5 LUFS (1.5 LU)
      range: 15.0 LU
  [ALBUM]: -21.2 LUFS (-1.8 LU)
      range: 16.5 LU
done.
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: 30th September 2014 - 14:51