Disable video-export metadata on windows (for now)
authorRobin Gareus <robin@gareus.org>
Sun, 9 Aug 2015 22:35:24 +0000 (00:35 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 9 Aug 2015 22:35:24 +0000 (00:35 +0200)
Quote escaping metadata currently breaks export.

gtk2_ardour/export_video_dialog.cc
gtk2_ardour/transcode_ffmpeg.cc

index 13f1f8fe4d4e5e46fd79b6c330a5be6c27bf116b..c497933e4bbe16e3be6acb1675ab3c59788eae04 100644 (file)
@@ -195,7 +195,9 @@ ExportVideoDialog::ExportVideoDialog ()
        t->attach (aspect_combo, 3, 4, ty, ty+1); ty++;
        t->attach (bframes_checkbox, 0, 2, ty, ty+1);
        t->attach (deinterlace_checkbox, 2, 4, ty, ty+1); ty++;
+#ifndef PLATFORM_WINDOWS
        t->attach (meta_checkbox, 2, 4, ty, ty+1); ty++;
+#endif
        t->attach (optimizations_checkbox, 0, 1, ty, ty+1);
        t->attach (optimizations_label, 1, 4, ty, ty+1); ty++;
 #if 1 /* tentative debug mode */
index 94f8527cbbe48a16b2baa077ffdcc088d5ef40cc..2f0cb09074f767a3e955923ce898b032713c507c 100644 (file)
@@ -326,10 +326,13 @@ TranscodeFfmpeg::encode (std::string outfile, std::string inf_a, std::string inf
                argp[a++] = strdup(it->first.c_str());
                argp[a++] = strdup(it->second.c_str());
        }
+#ifndef PLATFORM_WINDOWS
+       // quote-escape does not work here. this needs further work (system_exec.cc)
        for(TranscodeFfmpeg::FFSettings::const_iterator it = meta.begin(); it != meta.end(); ++it) {
                argp[a++] = strdup("-metadata");
                argp[a++] = format_metadata(it->first.c_str(), it->second.c_str());
        }
+#endif
 
        if (m_fps > 0) {
                m_lead_in  = rint (m_lead_in * m_fps) / m_fps;