Commit 8bee1d86 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Remember last used parameter for edit friendly transcoding

parent 9222a7c7
Pipeline #58299 passed with stage
in 9 minutes and 24 seconds
......@@ -37,6 +37,5 @@ DVD NTSC 16:9=-f dvd -r 23.976 -vf scale=720:480 -aspect 16:9 -minrate 0 -maxrat
[intermediate]
Lossy x264 I frame only=-f mp4 -codec:v libx264 -g 1 -bf 0 -crf 15 -preset medium -codec:a aac -ab 256k %1.mp4
Lossy x264 I frame only (NVidia GPU)=-f mp4 -vsync 0 -c:v %nvcodec -i -codec:v h264_nvenc -g 1 -bf 0 -codec:a aac -ab 256k %1.mp4
Lossy x264 I frame only (NVidia GPU)=-f mp4 -vsync 0 -c:v %nvcodec -i -codec:v h264_nvenc -g 1 -bf 0 -codec:a aac -ab 256k %1.mp4
Intermediate DNxHR HQ (Large files)=-f mov -codec:a alac -codec:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p %1.mov
Lossless (Huge files)=-f matroska -codec:a pcm_f32le -codec:v utvideo -pix_fmt yuv422p %1.mkv
......@@ -225,6 +225,11 @@
<default></default>
</entry>
<entry name="transcodeFriendly" type="String">
<label>Name of the default transcoding profile for edit friendly convert.</label>
<default>Lossy x264 I frame only</default>
</entry>
<entry name="previewextension" type="String">
<label>File extension for timeline preview.</label>
<default></default>
......
......@@ -40,6 +40,10 @@ TranscodeSeek::TranscodeSeek(QWidget *parent)
KConfigGroup group(&conf, "intermediate");
m_encodeParams = group.entryMap();
encodingprofiles->addItems(group.keyList());
int ix = encodingprofiles->findText(KdenliveSettings::transcodeFriendly());
if (ix > -1) {
encodingprofiles->setCurrentIndex(ix);
}
}
TranscodeSeek::~TranscodeSeek()
......@@ -63,5 +67,6 @@ std::vector<QString> TranscodeSeek::ids() const
QString TranscodeSeek::params() const
{
KdenliveSettings::setTranscodeFriendly(encodingprofiles->currentText());
return m_encodeParams.value(encodingprofiles->currentText());
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment