Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2:Update
kdenlive
kdenlive-0.9.2-no_avformat.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdenlive-0.9.2-no_avformat.patch of Package kdenlive
Index: src/widgets/renderwidget.cpp =================================================================== --- src/widgets/renderwidget.cpp.orig +++ src/widgets/renderwidget.cpp @@ -1280,53 +1280,47 @@ void RenderWidget::refreshView() } // Make sure the selected profile uses an installed avformat codec / format - if (!formatsList.isEmpty()) { - QString format; - if (std.startsWith("f=")) format = std.section("f=", 1, 1); - else if (std.contains(" f=")) format = std.section(" f=", 1, 1); - if (!format.isEmpty()) { - format = format.section(' ', 0, 0).toLower(); - if (!formatsList.contains(format)) { - kDebug() << "***** UNSUPPORTED F: " << format; - //sizeItem->setHidden(true); - //sizeItem-item>setFlags(Qt::ItemIsSelectable); - dupItem->setToolTip(i18n("Unsupported video format: %1", format)); - dupItem->setIcon(brokenIcon); - dupItem->setForeground(disabled); - } + QString format; + if (std.startsWith("f=")) format = std.section("f=", 1, 1); + else if (std.contains(" f=")) format = std.section(" f=", 1, 1); + if (!format.isEmpty()) { + format = format.section(' ', 0, 0).toLower(); + if (formatsList.isEmpty() || !formatsList.contains(format)) { + kDebug() << "***** UNSUPPORTED F: " << format; + //sizeItem->setHidden(true); + //sizeItem-item>setFlags(Qt::ItemIsSelectable); + dupItem->setToolTip(i18n("Unsupported video format: %1", format)); + dupItem->setIcon(brokenIcon); + dupItem->setForeground(disabled); } } - if (!acodecsList.isEmpty()) { - QString format; - if (std.startsWith("acodec=")) format = std.section("acodec=", 1, 1); - else if (std.contains(" acodec=")) format = std.section(" acodec=", 1, 1); - if (!format.isEmpty()) { - format = format.section(' ', 0, 0).toLower(); - if (!acodecsList.contains(format)) { - kDebug() << "***** UNSUPPORTED ACODEC: " << format; - //sizeItem->setHidden(true); - //sizeItem->setFlags(Qt::ItemIsSelectable); - dupItem->setToolTip(i18n("Unsupported audio codec: %1", format)); - dupItem->setIcon(brokenIcon); - dupItem->setForeground(disabled); - dupItem->setBackground(disabledbg); - } + QString acodec; + if (std.startsWith("acodec=")) acodec = std.section("acodec=", 1, 1); + else if (std.contains(" acodec=")) acodec = std.section(" acodec=", 1, 1); + if (!acodec.isEmpty()) { + acodec = acodec.section(' ', 0, 0).toLower(); + if (acodecsList.isEmpty() || !acodecsList.contains(acodec)) { + kDebug() << "***** UNSUPPORTED ACODEC: " << acodec; + //sizeItem->setHidden(true); + //sizeItem->setFlags(Qt::ItemIsSelectable); + dupItem->setToolTip(i18n("Unsupported audio codec: %1", acodec)); + dupItem->setIcon(brokenIcon); + dupItem->setForeground(disabled); + dupItem->setBackground(disabledbg); } } - if (!vcodecsList.isEmpty()) { - QString format; - if (std.startsWith("vcodec=")) format = std.section("vcodec=", 1, 1); - else if (std.contains(" vcodec=")) format = std.section(" vcodec=", 1, 1); - if (!format.isEmpty()) { - format = format.section(' ', 0, 0).toLower(); - if (!vcodecsList.contains(format)) { - kDebug() << "***** UNSUPPORTED VCODEC: " << format; - //sizeItem->setHidden(true); - //sizeItem->setFlags(Qt::ItemIsSelectable); - dupItem->setToolTip(i18n("Unsupported video codec: %1", format)); - dupItem->setIcon(brokenIcon); - dupItem->setForeground(disabled); - } + QString vcodec; + if (std.startsWith("vcodec=")) vcodec = std.section("vcodec=", 1, 1); + else if (std.contains(" vcodec=")) vcodec = std.section(" vcodec=", 1, 1); + if (!vcodec.isEmpty()) { + vcodec = vcodec.section(' ', 0, 0).toLower(); + if (vcodecsList.isEmpty() || !vcodecsList.contains(vcodec)) { + kDebug() << "***** UNSUPPORTED VCODEC: " << vcodec; + //sizeItem->setHidden(true); + //sizeItem->setFlags(Qt::ItemIsSelectable); + dupItem->setToolTip(i18n("Unsupported video codec: %1", vcodec)); + dupItem->setIcon(brokenIcon); + dupItem->setForeground(disabled); } } if (std.contains(" profile=") || std.startsWith("profile=")) { Index: export/profiles.xml =================================================================== --- export/profiles.xml.orig +++ export/profiles.xml @@ -59,6 +59,10 @@ <profile name="Apple Quicktime" bitrates="400,1000,2000" defaultbitrate="2000" extension="mov" args="acodec=aac ab=128k ac=2 ar=48000 vcodec=mpeg4 vb=%bitrate+'k' aspect=%dar pass=%passes" /> </group> + + <group name="Raw DV" renderer="libdv" type="av" extension="dv"> + <profile name="libdv" /> + </group> <group name="Raw DV" renderer="avformat" type="av" extension="dv"> <profile name="DV PAL 4:3" standard="PAL" args="properties=dv_pal/DV mlt_profile=dv_pal" />
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor