Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
259
Issues
259
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Multimedia
Kdenlive
Commits
fe684e7e
Commit
fe684e7e
authored
Apr 18, 2017
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '17.04'
parents
209e4fcc
456635ac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
14 deletions
+36
-14
src/mainwindow.cpp
src/mainwindow.cpp
+1
-1
src/project/cliptranscode.cpp
src/project/cliptranscode.cpp
+18
-7
src/project/jobs/cutclipjob.cpp
src/project/jobs/cutclipjob.cpp
+6
-1
src/project/jobs/proxyclipjob.cpp
src/project/jobs/proxyclipjob.cpp
+11
-3
src/ui/projectsettings_ui.ui
src/ui/projectsettings_ui.ui
+0
-2
No files found.
src/mainwindow.cpp
View file @
fe684e7e
...
...
@@ -3345,7 +3345,7 @@ void MainWindow::slotTranscode(const QStringList &urls)
m_messageLabel
->
setMessage
(
i18n
(
"No clip to transcode"
),
ErrorMessage
);
return
;
}
qCDebug
(
KDENLIVE_LOG
)
<<
"// TRANSODIN
F
FOLDER: "
<<
pCore
->
bin
()
->
getFolderInfo
();
qCDebug
(
KDENLIVE_LOG
)
<<
"// TRANSODIN
G
FOLDER: "
<<
pCore
->
bin
()
->
getFolderInfo
();
ClipTranscode
*
d
=
new
ClipTranscode
(
urls
,
params
,
QStringList
(),
desc
,
pCore
->
bin
()
->
getFolderInfo
());
connect
(
d
,
&
ClipTranscode
::
addClip
,
this
,
&
MainWindow
::
slotAddProjectClip
);
d
->
show
();
...
...
src/project/cliptranscode.cpp
View file @
fe684e7e
...
...
@@ -46,13 +46,17 @@ ClipTranscode::ClipTranscode(const QStringList &urls, const QString ¶ms, con
auto_add
->
setChecked
(
KdenliveSettings
::
add_new_clip
());
if
(
m_urls
.
count
()
==
1
)
{
QString
fileName
=
m_urls
.
first
();
//.section(QLatin1Char('.'), 0, -1);
QString
newFile
=
params
.
section
(
QLatin1Char
(
' '
),
-
1
).
replace
(
QLatin1String
(
"%1"
),
fileName
);
QUrl
dest
=
QUrl
::
fromLocalFile
(
newFile
);
source_url
->
setUrl
(
QUrl
::
fromLocalFile
(
m_urls
.
first
()));
QString
fileName
=
m_urls
.
first
();
source_url
->
setUrl
(
QUrl
::
fromLocalFile
(
fileName
));
dest_url
->
setMode
(
KFile
::
File
);
dest_url
->
setUrl
(
dest
);
dest_url
->
setMode
(
KFile
::
File
);
//OperationMode(KFileDialog::Saving);
#if KXMLGUI_VERSION_MINOR > 32 || KXMLGUI_VERSION_MAJOR > 5
dest_url
->
setAcceptMode
(
QFileDialog
::
AcceptSave
);
#endif
if
(
!
params
.
isEmpty
())
{
QString
newFile
=
params
.
section
(
QLatin1Char
(
' '
),
-
1
).
replace
(
QLatin1String
(
"%1"
),
fileName
);
QUrl
dest
=
QUrl
::
fromLocalFile
(
newFile
);
dest_url
->
setUrl
(
dest
);
}
urls_list
->
setHidden
(
true
);
connect
(
source_url
,
SIGNAL
(
textChanged
(
QString
)),
this
,
SLOT
(
slotUpdateParams
()));
}
else
{
...
...
@@ -145,7 +149,11 @@ void ClipTranscode::slotStartTransCode()
}
QString
extension
=
params
.
section
(
QStringLiteral
(
"%1"
),
1
,
1
).
section
(
QLatin1Char
(
' '
),
0
,
0
);
QString
s_url
=
source_url
->
url
().
toLocalFile
();
parameters
<<
QStringLiteral
(
"-i"
)
<<
s_url
;
if
(
params
.
contains
(
QLatin1String
(
"-i "
)))
{
// Filename must be inserted later
}
else
{
parameters
<<
QStringLiteral
(
"-i"
)
<<
s_url
;
}
if
(
QFile
::
exists
(
destination
+
extension
))
{
if
(
KMessageBox
::
questionYesNo
(
this
,
i18n
(
"File %1 already exists.
\n
Do you want to overwrite it?"
,
destination
+
extension
))
==
KMessageBox
::
No
)
{
// Abort operation
...
...
@@ -170,6 +178,9 @@ void ClipTranscode::slotStartTransCode()
}
else
if
(
!
m_postParams
.
isEmpty
()
&&
s
==
QLatin1String
(
"-vf"
))
{
replaceVfParams
=
true
;
parameters
<<
s
;
}
else
if
(
s
==
QLatin1String
(
"-i"
))
{
parameters
<<
s
;
parameters
<<
s_url
;
}
else
{
parameters
<<
s
;
}
...
...
src/project/jobs/cutclipjob.cpp
View file @
fe684e7e
...
...
@@ -85,13 +85,18 @@ void CutClipJob::startJob()
parameters
<<
QStringLiteral
(
"-select_streams"
)
<<
QStringLiteral
(
"v"
)
<<
QStringLiteral
(
"-show_frames"
)
<<
QStringLiteral
(
"-hide_banner"
)
<<
QStringLiteral
(
"-of"
)
<<
QStringLiteral
(
"json=c=1"
)
<<
m_src
;
exec
=
KdenliveSettings
::
ffprobepath
();
}
else
{
parameters
<<
QStringLiteral
(
"-i"
)
<<
m_src
;
if
(
!
m_cutExtraParams
.
contains
(
QLatin1String
(
"-i "
)))
{
parameters
<<
QStringLiteral
(
"-i"
)
<<
m_src
;
}
if
(
!
m_start
.
isEmpty
())
{
parameters
<<
QStringLiteral
(
"-ss"
)
<<
m_start
<<
QStringLiteral
(
"-t"
)
<<
m_end
;
}
if
(
!
m_cutExtraParams
.
isEmpty
())
{
foreach
(
const
QString
&
s
,
m_cutExtraParams
.
split
(
QLatin1Char
(
' '
)))
{
parameters
<<
s
;
if
(
s
==
QLatin1String
(
"-i"
))
{
parameters
<<
m_src
;
}
}
}
...
...
src/project/jobs/proxyclipjob.cpp
View file @
fe684e7e
...
...
@@ -172,11 +172,19 @@ void ProxyJob::startJob()
// The noautorotate flag must be passed before input source
parameters
<<
QStringLiteral
(
"-noautorotate"
);
}
parameters
<<
QStringLiteral
(
"-i"
)
<<
m_src
;
if
(
m_proxyParams
.
contains
(
QLatin1String
(
"-i "
)))
{
// we have some pre-filename parameters, filename will be inserted later
}
else
{
parameters
<<
QStringLiteral
(
"-i"
)
<<
m_src
;
}
QString
params
=
m_proxyParams
;
foreach
(
const
QString
&
s
,
params
.
split
(
QLatin1Char
(
' '
)))
{
if
(
s
!=
QLatin1String
(
"-noautorotate"
))
{
parameters
<<
s
;
QString
t
=
s
.
simplified
();
if
(
t
!=
QLatin1String
(
"-noautorotate"
))
{
parameters
<<
t
;
if
(
t
==
QLatin1String
(
"-i"
))
{
parameters
<<
m_src
;
}
}
}
...
...
src/ui/projectsettings_ui.ui
View file @
fe684e7e
...
...
@@ -308,8 +308,6 @@
<zorder>
video_thumbs
</zorder>
<zorder>
audio_thumbs
</zorder>
<zorder>
enable_proxy
</zorder>
<zorder></zorder>
<zorder>
horizontalSpacer
</zorder>
<zorder>
previewparams
</zorder>
</widget>
<widget
class=
"QWidget"
name=
"tab_3"
>
...
...
Write
Preview
Markdown
is supported
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