IPB

Welcome Guest ( Log In | Register )

23 Pages V  « < 12 13 14 15 16 > »   
Closed TopicStart new topic
R128GAIN: An EBU R128 compliant loudness scanner
pbelkner
post Jan 6 2012, 17:23
Post #326





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



QUOTE (gb24 @ Jan 5 2012, 03:12) *
Please forgive me if I missed it, but is there a command line environment variable provided for the actual LUFS value, e.g., %LUFS%?


Version 0.9.3 released:
Home: http://r128gain.sourceforge.net/
Download: http://sourceforge.net/projects/r128gain/files/
What's new?
  • Provided four more environment variables for the command option:

    • %TL%: The track loudness relative to full scale.
    • %TLDB%: The track loudness relative to full scale in dB/LUFS.
    • %AL%: The album loudness relative to full scale.
    • %ALDB%: The album loudness relative to full scale in dB/LUFS.
Go to the top of the page
+Quote Post
gb24
post Jan 6 2012, 20:41
Post #327





Group: Members
Posts: 7
Joined: 5-January 12
From: US
Member No.: 96245



QUOTE (pbelkner @ Jan 6 2012, 11:23) *
  • Provided four more environment variables for the command option:
    • %TL%: The track loudness relative to full scale.
    • %TLDB%: The track loudness relative to full scale in dB/LUFS.
    • %AL%: The album loudness relative to full scale.
    • %ALDB%: The album loudness relative to full scale in dB/LUFS.

Excellent! Thank you for making this great tool available to the community.
Go to the top of the page
+Quote Post
Zao
post Jan 6 2012, 23:50
Post #328





Group: Members (Donating)
Posts: 930
Joined: 25-September 03
From: Ume, Sweden
Member No.: 9001



You couldn't have chosen something slightly more unique for the environment variables?
At least put a prefix on them or something to avoid collisions.


--------------------
Zao shang yong zao nong zao rang zao ren zao.
To, early in the morning, use a chisel to build a bathtub makes impatient people hot-tempered.
Go to the top of the page
+Quote Post
gb24
post Jan 9 2012, 02:32
Post #329





Group: Members
Posts: 7
Joined: 5-January 12
From: US
Member No.: 96245



QUOTE (Zao @ Jan 6 2012, 17:50) *
You couldn't have chosen something slightly more unique for the environment variables?
At least put a prefix on them or something to avoid collisions.

Is this causing a specific problem which you cannot work around? Is there a reason for your focus on this small detail given all the functionality of this free program?
Go to the top of the page
+Quote Post
gb24
post Jan 23 2012, 18:19
Post #330





Group: Members
Posts: 7
Joined: 5-January 12
From: US
Member No.: 96245



One more I may have missed: is there a command line environment variable provided for the Loudness Range (LRA) in LU?

With this additional data, the scanner would provide all three measures in R128. For example, for a given track would the following be correct?
    1. "Programme Loudness" in LUFS (%TLDB%)
    2. "Loudness Range" in LU ( ? )
    3. "True Peak Level" in dBTP (%TPDB%)

Thank you.

This post has been edited by gb24: Jan 23 2012, 18:20
Go to the top of the page
+Quote Post
pbelkner
post Jan 24 2012, 09:23
Post #331





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



QUOTE (gb24 @ Jan 23 2012, 18:19) *
One more I may have missed: is there a command line environment variable provided for the Loudness Range (LRA) in LU?

There's no range computing in R128GAIN yet, that's not only a matter of an environment variable.

QUOTE (gb24 @ Jan 23 2012, 18:19) *
With this additional data, the scanner would provide all three measures in R128. For example, for a given track would the following be correct?
    1. "Programme Loudness" in LUFS (%TLDB%)
    2. "Loudness Range" in LU ( ? )
    3. "True Peak Level" in dBTP (%TPDB%)

Thank you.

On the other hand there's a LU measure: %TGDB% holds the gain (in dB / LU) you have to apply in order to correct the loundess to -23 LUFS.
Go to the top of the page
+Quote Post
gb24
post Jan 25 2012, 16:22
Post #332





Group: Members
Posts: 7
Joined: 5-January 12
From: US
Member No.: 96245



Please consider adding Loudness Range (LRA). The scanner would then provide all three R128 descriptors, for example:

- Programme Loudness (%TLDB%)
- Loudness Range ( ? )
- True Peak Level (is this %TPDB%?)

Thank you.
Go to the top of the page
+Quote Post
pbelkner
post Jan 25 2012, 18:16
Post #333





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



QUOTE (gb24 @ Jan 25 2012, 16:22) *
Please consider adding Loudness Range (LRA). The scanner would then provide all three R128 descriptors

Yep.

But next in the pipeline is a GTK+ GUI for Linux. Here's some preview:


QUOTE (gb24 @ Jan 25 2012, 16:22) *
- True Peak Level (is this %TPDB%?)

Yes.
Go to the top of the page
+Quote Post
gepebril
post Feb 1 2012, 13:46
Post #334





Group: Members
Posts: 1
Joined: 1-February 12
Member No.: 96852



Hi there,

I'm not realy an audio guru, but for a project we have to make audio EBU-R128 compliant.
As I favour Open source solutions I would like to use R128GAIN, what I don't understand from the documentation is:
1) Can R128GAIN process audio so the result is EBU-R128 compliant
2) If so. We have the following specifications, and can they be achieved with R128GAIN
CODE
Parameter                      Meterindication  Value
Integrated Loudness            I                 -23 LUFS
Maximum True Peak Level        dBTP              -1 dBTP
Maximum Momentary Loudness     M                 +8 LU
Maximum Short Term Loudness    S                 No limitation
Loudness Range                 LRA               No limitation

3) Can one file be made EBU-R128 complaint, or can it only be as range of files in e.g. a play-out list
4) What file formats can be used as input (format, bitrate, samplerate) and what can be output formats (format, bitrate, samplerate)
Thanks in advance.

Yours sincerely,

Albert

This post has been edited by gepebril: Feb 1 2012, 13:49
Go to the top of the page
+Quote Post
pbelkner
post Feb 1 2012, 15:35
Post #335





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



QUOTE (gepebril @ Feb 1 2012, 13:46) *
1) Can R128GAIN process audio so the result is EBU-R128 compliant

In principle yes, but currently not with respect to all measures (cf. answers to the following questions.)

QUOTE (gepebril @ Feb 1 2012, 13:46) *
2) If so. We have the following specifications, and can they be achieved with R128GAIN
CODE
Parameter                      Meterindication  Value
Integrated Loudness            I                 -23 LUFS
Maximum True Peak Level        dBTP              -1 dBTP
Maximum Momentary Loudness     M                 +8 LU
Maximum Short Term Loudness    S                 No limitation
Loudness Range                 LRA               No limitation

Integrated loudness: Yes, via the command feature and using the default sox-command.
Maximum True Peak: R128GAIN is able to measure true peak but has no build in way to correct it. But most likely in almost all cases you will see that after having normalized to -23 LUFS your true peak requirement is fulfilled.
Maximum Momentary Loudness is not measured yet.
Maximum Short Term Loudness is not measured yet.
Loudness Range is not measured yet but should be available sometimes soon (cf. request by gb24 above.)

QUOTE (gepebril @ Feb 1 2012, 13:46) *
3) Can one file be made EBU-R128 complaint, or can it only be as range of files in e.g. a play-out list

You can use it on a file by file basis as well as on a range of files.

QUOTE (gepebril @ Feb 1 2012, 13:46) *
4) What file formats can be used as input (format, bitrate, samplerate) and what can be output formats (format, bitrate, samplerate)

