R128GAIN: An EBU R128 compliant loudness scanner |
![]() ![]() |
R128GAIN: An EBU R128 compliant loudness scanner |
Jan 6 2012, 17:23
Post
#326
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
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/What's new?
|
|
|
|
Jan 6 2012, 20:41
Post
#327
|
|
|
Group: Members Posts: 7 Joined: 5-January 12 From: US Member No.: 96245 |
Excellent! Thank you for making this great tool available to the community. |
|
|
|
Jan 6 2012, 23:50
Post
#328
|
|
![]() Group: Members (Donating) Posts: 759 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. |
|
|
|
Jan 9 2012, 02:32
Post
#329
|
|
|
Group: Members Posts: 7 Joined: 5-January 12 From: US Member No.: 96245 |
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? |
|
|
|
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?
Thank you. This post has been edited by gb24: Jan 23 2012, 18:20 |
|
|
|
Jan 24 2012, 09:23
Post
#331
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
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. With this additional data, the scanner would provide all three measures in R128. For example, for a given track would the following be correct?
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. |
|
|
|
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. |
|
|
|
Jan 25 2012, 18:16
Post
#333
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
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: ![]() - True Peak Level (is this %TPDB%?) Yes. |
|
|
|
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 |
|
|
|
Feb 1 2012, 15:35
Post
#335
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
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.) 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.) 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. 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. |
|
|
|
Feb 4 2012, 18:54
Post
#336
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
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/What's new?
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 |
|
|
|
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 |
|
|
|
Feb 7 2012, 19:46
Post
#338
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
Version 0.9.5 (source / win32 binary) released:
Home: http://r128gain.sourceforge.net/What's new?
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) |
|
|
|
Feb 10 2012, 23:20
Post
#339
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
|
|
|
|
Feb 11 2012, 19:10
Post
#340
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
Version 0.9.6 released:
Home: http://r128gain.sourceforge.net/What's new?
This post has been edited by pbelkner: Feb 11 2012, 19:57 |
|
|
|
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¬ ô ¸ |
|
|
|
Feb 13 2012, 23:19
Post
#342
|
|
![]() Group: Members Posts: 607 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 (mainly foobar2000 related): http://goo.gl/yje3h
|
|
|
|
Feb 14 2012, 08:24
Post
#343
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
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. |
|
|
|
Feb 15 2012, 21:00
Post
#344
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
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/ |
|
|
|
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.
|
|
|
|
Feb 18 2012, 07:18
Post
#346
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
I've just uploaded a slightly modified version which should fix the issue (source code and win32 binary): http://sourceforge.net/projects/r128gain/files/ Vorbis files works fine for me now. The Linux binary is now available as well. |
|
|
|
Mar 18 2012, 19:35
Post
#347
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
Version 0.9.6-3 released:
Home: http://r128gain.sourceforge.net/What's new?
|
|
|
|
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. |
|
|
|
Mar 28 2012, 19:35
Post
#349
|
|
|
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. 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 |
|
|
|
Mar 29 2012, 07:05
Post
#350
|
|
![]() Group: Members Posts: 395 Joined: 13-June 10 Member No.: 81467 |
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. 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%'" |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 09:05 |