]> git.sesse.net Git - kdenlive/commitdiff
New versions of FFmpeg are likely not to have libfaac since it requires
authorDan Dennedy <dan@dennedy.org>
Wed, 16 Sep 2009 03:38:36 +0000 (03:38 +0000)
committerDan Dennedy <dan@dennedy.org>
Wed, 16 Sep 2009 03:38:36 +0000 (03:38 +0000)
--enable-nonfree, and a native AAC encoder is available since July 8,
2009.

svn path=/trunk/kdenlive/; revision=3895

src/renderwidget.cpp

index 1b2d53f98f2c577a1166e7dc523bfa38c568cf63..f3ec0892a0847f378b4357afbc87d0b586a8c1c1 100644 (file)
@@ -794,7 +794,7 @@ void RenderWidget::slotExport(bool scriptExport, int zoneIn, int zoneOut, const
         if (m_view.open_dvd->isChecked()) {
             renderItem->setData(0, Qt::UserRole, group);
             if (renderArgs.contains("profile=")) {
-                // rendering profile contains an MLT profile, so pass it to the running jog item, useful for dvd
+                // rendering profile contains an MLT profile, so pass it to the running jog item, useful for dvd
                 QString prof = renderArgs.section("profile=", 1, 1);
                 prof = prof.section(' ', 0, 0);
                 kDebug() << "// render profile: " << prof;
@@ -804,7 +804,7 @@ void RenderWidget::slotExport(bool scriptExport, int zoneIn, int zoneOut, const
     } else {
         if (group == "websites" && m_view.open_browser->isChecked()) {
             renderItem->setData(0, Qt::UserRole, group);
-            // pass the url
+            // pass the url
             QString url = m_view.size_list->currentItem()->data(ExtraRole).toString();
             renderItem->setData(0, Qt::UserRole + 1, url);
         }
@@ -1154,6 +1154,8 @@ void RenderWidget::parseFile(QString exportFile, bool editable)
     const QStringList acodecsList = KdenliveSettings::audiocodecs();
     bool replaceVorbisCodec = false;
     if (!acodecsList.contains("vorbis") && acodecsList.contains("libvorbis")) replaceVorbisCodec = true;
+       bool replaceLibfaacCodec = false;
+       if (!acodecsList.contains("libfaac") && acodecsList.contains("aac")) replaceLibfaacCodec = true;
 
 
     if (editable || groups.count() == 0) {
@@ -1207,7 +1209,10 @@ void RenderWidget::parseFile(QString exportFile, bool editable)
                 // replace vorbis with libvorbis
                 params = params.replace("vorbis", "libvorbis");
             }
-
+                       if (replaceLibfaacCodec && params.contains("acodec=libfaac")) {
+                               // replace libfaac with aac
+                               params = params.replace("libfaac", "aac");
+                       }
 
             QString category = profile.attribute("category", i18n("Custom"));
             QString dest = profile.attribute("destinationid");