After having upgraded to full versions of SoX (http://sox.sourceforge.net/) and FFmpeg (http://ffmpeg.zeranoe.com/builds/win32/shared/) there should be no practical restriction.
Go to the top of the page
+Quote Post
pbelkner
post Feb 4 2012, 18:54
Post #336





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



QUOTE (gb24 @ Jan 25 2012, 16:22) *
Please consider adding Loudness Range (LRA). The scanner would then provide all three R128 descriptors

Version 0.9.4 released:
Home: http://r128gain.sourceforge.net/
Download: http://sourceforge.net/projects/r128gain/files/
What's new?
  • Implemented the EBU R128 loudness range (LRA) algorithm (not available for the ReplayGain and BS.1770 sequence algorithms.)
  • Provided four respective environment variables for the command option:
    • %TR%: The track loudness range.
    • %TRDB%: The track loudness range in dB/LU.
    • %AR%: The album loudness range.
    • %ARDB%: The album loudness range in dB/LU.
  • The API of LIB1770 (implementing the loudness range algorithm) has slightly changed in order to allow for providing the length of a block (either 400 ms or 3000 ms.)
Test cases for Loudness Range (tech3342.pdf):

CODE
$ r128gain ~/ebu-loudness-test-setv03/*3342*.wav
SoX successfully loaded.
FFmpeg successfully loaded.
analyzing ...
  seq-3341-2011-8_seq-3342-6-24bit-v02.wav (1/6): -23.0 LUFS, 0.0 LU (peak: 0.737823: -2.6 dBFS, range: 15.3 LU)
  seq-3341-7_seq-3342-5-24bit.wav (2/6): -23.0 LUFS, 0.0 LU (peak: 0.358340: -8.9 dBFS, range: 6.3 LU)
  seq-3342-1-16bit.wav (3/6): -23.0 LUFS, 0.0 LU (peak: 0.100088: -20.0 dBFS, range: 10.0 LU)
  seq-3342-2-16bit.wav (4/6): -23.0 LUFS, 0.0 LU (peak: 0.177971: -15.0 dBFS, range: 5.0 LU)
  seq-3342-3-16bit.wav (5/6): -23.0 LUFS, 0.0 LU (peak: 0.100088: -20.0 dBFS, range: 20.0 LU)
  seq-3342-4-16bit.wav (6/6): -23.0 LUFS, 0.0 LU (peak: 0.100073: -20.0 dBFS, range: 15.0 LU)
  ALBUM: -23.0 LUFS, 0.0 LU (peak: 0.737823: -2.6 dBFS, range: 17.1 LU)


This post has been edited by pbelkner: Feb 4 2012, 19:13
Go to the top of the page
+Quote Post
gb24
post Feb 6 2012, 19:29
Post #337





Group: Members
Posts: 7
Joined: 5-January 12
From: US
Member No.: 96245



Thank you for incorporating LRA, Peter. I think you now have a great tool for batch processing of audio files per EBU R128.

I am not aware of any other free or open source software which provides all this functionality.

This post has been edited by gb24: Feb 6 2012, 19:30
Go to the top of the page
+Quote Post
pbelkner
post Feb 7 2012, 19:46
Post #338





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



Version 0.9.5 (source / win32 binary) released:
Home: http://r128gain.sourceforge.net/
Download: http://sourceforge.net/projects/r128gain/files/
What's new?
  • Fixed a bug in 0.9.4 that only either the loudness or the loudness range could be computed but not both together. The result was that in almost all practical cases the loudness defaulted to -23.0 LUFS.
The Linux binary will follow in a few days.

Test cases for Loudness Range (tech3342.pdf):

CODE
$ r128gain ~/ebu-loudness-test-setv03/*3342*.wav
SoX successfully loaded.
FFmpeg successfully loaded.
analyzing ...
  seq-3341-2011-8_seq-3342-6-24bit-v02.wav (1/6): -23.0 LUFS, 0.0 LU (peak: 0.737823: -2.6 dBFS, range: 15.3 LU)
  seq-3341-7_seq-3342-5-24bit.wav (2/6): -23.0 LUFS, 0.0 LU (peak: 0.358340: -8.9 dBFS, range: 6.3 LU)
  seq-3342-1-16bit.wav (3/6): -22.6 LUFS, -0.4 LU (peak: 0.100088: -20.0 dBFS, range: 10.0 LU)
  seq-3342-2-16bit.wav (4/6): -16.8 LUFS, -6.2 LU (peak: 0.177971: -15.0 dBFS, range: 5.0 LU)
  seq-3342-3-16bit.wav (5/6): -20.0 LUFS, -3.0 LU (peak: 0.100088: -20.0 dBFS, range: 20.0 LU)
  seq-3342-4-16bit.wav (6/6): -24.5 LUFS, 1.5 LU (peak: 0.100073: -20.0 dBFS, range: 15.0 LU)
  ALBUM: -21.2 LUFS, -1.8 LU (peak: 0.737823: -2.6 dBFS, range: 17.1 LU)

Go to the top of the page
+Quote Post
pbelkner
post Feb 10 2012, 23:20
Post #339





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



QUOTE (pbelkner @ Feb 7 2012, 19:46) *
The Linux binary will follow in a few days.

The 0.9.5 Linux binary has been published.
Go to the top of the page
+Quote Post
pbelkner
post Feb 11 2012, 19:10
Post #340





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



Version 0.9.6 released:
Home: http://r128gain.sourceforge.net/
Download: http://sourceforge.net/projects/r128gain/files/
What's new?
  • According to FFmpeg.org: FFmpeg development has gone into OVERDRIVE. As a consequence R128GAIN wasn't compiling any longer using the latest FFmpeg versions. This release ports R128GAIN to the latest FFmpeg API.
  • Added a command line and GUI option to allow choosing between the EBU R128-2 (current, dating from 2011) and EBU R128-1 (former, dating from 2010) standards.


  • The release requires "avformat-54.dll" and "avcodec-54.dll", and is now again in line with the latest FFmpeg builds from http://ffmpeg.zeranoe.com/builds/win32/shared/.


This post has been edited by pbelkner: Feb 11 2012, 19:57
Go to the top of the page
+Quote Post
bacondither
post Feb 13 2012, 22:38
Post #341





Group: Members
Posts: 3
Joined: 13-February 12
Member No.: 97138



With every ogg vorbis file i try to process i get "Application provided invalid, non monotonically increasing dts
to muxer in stream"
An example of a test ogg vorbis file encoded with aotuv 6.03:
CODE
SetDlgItemURL successfully loaded.
SoX successfully loaded.
FFmpeg successfully loaded.
[ogg @ 02197FE0] Format ogg probed with size=2048 and score=100
[ogg @ 02197FE0] Page at 58 is missing granule
[ogg @ 02197FE0] ti bytes of comment header remain
[ogg @ 02197FE0] All info found
[ogg @ 02197FE0] Format ogg probed with size=2048 and score=100
[ogg @ 02197FE0] Page at 58 is missing granule
[ogg @ 02197FE0] ti bytes of comment header remain
[ogg @ 02197FE0] All info found
analyzing ...
test.ogg (1/1): -10.3 LUFS,
-12.7 LU (peak: 1.097097: 0.8 dBFS, range: 7.6 LU)
ALBUM: -10.3 LUFS, -12.7 LU (peak: 1.097097: 0.8 dBFS, range: 7.6 LU)
writing ...
test.ogg (1/1) ... [ogg @ 0
220F9A0] Format ogg probed with size=2048 and score=100
[ogg @ 0220F9A0] Page at 58 is missing granule
[ogg @ 0220F9A0] ti bytes of comment header remain
[ogg @ 0220F9A0] All info found
[ogg @ 0220FE80] Application provided invalid, non monotonically increasing dts
to muxer in stream 0: 13760 >= 13760
error.
Done. Hit enter to continue ...

The resulting outputted file from the operation above is a 58 byte .ogg file with this content:
CODE
OggS  ±vorbis D  


Go to the top of the page
+Quote Post
romor
post Feb 13 2012, 23:19
Post #342





Group: Members
Posts: 682
Joined: 16-January 09
Member No.: 65630



Interestingly, I got same errors earlier today while doing DVD (M2V+LPCM) to MKV (x264+OGG) with Avidemux, which was handy at the moment. Result was fine thou, audio seemed fine after I checked, as I was surprised by misleading DTS errors
Seems like some ffmpeg issue


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
pbelkner
post Feb 14 2012, 08:24
Post #343





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



QUOTE (bacondither @ Feb 13 2012, 22:38) *
With every ogg vorbis file i try to process i get "Application provided invalid, non monotonically increasing dts
to muxer in stream"
An example of a test ogg vorbis file encoded with aotuv 6.03:
CODE
SetDlgItemURL successfully loaded.
SoX successfully loaded.
FFmpeg successfully loaded.
[ogg @ 02197FE0] Format ogg probed with size=2048 and score=100
[ogg @ 02197FE0] Page at 58 is missing granule
[ogg @ 02197FE0] ti bytes of comment header remain
[ogg @ 02197FE0] All info found
[ogg @ 02197FE0] Format ogg probed with size=2048 and score=100
[ogg @ 02197FE0] Page at 58 is missing granule
[ogg @ 02197FE0] ti bytes of comment header remain
[ogg @ 02197FE0] All info found
analyzing ...
test.ogg (1/1): -10.3 LUFS,
-12.7 LU (peak: 1.097097: 0.8 dBFS, range: 7.6 LU)
ALBUM: -10.3 LUFS, -12.7 LU (peak: 1.097097: 0.8 dBFS, range: 7.6 LU)
writing ...
test.ogg (1/1) ... [ogg @ 0
220F9A0] Format ogg probed with size=2048 and score=100
[ogg @ 0220F9A0] Page at 58 is missing granule
[ogg @ 0220F9A0] ti bytes of comment header remain
[ogg @ 0220F9A0] All info found
[ogg @ 0220FE80] Application provided invalid, non monotonically increasing dts
to muxer in stream 0: 13760 >= 13760
error.

This seems to be an FFmpeg error. FFmpeg is currently under heavy development.

A workaround is making FFmpeg unusable by e.g. renaming "avcodec.dll" from the "r128gain-tools" directory to "avcodec.dll.X". In this case R128GAIN will fall back to SoX.
Go to the top of the page
+Quote Post
pbelkner
post Feb 15 2012, 21:00
Post #344





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



QUOTE (bacondither @ Feb 13 2012, 22:38) *
With every ogg vorbis file i try to process i get "Application provided invalid, non monotonically increasing dts
to muxer in stream"

I've just uploaded a slightly modified version which should fix the issue (source code and win32 binary): http://sourceforge.net/projects/r128gain/files/
Go to the top of the page
+Quote Post
bacondither
post Feb 16 2012, 08:38
Post #345





Group: Members
Posts: 3
Joined: 13-February 12
Member No.: 97138



Vorbis files works fine for me now. cool.gif
Go to the top of the page
+Quote Post
pbelkner
post Feb 18 2012, 07:18
Post #346





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



QUOTE (pbelkner @ Feb 15 2012, 21:00) *
I've just uploaded a slightly modified version which should fix the issue (source code and win32 binary): http://sourceforge.net/projects/r128gain/files/

QUOTE (bacondither @ Feb 16 2012, 08:38) *
Vorbis files works fine for me now. cool.gif

The Linux binary is now available as well.

Go to the top of the page
+Quote Post
pbelkner
post Mar 18 2012, 19:35
Post #347





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



Version 0.9.6-3 released:
Home: http://r128gain.sourceforge.net/
Download: http://sourceforge.net/projects/r128gain/files/
What's new?
  • Fixes a bug that under certain circumstances a file was written twice.
  • Upgraded to SoX 14.4.0.
Go to the top of the page
+Quote Post
rojgreen
post Mar 28 2012, 18:37
Post #348





Group: Members
Posts: 6
Joined: 28-March 12
Member No.: 98159



HI - new user. I don't mean to sound dumb, but is there a way to offset the resulting gain before it is written to a new file?

The reason I ask, is our company (TV broadcaster) has decided to adopt a reference of -24db based on itu1770 for mixed television programmes, and I was wondering if this tool would be of any use here. -23db is within our delivery spec, but out of curiosity (just me playing around) i wondered if this tool could be used in our commercial suites to make a gain adjusted copy of the final .wav files that will comply with our delivery spec.
Go to the top of the page
+Quote Post
rojgreen
post Mar 28 2012, 19:35
Post #349





Group: Members
Posts: 6
Joined: 28-March 12
Member No.: 98159



QUOTE (rojgreen @ Mar 29 2012, 05:37) *
HI - new user. I don't mean to sound dumb, but is there a way to offset the resulting gain before it is written to a new file?

The reason I ask, is our company (TV broadcaster) has decided to adopt a reference of -24db based on itu1770 for mixed television programmes, and I was wondering if this tool would be of any use here. -23db is within our delivery spec, but out of curiosity (just me playing around) i wondered if this tool could be used in our commercial suites to make a gain adjusted copy of the final .wav files that will comply with our delivery spec.



also, (again, newbie question) can I pass the full -sox comand line to the program (through windows .bat file or shortcut)? I tried --command=sox "%TRACK%" "%DN%\%BN%.wav" gain "%TGDB%" but all thouse quotes seem to confuse the .bat file

This post has been edited by rojgreen: Mar 28 2012, 19:36
Go to the top of the page
+Quote Post
pbelkner
post Mar 29 2012, 07:05
Post #350





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



QUOTE (rojgreen @ Mar 28 2012, 18:37) *
The reason I ask, is our company (TV broadcaster) has decided to adopt a reference of -24db based on itu1770 for mixed television programmes, and I was wondering if this tool would be of any use here. -23db is within our delivery spec, but out of curiosity (just me playing around) i wondered if this tool could be used in our commercial suites to make a gain adjusted copy of the final .wav files that will comply with our delivery spec.

There's an undocumented "--preamp=<float>" option. The preamp is in dB relative to -23 LUFS. i.e. in your case -1.0.

QUOTE (rojgreen @ Mar 28 2012, 19:35) *
also, (again, newbie question) can I pass the full -sox comand line to the program (through windows .bat file or shortcut)? I tried --command=sox "%TRACK%" "%DN%\%BN%.wav" gain "%TGDB%" but all thouse quotes seem to confuse the .bat file

You should surround it by quotes, i.e. either
'--command=sox "%TRACK%" "%DN%\%BN%.wav" gain "%TGDB%"'
or
"--command=sox '%TRACK%' '%DN%\%BN%.wav' gain '%TGDB%'"
Go to the top of the page
+Quote Post

23 Pages V  « < 12 13 14 15 16 > » 
Closed 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: 28th December 2014 - 19:51