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
4c3c54f4
Commit
4c3c54f4
authored
5 years ago
by
Conrad Zelck
Browse files
Options
Downloads
Patches
Plain Diff
add splash info at start before analyzing file
close #1 Signed-off-by:
Conrad Zelck
<
git@simpel.cc
>
parent
f2546a79
No related branches found
Branches containing commit
Tags
1.1.0.13
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R128.au3
+4
-0
4 additions, 0 deletions
R128.au3
with
4 additions
and
0 deletions
R128.au3
+
4
−
0
View file @
4c3c54f4
...
@@ -43,6 +43,8 @@ Else
...
@@ -43,6 +43,8 @@ Else
EndIf
EndIf
EndIf
EndIf
SplashTextOn("Be patient", "R128 is analysing file ...", 300, 50)
; how many video streams to increase stream counter
; how many video streams to increase stream counter
Local $sCommand = '-i "' & $sFile & '" -v 0 -show_entries stream=codec_type -of default=nw=1:nk=1'
Local $sCommand = '-i "' & $sFile & '" -v 0 -show_entries stream=codec_type -of default=nw=1:nk=1'
Local $sCodecs = _runFFprobe('ffprobe ' & $sCommand, $sPathFFprobe)
Local $sCodecs = _runFFprobe('ffprobe ' & $sCommand, $sPathFFprobe)
...
@@ -54,6 +56,7 @@ ConsoleWrite("Counter video: " & $iCounterVideo & @CRLF)
...
@@ -54,6 +56,7 @@ ConsoleWrite("Counter video: " & $iCounterVideo & @CRLF)
; is audio inside?
; is audio inside?
StringReplace($sCodecs, "audio", "audio") ; just to get the count
StringReplace($sCodecs, "audio", "audio") ; just to get the count
If @extended = 0 Then
If @extended = 0 Then
SplashOff()
MsgBox($MB_TOPMOST, "Error", "No audio channels found.")
MsgBox($MB_TOPMOST, "Error", "No audio channels found.")
Exit
Exit
EndIf
EndIf
...
@@ -61,6 +64,7 @@ EndIf
...
@@ -61,6 +64,7 @@ EndIf
; channel layout for all audio streams
; channel layout for all audio streams
$sCommand = '-i "' & $sFile & '" -v 0 -select_streams a -show_entries stream=channels -of default=nw=1:nk=1'
$sCommand = '-i "' & $sFile & '" -v 0 -select_streams a -show_entries stream=channels -of default=nw=1:nk=1'
Local $sChannels = _runFFprobe('ffprobe ' & $sCommand, $sPathFFprobe)
Local $sChannels = _runFFprobe('ffprobe ' & $sCommand, $sPathFFprobe)
SplashOff()
Local $aChannels = StringSplit($sChannels, @CRLF, $STR_ENTIRESPLIT)
Local $aChannels = StringSplit($sChannels, @CRLF, $STR_ENTIRESPLIT)
If Not IsArray($aChannels) Then
If Not IsArray($aChannels) Then
MsgBox($MB_TOPMOST, "Error", "No audio channels found.")
MsgBox($MB_TOPMOST, "Error", "No audio channels found.")
...
...
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