Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
R128
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Conrad Zelck
R128
Commits
c43dc875
Commit
c43dc875
authored
5 years ago
by
Conrad Zelck
Browse files
Options
Downloads
Patches
Plain Diff
add error if number of mono tracks is uneven
Signed-off-by:
Conrad Zelck
<
git@simpel.cc
>
parent
28b1a9b1
No related branches found
Branches containing commit
Tags
1.1.0.12
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R128.au3
+5
-4
5 additions, 4 deletions
R128.au3
README.md
+1
-0
1 addition, 0 deletions
README.md
with
6 additions
and
4 deletions
R128.au3
+
5
−
4
View file @
c43dc875
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#AutoIt3Wrapper_Icon=Icons\peakmeter.ico
#AutoIt3Wrapper_Icon=Icons\peakmeter.ico
#AutoIt3Wrapper_Res_Comment=Measure loudness with ffmpeg according to R128.
#AutoIt3Wrapper_Res_Comment=Measure loudness with ffmpeg according to R128.
#AutoIt3Wrapper_Res_Description=Measure loudness with ffmpeg according to R128.
#AutoIt3Wrapper_Res_Description=Measure loudness with ffmpeg according to R128.
#AutoIt3Wrapper_Res_Fileversion=1.1.0.1
2
#AutoIt3Wrapper_Res_Fileversion=1.1.0.1
3
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_CompanyName=Norddeutscher Rundfunk
#AutoIt3Wrapper_Res_CompanyName=Norddeutscher Rundfunk
#AutoIt3Wrapper_Res_LegalCopyright=Conrad Zelck
#AutoIt3Wrapper_Res_LegalCopyright=Conrad Zelck
...
@@ -92,8 +92,9 @@ If @extended > 0 Then
...
@@ -92,8 +92,9 @@ If @extended > 0 Then
$iMonoCount = @extended
$iMonoCount = @extended
If $iMonoCount = $aChannels[0] Then
If $iMonoCount = $aChannels[0] Then
$iLayout = $eMONO
$iLayout = $eMONO
If Mod($iMonoCount, 2) <> 0 Then $iLayout = 0 ; uneven counter
EndIf
EndIf
ConsoleWrite("Monofiles: " &
@extended
& @CRLF)
ConsoleWrite("Monofiles: " &
$iMonoCount
& @CRLF)
EndIf
EndIf
StringReplace($sChannels, "2", "2") ; just to get the count
StringReplace($sChannels, "2", "2") ; just to get the count
If @extended > 0 Then
If @extended > 0 Then
...
@@ -101,7 +102,7 @@ If @extended > 0 Then
...
@@ -101,7 +102,7 @@ If @extended > 0 Then
If $iStereoCount = $aChannels[0] Then
If $iStereoCount = $aChannels[0] Then
$iLayout = $eSTEREO
$iLayout = $eSTEREO
EndIf
EndIf
ConsoleWrite("Stereofiles: " &
@extended
& @CRLF)
ConsoleWrite("Stereofiles: " &
$iStereoCount
& @CRLF)
EndIf
EndIf
Local $iMeasuringPairs = 0
Local $iMeasuringPairs = 0
Switch $iLayout
Switch $iLayout
...
@@ -113,7 +114,7 @@ Switch $iLayout
...
@@ -113,7 +114,7 @@ Switch $iLayout
ConsoleWrite("All STEREO" & @CRLF)
ConsoleWrite("All STEREO" & @CRLF)
Case Else
Case Else
ConsoleWrite("UNDEFINED Layout" & @CRLF)
ConsoleWrite("UNDEFINED Layout" & @CRLF)
MsgBox($MB_TOPMOST, "Error", "Track layout is undefined." & @CRLF & "Application exits.")
MsgBox($MB_TOPMOST, "Error", "Track layout is undefined." & @CRLF &
@CRLF &
"Application exits.")
Exit
Exit
EndSwitch
EndSwitch
ConsoleWrite("Pairs for measuring: " & $iMeasuringPairs & @CRLF)
ConsoleWrite("Pairs for measuring: " & $iMeasuringPairs & @CRLF)
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
c43dc875
...
@@ -3,4 +3,5 @@ This application measures loudness according to EBU R128 with ffmpeg.
...
@@ -3,4 +3,5 @@ This application measures loudness according to EBU R128 with ffmpeg.
You can send video or audio files to the app.
You can send video or audio files to the app.
Channel layout inside video can be mono or stereo. But mono files will temporarily merge to a stereo file at first.
Channel layout inside video can be mono or stereo. But mono files will temporarily merge to a stereo file at first.
If number of mono tracks is uneven it will return an error.
Temporary output.wav is exported to %temp% in 24bit 48kHz.
Temporary output.wav is exported to %temp% in 24bit 48kHz.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment