Giter Club home page Giter Club logo

mkvrg's People

Contributors

kevinlekiller avatar whitepeter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shaunkleyn

mkvrg's Issues

Original track tags vanish

As I have noticed here already, mkvrg seems to make other tags, that were present before the treatment, disappear.

I do think, however, that this is an issue with mkvpropedit, because the man page seems to suggest that the original tags are kept. So this is more of an FYI. Or am I reading it wrong?

With track mkvpropedit(1) will replace tags for a specific track. _Additionally the tags read from filename will be assigned to the same track_. The track is specified in the same way edit selectors are specified (see below), e.g. --tags track:a1:new-audio-tags.xml.

Use the bs1770gain defaults + true peak

Hi there,

First of all, thanks for this neat project! I just checked out your script. Still reading...

But I found one thing which I'd call over-descriptive. You ask bs1770gain to calculate the calculation method for "integrated" loudness and output EBU R 128 compliant values. Both are the set defaults of bs1770gain, see bs1770gain -h for reference.
Also, using sample peak (-p) is deprecated, if I understand the EBU document correctly. True peak is what they describe and it is supported by bs1770gain (-t).

Since I am very new to github and haven't set up my own repo yet, I append a patch which I think should make this EBU R 128 compliant. I also think the range could be calculated, who knows what it's worth, but why not, while we're at it. ;)

--- a/mkvrg
+++ b/mkvrg
@@ -116,8 +116,8 @@ find "$@" -type f -size "$MINSIZE" -iregex ".*\.\(mk[av]\|mk3d\)$" -print0 | whi
         ((trackindex++))

         echo "INFO: Running bs1770gain, this can take a while. (track $track on file '$file')"
-        RGINFO=$(bs1770gain --audio "$track" --ebu -ip "$file" | tee /dev/stderr | tr "\r\n" " " | grep -Poi "[-\d.]+\s+LU.+?\[ALBUM")
-        TRACKGAIN=$(echo "$RGINFO" | grep -Poi "[-\d.]+\s+LU\s+sample" | cut -d\  -f1)
+        RGINFO=$(bs1770gain --audio "$track" -t "$file" | tee /dev/stderr | tr "\r\n" " " | grep -Poi "[-\d.]+\s+LU.+?\[ALBUM")
+        TRACKGAIN=$(echo "$RGINFO" | grep -Poi "[-\d.]+\s+LU\s+true" | cut -d\  -f1)
         TRACKPEAK=$(echo "$RGINFO" | grep -Poi "[-\d.]+\s+\[ALBUM" | cut -d\  -f1)
         if [[ $TRACKGAIN == "" ]] || [[ $TRACKPEAK == "" ]]; then
             echo -e "\e[92mNOTICE: Problem finding replaygain info from bs1770gain for track $track on file '$file'.\e[0m"

Final edit (hopefully): Get rid off options that are default anyway, and unlikely to change. And use true peak calculation instead of sample peak.

incorrect parsing of loudnorm output

The trackPeak regex is currently "Input True Peak: -?[0-9.]+ dBTP", but both ffmpeg 4.4 and current github tip seem to include a + in front of positive values e.g.

 'Parsed_loudnorm_0 @ 0x3b9c100] Input Integrated: -8.9 LUFS Input True Peak: +1.9 dBTP Input LRA: 5.0 LU Input Threshold: -19.0 LUFS Output Integrated: -23.0 LUFS Output True Peak: -8.7 dBTP Output LRA: 3.7 LU Output Threshold: -33.0 LUFS Normalization Type: Dynamic Target Offset: -1.0 LU '

This regex seems to work: "Input True Peak: [-+]?[0-9.]+ dBTP".

exit 0 when only one file processed

There seems to be something wrong with the exit code, when only one file is processed, which is the only thing I have done so far.
Somehow $i ends up being 0, even though it has been 1 already. I also notice that the while loop must run an additional last run, when it really shouldn't.
I set -x at the top and added some echos. Inside the loop $i is actually 1. But after the last unnecessary while run, it is somehow 0. I haven't figured out why yet, since i is only set to 0 once before the loop. Is it possible that inside i is actually a local variable?

Here is the last of set -x output:

+ VERIFY=false
+ FORCE=false
+ MINSIZE=+0
+ [[ false == true ]]
++ which bs1770gain
+ [[ /usr/local/bin/bs1770gain == '' ]]
++ which mkvpropedit
+ [[ /usr/local/bin/mkvpropedit == '' ]]
++ bs1770gain --help
++ grep -Poi '[-\d.]+\s*LUFS,?\s*default'
++ cut '-d ' -f1
+ REFLOUDNESS=-23.0
+ [[ -23.0 == '' ]]
++ mktemp
+ TMPFILE=/tmp/tmp.I8qLMXxYun
+ [[ ! -f /tmp/tmp.I8qLMXxYun ]]
+ [[ ! -w /tmp/tmp.I8qLMXxYun ]]
+ trap cleantmp SIGHUP SIGINT SIGQUIT SIGFPE SIGKILL SIGTERM
+ i=0
+ find sample.2tracks.different_gain.tainted.mka -type f -size +0 -iregex '.*\.\(mk[av]\|mk3d\)$' -print0
+ IFS=
+ read -r -d '' file
+ [[ ! -f sample.2tracks.different_gain.tainted.mka ]]
++ file sample.2tracks.different_gain.tainted.mka
+ [[ ! sample.2tracks.different_gain.tainted.mka: Matroska data =~ Matroska ]]
+ [[ ! false == true ]]
+ [[ false == true ]]
++ bs1770gain -l sample.2tracks.different_gain.tainted.mka
++ grep -Poi 'Stream\s*#\d+:\d+.+?Audio'
++ cut -d : -f 2
++ grep -Po '\d+:\d+'
+ tracks='0
1'
+ [[ 0
1 == '' ]]
+ trackindex=0
+ fileprocessed=0
+ for track in '$tracks'
+ (( trackindex++ ))
+ echo 'INFO: Running bs1770gain, this can take a while. (track 0 on file '\''sample.2tracks.different_gain.tainted.mka'\'')'
INFO: Running bs1770gain, this can take a while. (track 0 on file 'sample.2tracks.different_gain.tainted.mka')
++ bs1770gain --audio 0 -rt sample.2tracks.different_gain.tainted.mka
++ grep -io 'analyzing.*ALBUM'
++ tee /dev/stderr
++ tr '\r\n' ' '
analyzing ...
  [1/1] "sample.2tracks.different_gain.tainted.mka": 0%��0%��0%��0%��0%��0%��1%��1%��1%��1%��1%��1%��1%��1%��1%��1%��2%��2%��2%��2%��2%��2%��2%��2%��2%��2%��3%��3%��3%��3%��3%��3%��3%��3%��3%��3%��4%��4%��4%��4%��4%��4%��4%��4%��4%��4%��5%��5%��5%��5%��5%��5%��5%��5%��5%��5%��6%��6%��6%��6%��6%��6%��6%��6%��6%��6%��7%��7%��7%��7%��7%��7%��7%��7%��7%��7%��8%��8%��8%��8%��8%��8%��8%��8%��8%��8%��9%��9%��9%��9%��9%��9%��9%��9%��9%��9%��10%���10%���10%���10%���10%���10%���10%���10%���10%���10%���11%���11%���11%���11%���11%���11%���11%���11%���11%���11%���12%���12%���12%���12%���12%���12%���12%���12%���12%���12%���13%���13%���13%���13%���13%���13%���13%���13%���13%���13%���14%���14%���14%���14%���14%���14%���14%���14%���14%���14%���15%���15%���15%���15%���15%���15%���15%���15%���15%���15%���16%���16%���16%���16%���16%���16%���16%���16%���16%���16%���17%���17%���17%���17%���17%���17%���17%���17%���17%���17%���18%���18%���18%���18%���18%���18%���18%���18%���18%���18%���19%���19%���19%���19%���19%���19%���19%���19%���19%���19%���20%���20%���20%���20%���20%���20%���20%���20%���20%���20%���21%���21%���21%���21%���21%���21%���21%���21%���21%���21%���22%���22%���22%���22%���22%���22%���22%���22%���22%���22%���23%���23%���23%���23%���23%���23%���23%���23%���23%���23%���24%���24%���24%���24%���24%���24%���24%���24%���24%���24%���25%���25%���25%���25%���25%���25%���25%���25%���25%���25%���26%���26%���26%���26%���26%���26%���26%���26%���26%���26%���27%���27%���27%���27%���27%���27%���27%���27%���27%���27%���28%���28%���28%���28%���28%���28%���28%���28%���28%���28%���29%���29%���29%���29%���29%���29%���29%���29%���29%���29%���30%���30%���30%���30%���30%���30%���30%���30%���30%���30%���31%���31%���31%���31%���31%���31%���31%���31%���31%���31%���32%���32%���32%���32%���32%���32%���32%���32%���32%���32%���33%���33%���33%���33%���33%���33%���33%���33%���33%���33%���34%���34%���34%���34%���34%���34%���34%���34%���34%���34%���35%���35%���35%���35%���35%���35%���35%���35%���35%���35%���36%���36%���36%���36%���36%���36%���36%���36%���36%���36%���37%���37%���37%���37%���37%���37%���37%���37%���37%���37%���38%���38%���38%���38%���38%���38%���38%���38%���38%���38%���39%���39%���39%���39%���39%���39%���39%���39%���39%���39%���40%���40%���40%���40%���40%���40%���40%���40%���40%���40%���41%���41%���41%���41%���41%���41%���41%���41%���41%���41%���42%���42%���42%���42%���42%���42%���42%���42%���42%���42%���43%���43%���43%���43%���43%���43%���43%���43%���43%���43%���44%���44%���44%���44%���44%���44%���44%���44%���44%���44%���45%���45%���45%���45%���45%���45%���45%���45%���45%���45%���46%���46%���46%���46%���46%���46%���46%���46%���46%���46%���47%���47%���47%���47%���47%���47%���47%���47%���47%���47%���48%���48%���48%���48%���48%���48%���48%���48%���48%���48%���49%���49%���49%���49%���49%���49%���49%���49%���49%���49%���50%���50%���50%���50%���50%���50%���50%���50%���50%���50%���51%���51%���51%���51%���51%���51%���51%���51%���51%���51%���52%���52%���52%���52%���52%���52%���52%���52%���52%���52%���53%���53%���53%���53%���53%���53%���53%���53%���53%���53%���54%���54%���54%���54%���54%���54%���54%���54%���54%���54%���55%���55%���55%���55%���55%���55%���55%���55%���55%���55%���56%���56%���56%���56%���56%���56%���56%���56%���56%���56%���57%���57%���57%���57%���57%���57%���57%���57%���57%���57%���58%���58%���58%���58%���58%���58%���58%���58%���58%���58%���59%���59%���59%���59%���59%���59%���59%���59%���59%���59%���60%���60%���60%���60%���60%���60%���60%���60%���60%���60%���61%���61%���61%���61%���61%���61%���61%���61%���61%���61%���62%���62%���62%���62%���62%���62%���62%���62%���62%���62%���63%���63%���63%���63%���63%���63%���63%���63%���63%���63%���64%���64%���64%���64%���64%���64%���64%���64%���64%���64%���65%���65%���65%���65%���65%���65%���65%���65%���65%���65%���66%���66%���66%���66%���66%���66%���66%���66%���66%���66%���67%���67%���67%���67%���67%���67%���67%���67%���67%���67%���68%���68%���68%���68%���68%���68%���68%���68%���68%���68%���69%���69%���69%���69%���69%���69%���69%���69%���69%���69%���70%���70%���70%���70%���70%���70%���70%���70%���70%���70%���71%���71%���71%���71%���71%���71%���71%���71%���71%���71%���72%���72%���72%���72%���72%���72%���72%���72%���72%���72%���73%���73%���73%���73%���73%���73%���73%���73%���73%���73%���74%���74%���74%���74%���74%���74%���74%���74%���74%���74%���75%���75%���75%���75%���75%���75%���75%���75%���75%���75%���76%���76%���76%���76%���76%���76%���76%���76%���76%���76%���77%���77%���77%���77%���77%���77%���77%���77%���77%���77%���78%���78%���78%���78%���78%���78%���78%���78%���78%���78%���79%���79%���79%���79%���79%���79%���79%���79%���79%���79%���80%���80%���80%���80%���80%���80%���80%���80%���80%���80%���81%���81%���81%���81%���81%���81%���81%���81%���81%���81%���82%���82%���82%���82%���82%���82%���82%���82%���82%���82%���83%���83%���83%���83%���83%���83%���83%���83%���83%���83%���84%���84%���84%���84%���84%���84%���84%���84%���84%���84%���85%���85%���85%���85%���85%���85%���85%���85%���85%���85%���86%���86%���86%���86%���86%���86%���86%���86%���86%���86%���87%���87%���87%���87%���87%���87%���87%���87%���87%���87%���88%���88%���88%���88%���88%���88%���88%���88%���88%���88%���89%���89%���89%���89%���89%���89%���89%���89%���89%���89%���90%���90%���90%���90%���90%���90%���90%���90%���90%���90%���91%���91%���91%���91%���91%���91%���91%���91%���91%���91%���92%���92%���92%���92%���92%���92%���92%���92%���92%���92%���93%���93%���93%���93%���93%���93%���93%���93%���93%���93%���94%���94%���94%���94%���94%���94%���94%���94%���94%���94%���95%���95%���95%���95%���95%���95%���95%���95%���95%���95%���96%���96%���96%���96%���96%���96%���96%���96%���96%���96%���97%���97%���97%���97%���97%���97%���97%���97%���97%���97%���98%���98%���98%���98%���98%���98%���98%���98%���98%���98%���99%���99%���99%���99%���99%���99%���99%���99%���99%���99%���100%����100%����100%����100%����        
      integrated:  -19.06 LUFS / -3.94 LU
           range:  -19.69 LUFS
       true peak:  -1.99 TPFS / 0.795689
  [ALBUM]:
      integrated:  -19.06 LUFS / -3.94 LU
           range:  -19.69 LUFS
       true peak:  -1.99 TPFS / 0.795689
done.
+ RGINFO='analyzing ...   [1/1] "sample.2tracks.different_gain.tainted.mka": 0%��0%��0%��0%��0%��0%��1%��1%��1%��1%��1%��1%��1%��1%��1%��1%��2%��2%��2%��2%��2%��2%��2%��2%��2%��2%��3%��3%��3%��3%��3%��3%��3%��3%��3%��3%��4%��4%��4%��4%��4%��4%��4%��4%��4%��4%��5%��5%��5%��5%��5%��5%��5%��5%��5%��5%��6%��6%��6%��6%��6%��6%��6%��6%��6%��6%��7%��7%��7%��7%��7%��7%��7%��7%��7%��7%��8%��8%��8%��8%��8%��8%��8%��8%��8%��8%��9%��9%��9%��9%��9%��9%��9%��9%��9%��9%��10%���10%���10%���10%���10%���10%���10%���10%���10%���10%���11%���11%���11%���11%���11%���11%���11%���11%���11%���11%���12%���12%���12%���12%���12%���12%���12%���12%���12%���12%���13%���13%���13%���13%���13%���13%���13%���13%���13%���13%���14%���14%���14%���14%���14%���14%���14%���14%���14%���14%���15%���15%���15%���15%���15%���15%���15%���15%���15%���15%���16%���16%���16%���16%���16%���16%���16%���16%���16%���16%���17%���17%���17%���17%���17%���17%���17%���17%���17%���17%���18%���18%���18%���18%���18%���18%���18%���18%���18%���18%���19%���19%���19%���19%���19%���19%���19%���19%���19%���19%���20%���20%���20%���20%���20%���20%���20%���20%���20%���20%���21%���21%���21%���21%���21%���21%���21%���21%���21%���21%���22%���22%���22%���22%���22%���22%���22%���22%���22%���22%���23%���23%���23%���23%���23%���23%���23%���23%���23%���23%���24%���24%���24%���24%���24%���24%���24%���24%���24%���24%���25%���25%���25%���25%���25%���25%���25%���25%���25%���25%���26%���26%���26%���26%���26%���26%���26%���26%���26%���26%���27%���27%���27%���27%���27%���27%���27%���27%���27%���27%���28%���28%���28%���28%���28%���28%���28%���28%���28%���28%���29%���29%���29%���29%���29%���29%���29%���29%���29%���29%���30%���30%���30%���30%���30%���30%���30%���30%���30%���30%���31%���31%���31%���31%���31%���31%���31%���31%���31%���31%���32%���32%���32%���32%���32%���32%���32%���32%���32%���32%���33%���33%���33%���33%���33%���33%���33%���33%���33%���33%���34%���34%���34%���34%���34%���34%���34%���34%���34%���34%���35%���35%���35%���35%���35%���35%���35%���35%���35%���35%���36%���36%���36%���36%���36%���36%���36%���36%���36%���36%���37%���37%���37%���37%���37%���37%���37%���37%���37%���37%���38%���38%���38%���38%���38%���38%���38%���38%���38%���38%���39%���39%���39%���39%���39%���39%���39%���39%���39%���39%���40%���40%���40%���40%���40%���40%���40%���40%���40%���40%���41%���41%���41%���41%���41%���41%���41%���41%���41%���41%���42%���42%���42%���42%���42%���42%���42%���42%���42%���42%���43%���43%���43%���43%���43%���43%���43%���43%���43%���43%���44%���44%���44%���44%���44%���44%���44%���44%���44%���44%���45%���45%���45%���45%���45%���45%���45%���45%���45%���45%���46%���46%���46%���46%���46%���46%���46%���46%���46%���46%���47%���47%���47%���47%���47%���47%���47%���47%���47%���47%���48%���48%���48%���48%���48%���48%���48%���48%���48%���48%���49%���49%���49%���49%���49%���49%���49%���49%���49%���49%���50%���50%���50%���50%���50%���50%���50%���50%���50%���50%���51%���51%���51%���51%���51%���51%���51%���51%���51%���51%���52%���52%���52%���52%���52%���52%���52%���52%���52%���52%���53%���53%���53%���53%���53%���53%���53%���53%���53%���53%���54%���54%���54%���54%���54%���54%���54%���54%���54%���54%���55%���55%���55%���55%���55%���55%���55%���55%���55%���55%���56%���56%���56%���56%���56%���56%���56%���56%���56%���56%���57%���57%���57%���57%���57%���57%���57%���57%���57%���57%���58%���58%���58%���58%���58%���58%���58%���58%���58%���58%���59%���59%���59%���59%���59%���59%���59%���59%���59%���59%���60%���60%���60%���60%���60%���60%���60%���60%���60%���60%���61%���61%���61%���61%���61%���61%���61%���61%���61%���61%���62%���62%���62%���62%���62%���62%���62%���62%���62%���62%���63%���63%���63%���63%���63%���63%���63%���63%���63%���63%���64%���64%���64%���64%���64%���64%���64%���64%���64%���64%���65%���65%���65%���65%���65%���65%���65%���65%���65%���65%���66%���66%���66%���66%���66%���66%���66%���66%���66%���66%���67%���67%���67%���67%���67%���67%���67%���67%���67%���67%���68%���68%���68%���68%���68%���68%���68%���68%���68%���68%���69%���69%���69%���69%���69%���69%���69%���69%���69%���69%���70%���70%���70%���70%���70%���70%���70%���70%���70%���70%���71%���71%���71%���71%���71%���71%���71%���71%���71%���71%���72%���72%���72%���72%���72%���72%���72%���72%���72%���72%���73%���73%���73%���73%���73%���73%���73%���73%���73%���73%���74%���74%���74%���74%���74%���74%���74%���74%���74%���74%���75%���75%���75%���75%���75%���75%���75%���75%���75%���75%���76%���76%���76%���76%���76%���76%���76%���76%���76%���76%���77%���77%���77%���77%���77%���77%���77%���77%���77%���77%���78%���78%���78%���78%���78%���78%���78%���78%���78%���78%���79%���79%���79%���79%���79%���79%���79%���79%���79%���79%���80%���80%���80%���80%���80%���80%���80%���80%���80%���80%���81%���81%���81%���81%���81%���81%���81%���81%���81%���81%���82%���82%���82%���82%���82%���82%���82%���82%���82%���82%���83%���83%���83%���83%���83%���83%���83%���83%���83%���83%���84%���84%���84%���84%���84%���84%���84%���84%���84%���84%���85%���85%���85%���85%���85%���85%���85%���85%���85%���85%���86%���86%���86%���86%���86%���86%���86%���86%���86%���86%���87%���87%���87%���87%���87%���87%���87%���87%���87%���87%���88%���88%���88%���88%���88%���88%���88%���88%���88%���88%���89%���89%���89%���89%���89%���89%���89%���89%���89%���89%���90%���90%���90%���90%���90%���90%���90%���90%���90%���90%���91%���91%���91%���91%���91%���91%���91%���91%���91%���91%���92%���92%���92%���92%���92%���92%���92%���92%���92%���92%���93%���93%���93%���93%���93%���93%���93%���93%���93%���93%���94%���94%���94%���94%���94%���94%���94%���94%���94%���94%���95%���95%���95%���95%���95%���95%���95%���95%���95%���95%���96%���96%���96%���96%���96%���96%���96%���96%���96%���96%���97%���97%���97%���97%���97%���97%���97%���97%���97%���97%���98%���98%���98%���98%���98%���98%���98%���98%���98%���98%���99%���99%���99%���99%���99%���99%���99%���99%���99%���99%���100%����100%����100%����100%����               integrated:  -19.06 LUFS / -3.94 LU            range:  -19.69 LUFS        true peak:  -1.99 TPFS / 0.795689   [ALBUM'
++ echo 'analyzing ...   [1/1] "sample.2tracks.different_gain.tainted.mka": 0%��0%��0%��0%��0%��0%��1%��1%��1%��1%��1%��1%��1%��1%��1%��1%��2%��2%��2%��2%��2%��2%��2%��2%��2%��2%��3%��3%��3%��3%��3%��3%��3%��3%��3%��3%��4%��4%��4%��4%��4%��4%��4%��4%��4%��4%��5%��5%��5%��5%��5%��5%��5%��5%��5%��5%��6%��6%��6%��6%��6%��6%��6%��6%��6%��6%��7%��7%��7%��7%��7%��7%��7%��7%��7%��7%��8%��8%��8%��8%��8%��8%��8%��8%��8%��8%��9%��9%��9%��9%��9%��9%��9%��9%��9%��9%��10%���10%���10%���10%���10%���10%���10%���10%���10%���10%���11%���11%���11%���11%���11%���11%���11%���11%���11%���11%���12%���12%���12%���12%���12%���12%���12%���12%���12%���12%���13%���13%���13%���13%���13%���13%���13%���13%���13%���13%���14%���14%���14%���14%���14%���14%���14%���14%���14%���14%���15%���15%���15%���15%���15%���15%���15%���15%���15%���15%���16%���16%���16%���16%���16%���16%���16%���16%���16%���16%���17%���17%���17%���17%���17%���17%���17%���17%���17%���17%���18%���18%���18%���18%���18%���18%���18%���18%���18%���18%���19%���19%���19%���19%���19%���19%���19%���19%���19%���19%���20%���20%���20%���20%���20%���20%���20%���20%���20%���20%���21%���21%���21%���21%���21%���21%���21%���21%���21%���21%���22%���22%���22%���22%���22%���22%���22%���22%���22%���22%���23%���23%���23%���23%���23%���23%���23%���23%���23%���23%���24%���24%���24%���24%���24%���24%���24%���24%���24%���24%���25%���25%���25%���25%���25%���25%���25%���25%���25%���25%���26%���26%���26%���26%���26%���26%���26%���26%���26%���26%���27%���27%���27%���27%���27%���27%���27%���27%���27%���27%���28%���28%���28%���28%���28%���28%���28%���28%���28%���28%���29%���29%���29%���29%���29%���29%���29%���29%���29%���29%���30%���30%���30%���30%���30%���30%���30%���30%���30%���30%���31%���31%���31%���31%���31%���31%���31%���31%���31%���31%���32%���32%���32%���32%���32%���32%���32%���32%���32%���32%���33%���33%���33%���33%���33%���33%���33%���33%���33%���33%���34%���34%���34%���34%���34%���34%���34%���34%���34%���34%���35%���35%���35%���35%���35%���35%���35%���35%���35%���35%���36%���36%���36%���36%���36%���36%���36%���36%���36%���36%���37%���37%���37%���37%���37%���37%���37%���37%���37%���37%���38%���38%���38%���38%���38%���38%���38%���38%���38%���38%���39%���39%���39%���39%���39%���39%���39%���39%���39%���39%���40%���40%���40%���40%���40%���40%���40%���40%���40%���40%���41%���41%���41%���41%���41%���41%���41%���41%���41%���41%���42%���42%���42%���42%���42%���42%���42%���42%���42%���42%���43%���43%���43%���43%���43%���43%���43%���43%���43%���43%���44%���44%���44%���44%���44%���44%���44%���44%���44%���44%���45%���45%���45%���45%���45%���45%���45%���45%���45%���45%���46%���46%���46%���46%���46%���46%���46%���46%���46%���46%���47%���47%���47%���47%���47%���47%���47%���47%���47%���47%���48%���48%���48%���48%���48%���48%���48%���48%���48%���48%���49%���49%���49%���49%���49%���49%���49%���49%���49%���49%���50%���50%���50%���50%���50%���50%���50%���50%���50%���50%���51%���51%���51%���51%���51%���51%���51%���51%���51%���51%���52%���52%���52%���52%���52%���52%���52%���52%���52%���52%���53%���53%���53%���53%���53%���53%���53%���53%���53%���53%���54%���54%���54%���54%���54%���54%���54%���54%���54%���54%���55%���55%���55%���55%���55%���55%���55%���55%���55%���55%���56%���56%���56%���56%���56%���56%���56%���56%���56%���56%���57%���57%���57%���57%���57%���57%���57%���57%���57%���57%���58%���58%���58%���58%���58%���58%���58%���58%���58%���58%���59%���59%���59%���59%���59%���59%���59%���59%���59%���59%���60%���60%���60%���60%���60%���60%���60%���60%���60%���60%���61%���61%���61%���61%���61%���61%���61%���61%���61%���61%���62%���62%���62%���62%���62%���62%���62%���62%���62%���62%���63%���63%���63%���63%���63%���63%���63%���63%���63%���63%���64%���64%���64%���64%���64%���64%���64%���64%���64%���64%���65%���65%���65%���65%���65%���65%���65%���65%���65%���65%���66%���66%���66%���66%���66%���66%���66%���66%���66%���66%���67%���67%���67%���67%���67%���67%���67%���67%���67%���67%���68%���68%���68%���68%���68%���68%���68%���68%���68%���68%���69%���69%���69%���69%���69%���69%���69%���69%���69%���69%���70%���70%���70%���70%���70%���70%���70%���70%���70%���70%���71%���71%���71%���71%���71%���71%���71%���71%���71%���71%���72%���72%���72%���72%���72%���72%���72%���72%���72%���72%���73%���73%���73%���73%���73%���73%���73%���73%���73%���73%���74%���74%���74%���74%���74%���74%���74%���74%���74%���74%���75%���75%���75%���75%���75%���75%���75%���75%���75%���75%���76%���76%���76%���76%���76%���76%���76%���76%���76%���76%���77%���77%���77%���77%���77%���77%���77%���77%���77%���77%���78%���78%���78%���78%���78%���78%���78%���78%���78%���78%���79%���79%���79%���79%���79%���79%���79%���79%���79%���79%���80%���80%���80%���80%���80%���80%���80%���80%���80%���80%���81%���81%���81%���81%���81%���81%���81%���81%���81%���81%���82%���82%���82%���82%���82%���82%���82%���82%���82%���82%���83%���83%���83%���83%���83%���83%���83%���83%���83%���83%���84%���84%���84%���84%���84%���84%���84%���84%���84%���84%���85%���85%���85%���85%���85%���85%���85%���85%���85%���85%���86%���86%���86%���86%���86%���86%���86%���86%���86%���86%���87%���87%���87%���87%���87%���87%���87%���87%���87%���87%���88%���88%���88%���88%���88%���88%���88%���88%���88%���88%���89%���89%���89%���89%���89%���89%���89%���89%���89%���89%���90%���90%���90%���90%���90%���90%���90%���90%���90%���90%���91%���91%���91%���91%���91%���91%���91%���91%���91%���91%���92%���92%���92%���92%���92%���92%���92%���92%���92%���92%���93%���93%���93%���93%���93%���93%���93%���93%���93%���93%���94%���94%���94%���94%���94%���94%���94%���94%���94%���94%���95%���95%���95%���95%���95%���95%���95%���95%���95%���95%���96%���96%���96%���96%���96%���96%���96%���96%���96%���96%���97%���97%���97%���97%���97%���97%���97%���97%���97%���97%���98%���98%���98%���98%���98%���98%���98%���98%���98%���98%���99%���99%���99%���99%���99%���99%���99%���99%���99%���99%���100%����100%����100%����100%����               integrated:  -19.06 LUFS / -3.94 LU            range:  -19.69 LUFS        true peak:  -1.99 TPFS / 0.795689   [ALBUM'
++ cut '-d ' -f1
++ grep -Poi '[-\d.]+\s+LU\s+range'
+ TRACKGAIN=-3.94
++ grep -Poi '[-\d.]+\s+LUFS\s+true'
++ echo 'analyzing ...   [1/1] "sample.2tracks.different_gain.tainted.mka": 0%��0%��0%��0%��0%��0%��1%��1%��1%��1%��1%��1%��1%��1%��1%��1%��2%��2%��2%��2%��2%��2%��2%��2%��2%��2%��3%��3%��3%��3%��3%��3%��3%��3%��3%��3%��4%��4%��4%��4%��4%��4%��4%��4%��4%��4%��5%��5%��5%��5%��5%��5%��5%��5%��5%��5%��6%��6%��6%��6%��6%��6%��6%��6%��6%��6%��7%��7%��7%��7%��7%��7%��7%��7%��7%��7%��8%��8%��8%��8%��8%��8%��8%��8%��8%��8%��9%��9%��9%��9%��9%��9%��9%��9%��9%��9%��10%���10%���10%���10%���10%���10%���10%���10%���10%���10%���11%���11%���11%���11%���11%���11%���11%���11%���11%���11%���12%���12%���12%���12%���12%���12%���12%���12%���12%���12%���13%���13%���13%���13%���13%���13%���13%���13%���13%���13%���14%���14%���14%���14%���14%���14%���14%���14%���14%���14%���15%���15%���15%���15%���15%���15%���15%���15%���15%���15%���16%���16%���16%���16%���16%���16%���16%���16%���16%���16%���17%���17%���17%���17%���17%���17%���17%���17%���17%���17%���18%���18%���18%���18%���18%���18%���18%���18%���18%���18%���19%���19%���19%���19%���19%���19%���19%���19%���19%���19%���20%���20%���20%���20%���20%���20%���20%���20%���20%���20%���21%���21%���21%���21%���21%���21%���21%���21%���21%���21%���22%���22%���22%���22%���22%���22%���22%���22%���22%���22%���23%���23%���23%���23%���23%���23%���23%���23%���23%���23%���24%���24%���24%���24%���24%���24%���24%���24%���24%���24%���25%���25%���25%���25%���25%���25%���25%���25%���25%���25%���26%���26%���26%���26%���26%���26%���26%���26%���26%���26%���27%���27%���27%���27%���27%���27%���27%���27%���27%���27%���28%���28%���28%���28%���28%���28%���28%���28%���28%���28%���29%���29%���29%���29%���29%���29%���29%���29%���29%���29%���30%���30%���30%���30%���30%���30%���30%���30%���30%���30%���31%���31%���31%���31%���31%���31%���31%���31%���31%���31%���32%���32%���32%���32%���32%���32%���32%���32%���32%���32%���33%���33%���33%���33%���33%���33%���33%���33%���33%���33%���34%���34%���34%���34%���34%���34%���34%���34%���34%���34%���35%���35%���35%���35%���35%���35%���35%���35%���35%���35%���36%���36%���36%���36%���36%���36%���36%���36%���36%���36%���37%���37%���37%���37%���37%���37%���37%���37%���37%���37%���38%���38%���38%���38%���38%���38%���38%���38%���38%���38%���39%���39%���39%���39%���39%���39%���39%���39%���39%���39%���40%���40%���40%���40%���40%���40%���40%���40%���40%���40%���41%���41%���41%���41%���41%���41%���41%���41%���41%���41%���42%���42%���42%���42%���42%���42%���42%���42%���42%���42%���43%���43%���43%���43%���43%���43%���43%���43%���43%���43%���44%���44%���44%���44%���44%���44%���44%���44%���44%���44%���45%���45%���45%���45%���45%���45%���45%���45%���45%���45%���46%���46%���46%���46%���46%���46%���46%���46%���46%���46%���47%���47%���47%���47%���47%���47%���47%���47%���47%���47%���48%���48%���48%���48%���48%���48%���48%���48%���48%���48%���49%���49%���49%���49%���49%���49%���49%���49%���49%���49%���50%���50%���50%���50%���50%���50%���50%���50%���50%���50%���51%���51%���51%���51%���51%���51%���51%���51%���51%���51%���52%���52%���52%���52%���52%���52%���52%���52%���52%���52%���53%���53%���53%���53%���53%���53%���53%���53%���53%���53%���54%���54%���54%���54%���54%���54%���54%���54%���54%���54%���55%���55%���55%���55%���55%���55%���55%���55%���55%���55%���56%���56%���56%���56%���56%���56%���56%���56%���56%���56%���57%���57%���57%���57%���57%���57%���57%���57%���57%���57%���58%���58%���58%���58%���58%���58%���58%���58%���58%���58%���59%���59%���59%���59%���59%���59%���59%���59%���59%���59%���60%���60%���60%���60%���60%���60%���60%���60%���60%���60%���61%���61%���61%���61%���61%���61%���61%���61%���61%���61%���62%���62%���62%���62%���62%���62%���62%���62%���62%���62%���63%���63%���63%���63%���63%���63%���63%���63%���63%���63%���64%���64%���64%���64%���64%���64%���64%���64%���64%���64%���65%���65%���65%���65%���65%���65%���65%���65%���65%���65%���66%���66%���66%���66%���66%���66%���66%���66%���66%���66%���67%���67%���67%���67%���67%���67%���67%���67%���67%���67%���68%���68%���68%���68%���68%���68%���68%���68%���68%���68%���69%���69%���69%���69%���69%���69%���69%���69%���69%���69%���70%���70%���70%���70%���70%���70%���70%���70%���70%���70%���71%���71%���71%���71%���71%���71%���71%���71%���71%���71%���72%���72%���72%���72%���72%���72%���72%���72%���72%���72%���73%���73%���73%���73%���73%���73%���73%���73%���73%���73%���74%���74%���74%���74%���74%���74%���74%���74%���74%���74%���75%���75%���75%���75%���75%���75%���75%���75%���75%���75%���76%���76%���76%���76%���76%���76%���76%���76%���76%���76%���77%���77%���77%���77%���77%���77%���77%���77%���77%���77%���78%���78%���78%���78%���78%���78%���78%���78%���78%���78%���79%���79%���79%���79%���79%���79%���79%���79%���79%���79%���80%���80%���80%���80%���80%���80%���80%���80%���80%���80%���81%���81%���81%���81%���81%���81%���81%���81%���81%���81%���82%���82%���82%���82%���82%���82%���82%���82%���82%���82%���83%���83%���83%���83%���83%���83%���83%���83%���83%���83%���84%���84%���84%���84%���84%���84%���84%���84%���84%���84%���85%���85%���85%���85%���85%���85%���85%���85%���85%���85%���86%���86%���86%���86++ cut '-d ' -f1
%���86%���86%���86%���86%���86%���86%���87%���87%���87%���87%���87%���87%���87%���87%���87%���87%���88%���88%���88%���88%���88%���88%���88%���88%���88%���88%���89%���89%���89%���89%���89%���89%���89%���89%���89%���89%���90%���90%���90%���90%���90%���90%���90%���90%���90%���90%���91%���91%���91%���91%���91%���91%���91%���91%���91%���91%���92%���92%���92%���92%���92%���92%���92%���92%���92%���92%���93%���93%���93%���93%���93%���93%���93%���93%���93%���93%���94%���94%���94%���94%���94%���94%���94%���94%���94%���94%���95%���95%���95%���95%���95%���95%���95%���95%���95%���95%���96%���96%���96%���96%���96%���96%���96%���96%���96%���96%���97%���97%���97%���97%���97%���97%���97%���97%���97%���97%���98%���98%���98%���98%���98%���98%���98%���98%���98%���98%���99%���99%���99%���99%���99%���99%���99%���99%���99%���99%���100%����100%����100%����100%����               integrated:  -19.06 LUFS / -3.94 LU            range:  -19.69 LUFS        true peak:  -1.99 TPFS / 0.795689   [ALBUM'
+ TRACKRANGE=-19.69
++ cut '-d ' -f1
++ grep -Poi '[-\d.]+\s+\[ALBUM'
++ echo 'analyzing ...   [1/1] "sample.2tracks.different_gain.tainted.mka": 0%��0%��0%��0%��0%��0%��1%��1%��1%��1%��1%��1%��1%��1%��1%��1%��2%��2%��2%��2%��2%��2%��2%��2%��2%��2%��3%��3%��3%��3%��3%��3%��3%��3%��3%��3%��4%��4%��4%��4%��4%��4%��4%��4%��4%��4%��5%��5%��5%��5%��5%��5%��5%��5%��5%��5%��6%��6%��6%��6%��6%��6%��6%��6%��6%��6%��7%��7%��7%��7%��7%��7%��7%��7%��7%��7%��8%��8%��8%��8%��8%��8%��8%��8%��8%��8%��9%��9%��9%��9%��9%��9%��9%��9%��9%��9%��10%���10%���10%���10%���10%���10%���10%���10%���10%���10%���11%���11%���11%���11%���11%���11%���11%���11%���11%���11%���12%���12%���12%���12%���12%���12%���12%���12%���12%���12%���13%���13%���13%���13%���13%���13%���13%���13%���13%���13%���14%���14%���14%���14%���14%���14%���14%���14%���14%���14%���15%���15%���15%���15%���15%���15%���15%���15%���15%���15%���16%���16%���16%���16%���16%���16%���16%���16%���16%���16%���17%���17%���17%���17%���17%���17%���17%���17%���17%���17%���18%���18%���18%���18%���18%���18%���18%���18%���18%���18%���19%���19%���19%���19%���19%���19%���19%���19%���19%���19%���20%���20%���20%���20%���20%���20%���20%���20%���20%���20%���21%���21%���21%���21%���21%���21%���21%���21%���21%���21%���22%���22%���22%���22%���22%���22%���22%���22%���22%���22%���23%���23%���23%���23%���23%���23%���23%���23%���23%���23%���24%���24%���24%���24%���24%���24%���24%���24%���24%���24%���25%���25%���25%���25%���25%���25%���25%���25%���25%���25%���26%���26%���26%���26%���26%���26%���26%���26%���26%���26%���27%���27%���27%���27%���27%���27%���27%���27%���27%���27%���28%���28%���28%���28%���28%���28%���28%���28%���28%���28%���29%���29%���29%���29%���29%���29%���29%���29%���29%���29%���30%���30%���30%���30%���30%���30%���30%���30%���30%���30%���31%���31%���31%���31%���31%���31%���31%���31%���31%���31%���32%���32%���32%���32%���32%���32%���32%���32%���32%���32%���33%���33%���33%���33%���33%���33%���33%���33%���33%���33%���34%���34%���34%���34%���34%���34%���34%���34%���34%���34%���35%���35%���35%���35%���35%���35%���35%���35%���35%���35%���36%���36%���36%���36%���36%���36%���36%���36%���36%���36%���37%���37%���37%���37%���37%���37%���37%���37%���37%���37%���38%���38%���38%���38%���38%���38%���38%���38%���38%���38%���39%���39%���39%���39%���39%���39%���39%���39%���39%���39%���40%���40%���40%���40%���40%���40%���40%���40%���40%���40%���41%���41%���41%���41%���41%���41%���41%���41%���41%���41%���42%���42%���42%���42%���42%���42%���42%���42%���42%���42%���43%���43%���43%���43%���43%���43%���43%���43%���43%���43%���44%���44%���44%���44%���44%���44%���44%���44%���44%���44%���45%���45%���45%���45%���45%���45%���45%���45%���45%���45%���46%���46%���46%���46%���46%���46%���46%���46%���46%���46%���47%���47%���47%���47%���47%���47%���47%���47%���47%���47%���48%���48%���48%���48%���48%���48%���48%���48%���48%���48%���49%���49%���49%���49%���49%���49%���49%���49%���49%���49%���50%���50%���50%���50%���50%���50%���50%���50%���50%���50%���51%���51%���51%���51%���51%���51%���51%���51%���51%���51%���52%���52%���52%���52%���52%���52%���52%���52%���52%���52%���53%���53%���53%���53%���53%���53%���53%���53%���53%���53%���54%���54%���54%���54%���54%���54%���54%���54%���54%���54%���55%���55%���55%���55%���55%���55%���55%���55%���55%���55%���56%���56%���56%���56%���56%���56%���56%���56%���56%���56%���57%���57%���57%���57%���57%���57%���57%���57%���57%���57%���58%���58%���58%���58%���58%���58%���58%���58%���58%���58%���59%���59%���59%���59%���59%���59%���59%���59%���59%���59%���60%���60%���60%���60%���60%���60%���60%���60%���60%���60%���61%���61%���61%���61%���61%���61%���61%���61%���61%���61%���62%���62%���62%���62%���62%���62%���62%���62%���62%���62%���63%���63%���63%���63%���63%���63%���63%���63%���63%���63%���64%���64%���64%���64%���64%���64%���64%���64%���64%���64%���65%���65%���65%���65%���65%���65%���65%���65%���65%���65%���66%���66%���66%���66%���66%���66%���66%���66%���66%���66%���67%���67%���67%���67%���67%���67%���67%���67%���67%���67%���68%���68%���68%���68%���68%���68%���68%���68%���68%���68%���69%���69%���69%���69%���69%���69%���69%���69%���69%���69%���70%���70%���70%���70%���70%���70%���70%���70%���70%���70%���71%���71%���71%���71%���71%���71%���71%���71%���71%���71%���72%���72%���72%���72%���72%���72%���72%���72%���72%���72%���73%���73%���73%���73%���73%���73%���73%���73%���73%���73%���74%���74%���74%���74%���74%���74%���74%���74%���74%���74%���75%���75%���75%���75%���75%���75%���75%���75%���75%���75%���76%���76%���76%���76%���76%���76%���76%���76%���76%���76%���77%���77%���77%���77%���77%���77%���77%���77%���77%���77%���78%���78%���78%���78%���78%���78%���78%���78%���78%���78%���79%���79%���79%���79%���79%���79%���79%���79%���79%���79%���80%���80%���80%���80%���80%���80%���80%���80%���80%���80%���81%���81%���81%���81%���81%���81%���81%���81%���81%���81%���82%���82%���82%���82%���82%���82%���82%���82%���82%���82%���83%���83%���83%���83%���83%���83%���83%���83%���83%���83%���84%���84%���84%���84%���84%���84%���84%���84%���84%���84%���85%���85%���85%���85%���85%���85%���85%���85%���85%���85%���86%���86%���86%���86%���86%���86%���86%���86%���86%���86%���87%���87%���87%���87%���87%���87%���87%���87%���87%���87%���88%���88%���88%���88%���88%���88%���88%���88%���88%���88%���89%���89%���89%���89%���89%���89%���89%���89%���89%���89%���90%���90%���90%���90%���90%���90%���90%���90%���90%���90%���91%���91%���91%���91%���91%���91%���91%���91%���91%���91%���92%���92%���92%���92%���92%���92%���92%���92%���92%���92%���93%���93%���93%���93%���93%���93%���93%���93%���93%���93%���94%���94%���94%���94%���94%���94%���94%���94%���94%���94%���95%���95%���95%���95%���95%���95%���95%���95%���95%���95%���96%���96%���96%���96%���96%���96%���96%���96%���96%���96%���97%���97%���97%���97%���97%���97%���97%���97%���97%���97%���98%���98%���98%���98%���98%���98%���98%���98%���98%���98%���99%���99%���99%���99%���99%���99%���99%���99%���99%���99%���100%����100%����100%����100%����               integrated:  -19.06 LUFS / -3.94 LU            range:  -19.69 LUFS        true peak:  -1.99 TPFS / 0.795689   [ALBUM'
+ TRACKPEAK=0.795689
+ [[ -3.94 == '' ]]
+ [[ 0.795689 == '' ]]
+ echo '<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE Tags SYSTEM "matroskatags.dtd">
<Tags>
  <Tag>
    <Targets>
    </Targets>
    <Simple>
      <Name>REPLAYGAIN_ALGORITHM</Name>
      <String>ITU-R BS.1770</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_REFERENCE_LOUDNESS</Name>
      <String>-23.0</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_TRACK_GAIN</Name>
      <String>-3.94</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_TRACK_RANGE</Name>
      <String>-19.69</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_TRACK_PEAK</Name>
      <String>0.795689</String>
    </Simple>
    <Simple>
    <Name>REPLAYGAIN_ALBUM_GAIN</Name>
      <String>-3.94</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_ALBUM_RANGE</Name>
      <String>-19.69</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_ALBUM_PEAK</Name>
      <String>0.795689</String>
    </Simple>
  </Tag>
</Tags>'
+ echo 'INFO: Applying gain (-3.94) / true peak (0.795689) / range (-19.69) for track 0 on file '\''sample.2tracks.different_gain.tainted.mka'\''.'
INFO: Applying gain (-3.94) / true peak (0.795689) / range (-19.69) for track 0 on file 'sample.2tracks.different_gain.tainted.mka'.
+ mkvpropedit --tags track:a1:/tmp/tmp.I8qLMXxYun sample.2tracks.different_gain.tainted.mka
The file is being analyzed.
The changes are written to the file.
Done.
+ [[ false == true ]]
+ (( fileprocessed++ ))
+ for track in '$tracks'
+ (( trackindex++ ))
+ echo 'INFO: Running bs1770gain, this can take a while. (track 1 on file '\''sample.2tracks.different_gain.tainted.mka'\'')'
INFO: Running bs1770gain, this can take a while. (track 1 on file 'sample.2tracks.different_gain.tainted.mka')
++ bs1770gain --audio 1 -rt sample.2tracks.different_gain.tainted.mka
++ tee /dev/stderr
++ tr '\r\n' ' '
++ grep -io 'analyzing.*ALBUM'
analyzing ...
  [1/1] "sample.2tracks.different_gain.tainted.mka": 0%��0%��0%��0%��0%��0%��1%��1%��1%��1%��1%��1%��1%��1%��1%��1%��2%��2%��2%��2%��2%��2%��2%��2%��2%��2%��3%��3%��3%��3%��3%��3%��3%��3%��3%��3%��4%��4%��4%��4%��4%��4%��4%��4%��4%��4%��5%��5%��5%��5%��5%��5%��5%��5%��5%��5%��6%��6%��6%��6%��6%��6%��6%��6%��6%��6%��7%��7%��7%��7%��7%��7%��7%��7%��7%��7%��8%��8%��8%��8%��8%��8%��8%��8%��8%��8%��9%��9%��9%��9%��9%��9%��9%��9%��9%��9%��10%���10%���10%���10%���10%���10%���10%���10%���10%���10%���11%���11%���11%���11%���11%���11%���11%���11%���11%���11%���12%���12%���12%���12%���12%���12%���12%���12%���12%���12%���13%���13%���13%���13%���13%���13%���13%���13%���13%���13%���14%���14%���14%���14%���14%���14%���14%���14%���14%���14%���15%���15%���15%���15%���15%���15%���15%���15%���15%���15%���16%���16%���16%���16%���16%���16%���16%���16%���16%���16%���17%���17%���17%���17%���17%���17%���17%���17%���17%���17%���18%���18%���18%���18%���18%���18%���18%���18%���18%���18%���19%���19%���19%���19%���19%���19%���19%���19%���19%���19%���20%���20%���20%���20%���20%���20%���20%���20%���20%���20%���21%���21%���21%���21%���21%���21%���21%���21%���21%���21%���22%���22%���22%���22%���22%���22%���22%���22%���22%���22%���23%���23%���23%���23%���23%���23%���23%���23%���23%���23%���24%���24%���24%���24%���24%���24%���24%���24%���24%���24%���25%���25%���25%���25%���25%���25%���25%���25%���25%���25%���26%���26%���26%���26%���26%���26%���26%���26%���26%���26%���27%���27%���27%���27%���27%���27%���27%���27%���27%���27%���28%���28%���28%���28%���28%���28%���28%���28%���28%���28%���29%���29%���29%���29%���29%���29%���29%���29%���29%���29%���30%���30%���30%���30%���30%���30%���30%���30%���30%���30%���31%���31%���31%���31%���31%���31%���31%���31%���31%���31%���32%���32%���32%���32%���32%���32%���32%���32%���32%���32%���33%���33%���33%���33%���33%���33%���33%���33%���33%���33%���34%���34%���34%���34%���34%���34%���34%���34%���34%���34%���35%���35%���35%���35%���35%���35%���35%���35%���35%���35%���36%���36%���36%���36%���36%���36%���36%���36%���36%���36%���37%���37%���37%���37%���37%���37%���37%���37%���37%���37%���38%���38%���38%���38%���38%���38%���38%���38%���38%���38%���39%���39%���39%���39%���39%���39%���39%���39%���39%���39%���40%���40%���40%���40%���40%���40%���40%���40%���40%���40%���41%���41%���41%���41%���41%���41%���41%���41%���41%���41%���42%���42%���42%���42%���42%���42%���42%���42%���42%���42%���43%���43%���43%���43%���43%���43%���43%���43%���43%���43%���44%���44%���44%���44%���44%���44%���44%���44%���44%���44%���45%���45%���45%���45%���45%���45%���45%���45%���45%���45%���46%���46%���46%���46%���46%���46%���46%���46%���46%���46%���47%���47%���47%���47%���47%���47%���47%���47%���47%���47%���48%���48%���48%���48%���48%���48%���48%���48%���48%���48%���49%���49%���49%���49%���49%���49%���49%���49%���49%���49%���50%���50%���50%���50%���50%���50%���50%���50%���50%���50%���51%���51%���51%���51%���51%���51%���51%���51%���51%���51%���52%���52%���52%���52%���52%���52%���52%���52%���52%���52%���53%���53%���53%���53%���53%���53%���53%���53%���53%���53%���54%���54%���54%���54%���54%���54%���54%���54%���54%���54%���55%���55%���55%���55%���55%���55%���55%���55%���55%���55%���56%���56%���56%���56%���56%���56%���56%���56%���56%���56%���57%���57%���57%���57%���57%���57%���57%���57%���57%���57%���58%���58%���58%���58%���58%���58%���58%���58%���58%���58%���59%���59%���59%���59%���59%���59%���59%���59%���59%���59%���60%���60%���60%���60%���60%���60%���60%���60%���60%���60%���61%���61%���61%���61%���61%���61%���61%���61%���61%���61%���62%���62%���62%���62%���62%���62%���62%���62%���62%���62%���63%���63%���63%���63%���63%���63%���63%���63%���63%���63%���64%���64%���64%���64%���64%���64%���64%���64%���64%���64%���65%���65%���65%���65%���65%���65%���65%���65%���65%���65%���66%���66%���66%���66%���66%���66%���66%���66%���66%���66%���67%���67%���67%���67%���67%���67%���67%���67%���67%���67%���68%���68%���68%���68%���68%���68%���68%���68%���68%���68%���69%���69%���69%���69%���69%���69%���69%���69%���69%���69%���70%���70%���70%���70%���70%���70%���70%���70%���70%���70%���71%���71%���71%���71%���71%���71%���71%���71%���71%���71%���72%���72%���72%���72%���72%���72%���72%���72%���72%���72%���73%���73%���73%���73%���73%���73%���73%���73%���73%���73%���74%���74%���74%���74%���74%���74%���74%���74%���74%���74%���75%���75%���75%���75%���75%���75%���75%���75%���75%���75%���76%���76%���76%���76%���76%���76%���76%���76%���76%���76%���77%���77%���77%���77%���77%���77%���77%���77%���77%���77%���78%���78%���78%���78%���78%���78%���78%���78%���78%���78%���79%���79%���79%���79%���79%���79%���79%���79%���79%���79%���80%���80%���80%���80%���80%���80%���80%���80%���80%���80%���81%���81%���81%���81%���81%���81%���81%���81%���81%���81%���82%���82%���82%���82%���82%���82%���82%���82%���82%���82%���83%���83%���83%���83%���83%���83%���83%���83%���83%���83%���84%���84%���84%���84%���84%���84%���84%���84%���84%���84%���85%���85%���85%���85%���85%���85%���85%���85%���85%���85%���86%���86%���86%���86%���86%���86%���86%���86%���86%���86%���87%���87%���87%���87%���87%���87%���87%���87%���87%���87%���88%���88%���88%���88%���88%���88%���88%���88%���88%���88%���89%���89%���89%���89%���89%���89%���89%���89%���89%���89%���90%���90%���90%���90%���90%���90%���90%���90%���90%���90%���91%���91%���91%���91%���91%���91%���91%���91%���91%���91%���92%���92%���92%���92%���92%���92%���92%���92%���92%���92%���93%���93%���93%���93%���93%���93%���93%���93%���93%���93%���94%���94%���94%���94%���94%���94%���94%���94%���94%���94%���95%���95%���95%���95%���95%���95%���95%���95%���95%���95%���96%���96%���96%���96%���96%���96%���96%���96%���96%���96%���97%���97%���97%���97%���97%���97%���97%���97%���97%���97%���98%���98%���98%���98%���98%���98%���98%���98%���98%���98%���99%���99%���99%���99%���99%���99%���99%���99%���99%���99%���100%����100%����100%����100%����        
      integrated:  -19.06 LUFS / -3.94 LU
           range:  -19.69 LUFS
       true peak:  -1.99 TPFS / 0.795689
  [ALBUM]:
      integrated:  -19.06 LUFS / -3.94 LU
           range:  -19.69 LUFS
       true peak:  -1.99 TPFS / 0.795689
done.
+ RGINFO='analyzing ...   [1/1] "sample.2tracks.different_gain.tainted.mka": 0%��0%��0%��0%��0%��0%��1%��1%��1%��1%��1%��1%��1%��1%��1%��1%��2%��2%��2%��2%��2%��2%��2%��2%��2%��2%��3%��3%��3%��3%��3%��3%��3%��3%��3%��3%��4%��4%��4%��4%��4%��4%��4%��4%��4%��4%��5%��5%��5%��5%��5%��5%��5%��5%��5%��5%��6%��6%��6%��6%��6%��6%��6%��6%��6%��6%��7%��7%��7%��7%��7%��7%��7%��7%��7%��7%��8%��8%��8%��8%��8%��8%��8%��8%��8%��8%��9%��9%��9%��9%��9%��9%��9%��9%��9%��9%��10%���10%���10%���10%���10%���10%���10%���10%���10%���10%���11%���11%���11%���11%���11%���11%���11%���11%���11%���11%���12%���12%���12%���12%���12%���12%���12%���12%���12%���12%���13%���13%���13%���13%���13%���13%���13%���13%���13%���13%���14%���14%���14%���14%���14%���14%���14%���14%���14%���14%���15%���15%���15%���15%���15%���15%���15%���15%���15%���15%���16%���16%���16%���16%���16%���16%���16%���16%���16%���16%���17%���17%���17%���17%���17%���17%���17%���17%���17%���17%���18%���18%���18%���18%���18%���18%���18%���18%���18%���18%���19%���19%���19%���19%���19%���19%���19%���19%���19%���19%���20%���20%���20%���20%���20%���20%���20%���20%���20%���20%���21%���21%���21%���21%���21%���21%���21%���21%���21%���21%���22%���22%���22%���22%���22%���22%���22%���22%���22%���22%���23%���23%���23%���23%���23%���23%���23%���23%���23%���23%���24%���24%���24%���24%���24%���24%���24%���24%���24%���24%���25%���25%���25%���25%���25%���25%���25%���25%���25%���25%���26%���26%���26%���26%���26%���26%���26%���26%���26%���26%���27%���27%���27%���27%���27%���27%���27%���27%���27%���27%���28%���28%���28%���28%���28%���28%���28%���28%���28%���28%���29%���29%���29%���29%���29%���29%���29%���29%���29%���29%���30%���30%���30%���30%���30%���30%���30%���30%���30%���30%���31%���31%���31%���31%���31%���31%���31%���31%���31%���31%���32%���32%���32%���32%���32%���32%���32%���32%���32%���32%���33%���33%���33%���33%���33%���33%���33%���33%���33%���33%���34%���34%���34%���34%���34%���34%���34%���34%���34%���34%���35%���35%���35%���35%���35%���35%���35%���35%���35%���35%���36%���36%���36%���36%���36%���36%���36%���36%���36%���36%���37%���37%���37%���37%���37%���37%���37%���37%���37%���37%���38%���38%���38%���38%���38%���38%���38%���38%���38%���38%���39%���39%���39%���39%���39%���39%���39%���39%���39%���39%���40%���40%���40%���40%���40%���40%���40%���40%���40%���40%���41%���41%���41%���41%���41%���41%���41%���41%���41%���41%���42%���42%���42%���42%���42%���42%���42%���42%���42%���42%���43%���43%���43%���43%���43%���43%���43%���43%���43%���43%���44%���44%���44%���44%���44%���44%���44%���44%���44%���44%���45%���45%���45%���45%���45%���45%���45%���45%���45%���45%���46%���46%���46%���46%���46%���46%���46%���46%���46%���46%���47%���47%���47%���47%���47%���47%���47%���47%���47%���47%���48%���48%���48%���48%���48%���48%���48%���48%���48%���48%���49%���49%���49%���49%���49%���49%���49%���49%���49%���49%���50%���50%���50%���50%���50%���50%���50%���50%���50%���50%���51%���51%���51%���51%���51%���51%���51%���51%���51%���51%���52%���52%���52%���52%���52%���52%���52%���52%���52%���52%���53%���53%���53%���53%���53%���53%���53%���53%���53%���53%���54%���54%���54%���54%���54%���54%���54%���54%���54%���54%���55%���55%���55%���55%���55%���55%���55%���55%���55%���55%���56%���56%���56%���56%���56%���56%���56%���56%���56%���56%���57%���57%���57%���57%���57%���57%���57%���57%���57%���57%���58%���58%���58%���58%���58%���58%���58%���58%���58%���58%���59%���59%���59%���59%���59%���59%���59%���59%���59%���59%���60%���60%���60%���60%���60%���60%���60%���60%���60%���60%���61%���61%���61%���61%���61%���61%���61%���61%���61%���61%���62%���62%���62%���62%���62%���62%���62%���62%���62%���62%���63%���63%���63%���63%���63%���63%���63%���63%���63%���63%���64%���64%���64%���64%���64%���64%���64%���64%���64%���64%���65%���65%���65%���65%���65%���65%���65%���65%���65%���65%���66%���66%���66%���66%���66%���66%���66%���66%���66%���66%���67%���67%���67%���67%���67%���67%���67%���67%���67%���67%���68%���68%���68%���68%���68%���68%���68%���68%���68%���68%���69%���69%���69%���69%���69%���69%���69%���69%���69%���69%���70%���70%���70%���70%���70%���70%���70%���70%���70%���70%���71%���71%���71%���71%���71%���71%���71%���71%���71%���71%���72%���72%���72%���72%���72%���72%���72%���72%���72%���72%���73%���73%���73%���73%���73%���73%���73%���73%���73%���73%���74%���74%���74%���74%���74%���74%���74%���74%���74%���74%���75%���75%���75%���75%���75%���75%���75%���75%���75%���75%���76%���76%���76%���76%���76%���76%���76%���76%���76%���76%���77%���77%���77%���77%���77%���77%���77%���77%���77%���77%���78%���78%���78%���78%���78%���78%���78%���78%���78%���78%���79%���79%���79%���79%���79%���79%���79%���79%���79%���79%���80%���80%���80%���80%���80%���80%���80%���80%���80%���80%���81%���81%���81%���81%���81%���81%���81%���81%���81%���81%���82%���82%���82%���82%���82%���82%���82%���82%���82%���82%���83%���83%���83%���83%���83%���83%���83%���83%���83%���83%���84%���84%���84%���84%���84%���84%���84%���84%���84%���84%���85%���85%���85%���85%���85%���85%���85%���85%���85%���85%���86%���86%���86%���86%���86%���86%���86%���86%���86%���86%���87%���87%���87%���87%���87%���87%���87%���87%���87%���87%���88%���88%���88%���88%���88%���88%���88%���88%���88%���88%���89%���89%���89%���89%���89%���89%���89%���89%���89%���89%���90%���90%���90%���90%���90%���90%���90%���90%���90%���90%���91%���91%���91%���91%���91%���91%���91%���91%���91%���91%���92%���92%���92%���92%���92%���92%���92%���92%���92%���92%���93%���93%���93%���93%���93%���93%���93%���93%���93%���93%���94%���94%���94%���94%���94%���94%���94%���94%���94%���94%���95%���95%���95%���95%���95%���95%���95%���95%���95%���95%���96%���96%���96%���96%���96%���96%���96%���96%���96%���96%���97%���97%���97%���97%���97%���97%���97%���97%���97%���97%���98%���98%���98%���98%���98%���98%���98%���98%���98%���98%���99%���99%���99%���99%���99%���99%���99%���99%���99%���99%���100%����100%����100%����100%����               integrated:  -19.06 LUFS / -3.94 LU            range:  -19.69 LUFS        true peak:  -1.99 TPFS / 0.795689   [ALBUM'
++ grep -Poi '[-\d.]+\s+LU\s+range'
++ cut '-d ' -f1
++ echo 'analyzing ...   [1/1] "sample.2tracks.different_gain.tainted.mka": 0%��0%��0%��0%��0%��0%��1%��1%��1%��1%��1%��1%��1%��1%��1%��1%��2%��2%��2%��2%��2%��2%��2%��2%��2%��2%��3%��3%��3%��3%��3%��3%��3%��3%��3%��3%��4%��4%��4%��4%��4%��4%��4%��4%��4%��4%��5%��5%��5%��5%��5%��5%��5%��5%��5%��5%��6%��6%��6%��6%��6%��6%��6%��6%��6%��6%��7%��7%��7%��7%��7%��7%��7%��7%��7%��7%��8%��8%��8%��8%��8%��8%��8%��8%��8%��8%��9%��9%��9%��9%��9%��9%��9%��9%��9%��9%��10%���10%���10%���10%���10%���10%���10%���10%���10%���10%���11%���11%���11%���11%���11%���11%���11%���11%���11%���11%���12%���12%���12%���12%���12%���12%���12%���12%���12%���12%���13%���13%���13%���13%���13%���13%���13%���13%���13%���13%���14%���14%���14%���14%���14%���14%���14%���14%���14%���14%���15%���15%���15%���15%���15%���15%���15%���15%���15%���15%���16%���16%���16%���16%���16%���16%���16%���16%���16%���16%���17%���17%���17%���17%���17%���17%���17%���17%���17%���17%���18%���18%���18%���18%���18%���18%���18%���18%���18%���18%���19%���19%���19%���19%���19%���19%���19%���19%���19%���19%���20%���20%���20%���20%���20%���20%���20%���20%���20%���20%���21%���21%���21%���21%���21%���21%���21%���21%���21%���21%���22%���22%���22%���22%���22%���22%���22%���22%���22%���22%���23%���23%���23%���23%���23%���23%���23%���23%���23%���23%���24%���24%���24%���24%���24%���24%���24%���24%���24%���24%���25%���25%���25%���25%���25%���25%���25%���25%���25%���25%���26%���26%���26%���26%���26%���26%���26%���26%���26%���26%���27%���27%���27%���27%���27%���27%���27%���27%���27%���27%���28%���28%���28%���28%���28%���28%���28%���28%���28%���28%���29%���29%���29%���29%���29%���29%���29%���29%���29%���29%���30%���30%���30%���30%���30%���30%���30%���30%���30%���30%���31%���31%���31%���31%���31%���31%���31%���31%���31%���31%���32%���32%���32%���32%���32%���32%���32%���32%���32%���32%���33%���33%���33%���33%���33%���33%���33%���33%���33%���33%���34%���34%���34%���34%���34%���34%���34%���34%���34%���34%���35%���35%���35%���35%���35%���35%���35%���35%���35%���35%���36%���36%���36%���36%���36%���36%���36%���36%���36%���36%���37%���37%���37%���37%���37%���37%���37%���37%���37%���37%���38%���38%���38%���38%���38%���38%���38%���38%���38%���38%���39%���39%���39%���39%���39%���39%���39%���39%���39%���39%���40%���40%���40%���40%���40%���40%���40%���40%���40%���40%���41%���41%���41%���41%���41%���41%���41%���41%���41%���41%���42%���42%���42%���42%���42%���42%���42%���42%���42%���42%���43%���43%���43%���43%���43%���43%���43%���43%���43%���43%���44%���44%���44%���44%���44%���44%���44%���44%���44%���44%���45%���45%���45%���45%���45%���45%���45%���45%���45%���45%���46%���46%���46%���46%���46%���46%���46%���46%���46%���46%���47%���47%���47%���47%���47%���47%���47%���47%���47%���47%���48%���48%���48%���48%���48%���48%���48%���48%���48%���48%���49%���49%���49%���49%���49%���49%���49%���49%���49%���49%���50%���50%���50%���50%���50%���50%���50%���50%���50%���50%���51%���51%���51%���51%���51%���51%���51%���51%���51%���51%���52%���52%���52%���52%���52%���52%���52%���52%���52%���52%���53%���53%���53%���53%���53%���53%���53%���53%���53%���53%���54%���54%���54%���54%���54%���54%���54%���54%���54%���54%���55%���55%���55%���55%���55%���55%���55%���55%���55%���55%���56%���56%���56%���56%���56%���56%���56%���56%���56%���56%���57%���57%���57%���57%���57%���57%���57%���57%���57%���57%���58%���58%���58%���58%���58%���58%���58%���58%���58%���58%���59%���59%���59%���59%���59%���59%���59%���59%���59%���59%���60%���60%���60%���60%���60%���60%���60%���60%���60%���60%���61%���61%���61%���61%���61%���61%���61%���61%���61%���61%���62%���62%���62%���62%���62%���62%���62%���62%���62%���62%���63%���63%���63%���63%���63%���63%���63%���63%���63%���63%���64%���64%���64%���64%���64%���64%���64%���64%���64%���64%���65%���65%���65%���65%���65%���65%���65%���65%���65%���65%���66%���66%���66%���66%���66%���66%���66%���66%���66%���66%���67%���67%���67%���67%���67%���67%���67%���67%���67%���67%���68%���68%���68%���68%���68%���68%���68%���68%���68%���68%���69%���69%���69%���69%���69%���69%���69%���69%���69%���69%���70%���70%���70%���70%���70%���70%���70%���70%���70%���70%���71%���71%���71%���71%���71%���71%���71%���71%���71%���71%���72%���72%���72%���72%���72%���72%���72%���72%���72%���72%���73%���73%���73%���73%���73%���73%���73%���73%���73%���73%���74%���74%���74%���74%���74%���74%���74%���74%���74%���74%���75%���75%���75%���75%���75%���75%���75%���75%���75%���75%���76%���76%���76%���76%���76%���76%���76%���76%���76%���76%���77%���77%���77%���77%���77%���77%���77%���77%���77%���77%���78%���78%���78%���78%���78%���78%���78%���78%���78%���78%���79%���79%���79%���79%���79%���79%���79%���79%���79%���79%���80%���80%���80%���80%���80%���80%���80%���80%���80%���80%���81%���81%���81%���81%���81%���81%���81%���81%���81%���81%���82%���82%���82%���82%���82%���82%���82%���82%���82%���82%���83%���83%���83%���83%���83%���83%���83%���83%���83%���83%���84%���84%���84%���84%���84%���84%���84%���84%���84%���84%���85%���85%���85%���85%���85%���85%���85%���85%���85%���85%���86%���86%���86%���86%���86%���86%���86%���86%���86%���86%���87%���87%���87%���87%���87%���87%���87%���87%���87%���87%���88%���88%���88%���88%���88%���88%���88%���88%���88%���88%���89%���89%���89%���89%���89%���89%���89%���89%���89%���89%���90%���90%���90%���90%���90%���90%���90%���90%���90%���90%���91%���91%���91%���91%���91%���91%���91%���91%���91%���91%���92%���92%���92%���92%���92%���92%���92%���92%���92%���92%���93%���93%���93%���93%���93%���93%���93%���93%���93%���93%���94%���94%���94%���94%���94%���94%���94%���94%���94%���94%���95%���95%���95%���95%���95%���95%���95%���95%���95%���95%���96%���96%���96%���96%���96%���96%���96%���96%���96%���96%���97%���97%���97%���97%���97%���97%���97%���97%���97%���97%���98%���98%���98%���98%���98%���98%���98%���98%���98%���98%���99%���99%���99%���99%���99%���99%���99%���99%���99%���99%���100%����100%����100%����100%����               integrated:  -19.06 LUFS / -3.94 LU            range:  -19.69 LUFS        true peak:  -1.99 TPFS / 0.795689   [ALBUM'
+ TRACKGAIN=-3.94
++ grep -Poi '[-\d.]+\s+LUFS\s+true'
++ echo 'analyzing ...   [1/1] "sample.2tracks.different_gain.tainted.mka": 0%��0%��0%��0%��0%��0%��1%��1%��1%��1%��1%��1%��1%��1%��1%��1%��2%��2%��2%��2%��2%��2%��2%��2%��2%��2%��3%��3%��3%��3%��3%��3%��3%��3%��3%��3%��4%��4%��4%��4%��4%��4%��4%��4%��4%��4%��5%��5%��5%��5%��5%��5%��5%��5%��5%��5%��6%��6%��6%��6%��6%��6%��6%��6%��6%��6%��7%��7%��7%��7%��7%��7%��7%��7%��7%��7%��8%��8%��8%��8%��8%��8%��8%��8%��8%��8%��9%��9%��9%��9%��9%��9%��9%��9%��9%��9%��10%���10%���10%���10%���10%���10%���10%���10%���10%���10%���11%���11%���11%���11%���11%���11%���11%���11%���11%���11%���12%���12%���12%���12%���12%���12%���12%���12%���12%���12%���13%���13%���13%���13%���13%���13%���13%���13%���13%���13%���14%���14%���14%���14%���14%���14%���14%���14%���14%���14%���15%���15%���15%���15%���15%���15%���15%���15%���15%���15%���16%���16%���16%���16%���16%���16%���16%���16%���16%���16%���17%���17%���17%���17%���17%���17%���17%���17%���17%���17%���18%���18%���18%���18%���18%���18%���18%���18%���18%���18%���19%���19++ cut '-d ' -f1
%���19%���19%���19%���19%���19%���19%���19%���19%���20%���20%���20%���20%���20%���20%���20%���20%���20%���20%���21%���21%���21%���21%���21%���21%���21%���21%���21%���21%���22%���22%���22%���22%���22%���22%���22%���22%���22%���22%���23%���23%���23%���23%���23%���23%���23%���23%���23%���23%���24%���24%���24%���24%���24%���24%���24%���24%���24%���24%���25%���25%���25%���25%���25%���25%���25%���25%���25%���25%���26%���26%���26%���26%���26%���26%���26%���26%���26%���26%���27%���27%���27%���27%���27%���27%���27%���27%���27%���27%���28%���28%���28%���28%���28%���28%���28%���28%���28%���28%���29%���29%���29%���29%���29%���29%���29%���29%���29%���29%���30%���30%���30%���30%���30%���30%���30%���30%���30%���30%���31%���31%���31%���31%���31%���31%���31%���31%���31%���31%���32%���32%���32%���32%���32%���32%���32%���32%���32%���32%���33%���33%���33%���33%���33%���33%���33%���33%���33%���33%���34%���34%���34%���34%���34%���34%���34%���34%���34%���34%���35%���35%���35%���35%���35%���35%���35%���35%���35%���35%���36%���36%���36%���36%���36%���36%���36%���36%���36%���36%���37%���37%���37%���37%���37%���37%���37%���37%���37%���37%���38%���38%���38%���38%���38%���38%���38%���38%���38%���38%���39%���39%���39%���39%���39%���39%���39%���39%���39%���39%���40%���40%���40%���40%���40%���40%���40%���40%���40%���40%���41%���41%���41%���41%���41%���41%���41%���41%���41%���41%���42%���42%���42%���42%���42%���42%���42%���42%���42%���42%���43%���43%���43%���43%���43%���43%���43%���43%���43%���43%���44%���44%���44%���44%���44%���44%���44%���44%���44%���44%���45%���45%���45%���45%���45%���45%���45%���45%���45%���45%���46%���46%���46%���46%���46%���46%���46%���46%���46%���46%���47%���47%���47%���47%���47%���47%���47%���47%���47%���47%���48%���48%���48%���48%���48%���48%���48%���48%���48%���48%���49%���49%���49%���49%���49%���49%���49%���49%���49%���49%���50%���50%���50%���50%���50%���50%���50%���50%���50%���50%���51%���51%���51%���51%���51%���51%���51%���51%���51%���51%���52%���52%���52%���52%���52%���52%���52%���52%���52%���52%���53%���53%���53%���53%���53%���53%���53%���53%���53%���53%���54%���54%���54%���54%���54%���54%���54%���54%���54%���54%���55%���55%���55%���55%���55%���55%���55%���55%���55%���55%���56%���56%���56%���56%���56%���56%���56%���56%���56%���56%���57%���57%���57%���57%���57%���57%���57%���57%���57%���57%���58%���58%���58%���58%���58%���58%���58%���58%���58%���58%���59%���59%���59%���59%���59%���59%���59%���59%���59%���59%���60%���60%���60%���60%���60%���60%���60%���60%���60%���60%���61%���61%���61%���61%���61%���61%���61%���61%���61%���61%���62%���62%���62%���62%���62%���62%���62%���62%���62%���62%���63%���63%���63%���63%���63%���63%���63%���63%���63%���63%���64%���64%���64%���64%���64%���64%���64%���64%���64%���64%���65%���65%���65%���65%���65%���65%���65%���65%���65%���65%���66%���66%���66%���66%���66%���66%���66%���66%���66%���66%���67%���67%���67%���67%���67%���67%���67%���67%���67%���67%���68%���68%���68%���68%���68%���68%���68%���68%���68%���68%���69%���69%���69%���69%���69%���69%���69%���69%���69%���69%���70%���70%���70%���70%���70%���70%���70%���70%���70%���70%���71%���71%���71%���71%���71%���71%���71%���71%���71%���71%���72%���72%���72%���72%���72%���72%���72%���72%���72%���72%���73%���73%���73%���73%���73%���73%���73%���73%���73%���73%���74%���74%���74%���74%���74%���74%���74%���74%���74%���74%���75%���75%���75%���75%���75%���75%���75%���75%���75%���75%���76%���76%���76%���76%���76%���76%���76%���76%���76%���76%���77%���77%���77%���77%���77%���77%���77%���77%���77%���77%���78%���78%���78%���78%���78%���78%���78%���78%���78%���78%���79%���79%���79%���79%���79%���79%���79%���79%���79%���79%���80%���80%���80%���80%���80%���80%���80%���80%���80%���80%���81%���81%���81%���81%���81%���81%���81%���81%���81%���81%���82%���82%���82%���82%���82%���82%���82%���82%���82%���82%���83%���83%���83%���83%���83%���83%���83%���83%���83%���83%���84%���84%���84%���84%���84%���84%���84%���84%���84%���84%���85%���85%���85%���85%���85%���85%���85%���85%���85%���85%���86%���86%���86%���86%���86%���86%���86%���86%���86%���86%���87%���87%���87%���87%���87%���87%���87%���87%���87%���87%���88%���88%���88%���88%���88%���88%���88%���88%���88%���88%���89%���89%���89%���89%���89%���89%���89%���89%���89%���89%���90%���90%���90%���90%���90%���90%���90%���90%���90%���90%���91%���91%���91%���91%���91%���91%���91%���91%���91%���91%���92%���92%���92%���92%���92%���92%���92%���92%���92%���92%���93%���93%���93%���93%���93%���93%���93%���93%���93%���93%���94%���94%���94%���94%���94%���94%���94%���94%���94%���94%���95%���95%���95%���95%���95%���95%���95%���95%���95%���95%���96%���96%���96%���96%���96%���96%���96%���96%���96%���96%���97%���97%���97%���97%���97%���97%���97%���97%���97%���97%���98%���98%���98%���98%���98%���98%���98%���98%���98%���98%���99%���99%���99%���99%���99%���99%���99%���99%���99%���99%���100%����100%����100%����100%����               integrated:  -19.06 LUFS / -3.94 LU            range:  -19.69 LUFS        true peak:  -1.99 TPFS / 0.795689   [ALBUM'
+ TRACKRANGE=-19.69
++ grep -Poi '[-\d.]+\s+\[ALBUM'
++ cut '-d ' -f1
++ echo 'analyzing ...   [1/1] "sample.2tracks.different_gain.tainted.mka": 0%��0%��0%��0%��0%��0%��1%��1%��1%��1%��1%��1%��1%��1%��1%��1%��2%��2%��2%��2%��2%��2%��2%��2%��2%��2%��3%��3%��3%��3%��3%��3%��3%��3%��3%��3%��4%��4%��4%��4%��4%��4%��4%��4%��4%��4%��5%��5%��5%��5%��5%��5%��5%��5%��5%��5%��6%��6%��6%��6%��6%��6%��6%��6%��6%��6%��7%��7%��7%��7%��7%��7%��7%��7%��7%��7%��8%��8%��8%��8%��8%��8%��8%��8%��8%��8%��9%��9%��9%��9%��9%��9%��9%��9%��9%��9%��10%���10%���10%���10%���10%���10%���10%���10%���10%���10%���11%���11%���11%���11%���11%���11%���11%���11%���11%���11%���12%���12%���12%���12%���12%���12%���12%���12%���12%���12%���13%���13%���13%���13%���13%���13%���13%���13%���13%���13%���14%���14%���14%���14%���14%���14%���14%���14%���14%���14%���15%���15%���15%���15%���15%���15%���15%���15%���15%���15%���16%���16%���16%���16%���16%���16%���16%���16%���16%���16%���17%���17%���17%���17%���17%���17%���17%���17%���17%���17%���18%���18%���18%���18%���18%���18%���18%���18%���18%���18%���19%���19%���19%���19%���19%���19%���19%���19%���19%���19%���20%���20%���20%���20%���20%���20%���20%���20%���20%���20%���21%���21%���21%���21%���21%���21%���21%���21%���21%���21%���22%���22%���22%���22%���22%���22%���22%���22%���22%���22%���23%���23%���23%���23%���23%���23%���23%���23%���23%���23%���24%���24%���24%���24%���24%���24%���24%���24%���24%���24%���25%���25%���25%���25%���25%���25%���25%���25%���25%���25%���26%���26%���26%���26%���26%���26%���26%���26%���26%���26%���27%���27%���27%���27%���27%���27%���27%���27%���27%���27%���28%���28%���28%���28%���28%���28%���28%���28%���28%���28%���29%���29%���29%���29%���29%���29%���29%���29%���29%���29%���30%���30%���30%���30%���30%���30%���30%���30%���30%���30%���31%���31%���31%���31%���31%���31%���31%���31%���31%���31%���32%���32%���32%���32%���32%���32%���32%���32%���32%���32%���33%���33%���33%���33%���33%���33%���33%���33%���33%���33%���34%���34%���34%���34%���34%���34%���34%���34%���34%���34%���35%���35%���35%���35%���35%���35%���35%���35%���35%���35%���36%���36%���36%���36%���36%���36%���36%���36%���36%���36%���37%���37%���37%���37%���37%���37%���37%���37%���37%���37%���38%���38%���38%���38%���38%���38%���38%���38%���38%���38%���39%���39%���39%���39%���39%���39%���39%���39%���39%���39%���40%���40%���40%���40%���40%���40%���40%���40%���40%���40%���41%���41%���41%���41%���41%���41%���41%���41%���41%���41%���42%���42%���42%���42%���42%���42%���42%���42%���42%���42%���43%���43%���43%���43%���43%���43%���43%���43%���43%���43%���44%���44%���44%���44%���44%���44%���44%���44%���44%���44%���45%���45%���45%���45%���45%���45%���45%���45%���45%���45%���46%���46%���46%���46%���46%���46%���46%���46%���46%���46%���47%���47%���47%���47%���47%���47%���47%���47%���47%���47%���48%���48%���48%���48%���48%���48%���48%���48%���48%���48%���49%���49%���49%���49%���49%���49%���49%���49%���49%���49%���50%���50%���50%���50%���50%���50%���50%���50%���50%���50%���51%���51%���51%���51%���51%���51%���51%���51%���51%���51%���52%���52%���52%���52%���52%���52%���52%���52%���52%���52%���53%���53%���53%���53%���53%���53%���53%���53%���53%���53%���54%���54%���54%���54%���54%���54%���54%���54%���54%���54%���55%���55%���55%���55%���55%���55%���55%���55%���55%���55%���56%���56%���56%���56%���56%���56%���56%���56%���56%���56%���57%���57%���57%���57%���57%���57%���57%���57%���57%���57%���58%���58%���58%���58%���58%���58%���58%���58%���58%���58%���59%���59%���59%���59%���59%���59%���59%���59%���59%���59%���60%���60%���60%���60%���60%���60%���60%���60%���60%���60%���61%���61%���61%���61%���61%���61%���61%���61%���61%���61%���62%���62%���62%���62%���62%���62%���62%���62%���62%���62%���63%���63%���63%���63%���63%���63%���63%���63%���63%���63%���64%���64%���64%���64%���64%���64%���64%���64%���64%���64%���65%���65%���65%���65%���65%���65%���65%���65%���65%���65%���66%���66%���66%���66%���66%���66%���66%���66%���66%���66%���67%���67%���67%���67%���67%���67%���67%���67%���67%���67%���68%���68%���68%���68%���68%���68%���68%���68%���68%���68%���69%���69%���69%���69%���69%���69%���69%���69%���69%���69%���70%���70%���70%���70%���70%���70%���70%���70%���70%���70%���71%���71%���71%���71%���71%���71%���71%���71%���71%���71%���72%���72%���72%���72%���72%���72%���72%���72%���72%���72%���73%���73%���73%���73%���73%���73%���73%���73%���73%���73%���74%���74%���74%���74%���74%���74%���74%���74%���74%���74%���75%���75%���75%���75%���75%���75%���75%���75%���75%���75%���76%���76%���76%���76%���76%���76%���76%���76%���76%���76%���77%���77%���77%���77%���77%���77%���77%���77%���77%���77%���78%���78%���78%���78%���78%���78%���78%���78%���78%���78%���79%���79%���79%���79%���79%���79%���79%���79%���79%���79%���80%���80%���80%���80%���80%���80%���80%���80%���80%���80%���81%���81%���81%���81%���81%���81%���81%���81%���81%���81%���82%���82%���82%���82%���82%���82%���82%���82%���82%���82%���83%���83%���83%���83%���83%���83%���83%���83%���83%���83%���84%���84%���84%���84%���84%���84%���84%���84%���84%���84%���85%���85%���85%���85%���85%���85%���85%���85%���85%���85%���86%���86%���86%���86%���86%���86%���86%���86%���86%���86%���87%���87%���87%���87%���87%���87%���87%���87%���87%���87%���88%���88%���88%���88%���88%���88%���88%���88%���88%���88%���89%���89%���89%���89%���89%���89%���89%���89%���89%���89%���90%���90%���90%���90%���90%���90%���90%���90%���90%���90%���91%���91%���91%���91%���91%���91%���91%���91%���91%���91%���92%���92%���92%���92%���92%���92%���92%���92%���92%���92%���93%���93%���93%���93%���93%���93%���93%���93%���93%���93%���94%���94%���94%���94%���94%���94%���94%���94%���94%���94%���95%���95%���95%���95%���95%���95%���95%���95%���95%���95%���96%���96%���96%���96%���96%���96%���96%���96%���96%���96%���97%���97%���97%���97%���97%���97%���97%���97%���97%���97%���98%���98%���98%���98%���98%���98%���98%���98%���98%���98%���99%���99%���99%���99%���99%���99%���99%���99%���99%���99%���100%����100%����100%����100%����               integrated:  -19.06 LUFS / -3.94 LU            range:  -19.69 LUFS        true peak:  -1.99 TPFS / 0.795689   [ALBUM'
+ TRACKPEAK=0.795689
+ [[ -3.94 == '' ]]
+ [[ 0.795689 == '' ]]
+ echo '<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE Tags SYSTEM "matroskatags.dtd">
<Tags>
  <Tag>
    <Targets>
    </Targets>
    <Simple>
      <Name>REPLAYGAIN_ALGORITHM</Name>
      <String>ITU-R BS.1770</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_REFERENCE_LOUDNESS</Name>
      <String>-23.0</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_TRACK_GAIN</Name>
      <String>-3.94</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_TRACK_RANGE</Name>
      <String>-19.69</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_TRACK_PEAK</Name>
      <String>0.795689</String>
    </Simple>
    <Simple>
    <Name>REPLAYGAIN_ALBUM_GAIN</Name>
      <String>-3.94</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_ALBUM_RANGE</Name>
      <String>-19.69</String>
    </Simple>
    <Simple>
      <Name>REPLAYGAIN_ALBUM_PEAK</Name>
      <String>0.795689</String>
    </Simple>
  </Tag>
</Tags>'
+ echo 'INFO: Applying gain (-3.94) / true peak (0.795689) / range (-19.69) for track 1 on file '\''sample.2tracks.different_gain.tainted.mka'\''.'
INFO: Applying gain (-3.94) / true peak (0.795689) / range (-19.69) for track 1 on file 'sample.2tracks.different_gain.tainted.mka'.
+ mkvpropedit --tags track:a2:/tmp/tmp.I8qLMXxYun sample.2tracks.different_gain.tainted.mka
The file is being analyzed.
The changes are written to the file.
Done.
+ [[ false == true ]]
+ (( fileprocessed++ ))
+ [[ 2 -gt 0 ]]
+ (( i++ ))
+ echo 1
1
+ IFS=
+ read -r -d '' file
+ echo 0
0
+ [[ 0 == 0 ]]
+ cleantmp 1
+ rm -f /tmp/tmp.I8qLMXxYun
+ [[ ! -z 1 ]]
+ exit 1

See how there must be another while iteration, when really there should not. And then $i suddenly is 0. I honestly don't know how that can happen. Just guessing here, but is it possible that the loop runs in a subshell? Could explain, why i is reset to 0.

mkvrg.py doesn't work for me whilst mkvrg does

$ ./mkvrg.py -v all $HOME/Videos/<video.mkv>
mkvrg [WARNING]: No files found to process.

$ ./mkvrg.py $HOME/Videos/<video.mkv>
INFO: Running bs1770gain, this can take a while. (...)

Any ideas? Is mkvrg.py supposed to work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.