Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
devtools
videochecker
Commits
51c39c9a
Commit
51c39c9a
authored
May 31, 2021
by
Stéphane Diemer
Browse files
Added max_muxing_queue_size to ffmpeg check command | refs #34039
parent
feb4bde9
Changes
1
Hide whitespace changes
Inline
Side-by-side
videochecker.py
View file @
51c39c9a
...
...
@@ -105,12 +105,12 @@ class MediaChecker:
os
.
makedirs
(
logs_dir
,
exist_ok
=
True
)
deep_log
=
os
.
path
.
join
(
logs_dir
,
deep_log
)
if
self
.
options
.
max_duration
:
cmd
=
f
'ffmpeg -v error -i "
{
path
}
" -t
{
self
.
options
.
max_duration
}
-f null - >"
{
deep_log
}
" 2>&1'
cmd
=
f
'ffmpeg -v error -i "
{
path
}
"
-max_muxing_queue_size 4096
-t
{
self
.
options
.
max_duration
}
-f null - >"
{
deep_log
}
" 2>&1'
else
:
cmd
=
f
'ffmpeg -v error -i "
{
path
}
" -f null - >"
{
deep_log
}
" 2>&1'
cmd
=
f
'ffmpeg -v error -i "
{
path
}
"
-max_muxing_queue_size 4096
-f null - >"
{
deep_log
}
" 2>&1'
logging
.
debug
(
f
'Running
{
cmd
}
'
)
status
,
output
=
subprocess
.
getstatusoutput
(
cmd
)
if
os
.
path
.
getsize
(
deep_log
)
>
0
:
if
os
.
path
.
getsize
(
deep_log
)
and
os
.
path
.
getsize
(
deep_log
)
>
0
:
logging
.
error
(
f
'Found decoding errors, media is corrupted, logs in
{
deep_log
}
'
)
return
False
elif
status
!=
0
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment