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
Multimedia
Kdenlive
Commits
f109595e
Commit
f109595e
authored
Sep 02, 2019
by
Jean-Baptiste Mardelle
Browse files
Another attempt to fix Windows screengrab
#344
parent
b39bae6b
Pipeline
#7282
passed with stage
in 13 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/recmanager.cpp
View file @
f109595e
...
...
@@ -245,13 +245,16 @@ void RecManager::slotRecord(bool record)
// Find first audio device
QProcess
tst
;
tst
.
setProcessChannelMode
(
QProcess
::
MergedChannels
);
tst
.
start
(
KdenliveSettings
::
ffmpegpath
(),
{
"-hide_banner"
,
"-list_devices"
,
"true"
,
"-f"
,
"dshow"
,
"-i"
,
"dummy"
});
tst
.
waitForFinished
(
4000
);
QString
dshowOutput
=
QString
::
fromUtf8
(
tst
.
readAll
());
tst
.
waitForFinished
();
QString
dshowOutput
=
QString
::
fromUtf8
(
tst
.
readAll
StandardOutput
());
if
(
dshowOutput
.
contains
(
QLatin1String
(
"audio devices"
)))
{
dshowOutput
=
dshowOutput
.
section
(
QLatin1String
(
"audio devices"
),
1
);
dshowOutput
=
dshowOutput
.
section
(
QLatin1Char
(
'"'
),
1
,
1
);
params
.
replace
(
QLatin1String
(
"default"
),
QString
(
"audio=
\"
%1
\"
"
).
arg
(
dshowOutput
));
}
else
{
qDebug
()
<<
KdenliveSettings
::
ffmpegpath
()
<<
"=== GOT DSHOW DEVICES: "
<<
dshowOutput
;
}
captureArgs
<<
params
.
split
(
QLatin1Char
(
' '
));
}
else
if
(
!
KdenliveSettings
::
grab_parameters
().
simplified
().
isEmpty
())
{
...
...
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