+ if (!tree.read (path)) {
+ error << string_compose (_("Cannot load export format from %1"), path) << endmsg;
+ return;
+ }
+
+ XMLNode* root = tree.root();
+ if (!root) {
+ error << string_compose (_("Cannot export format read from %1"), path) << endmsg;
+ return;
+ }
+
+ ExportFormatSpecPtr format = handler->add_format (*root);
+
+ if (format->format_id() == ExportFormatBase::F_FFMPEG) {
+ std::string unused;
+ if (!ArdourVideoToolPaths::transcoder_exe (unused, unused)) {
+ error << string_compose (_("Ignored format '%1': encoder is not avilable"), path) << endmsg;
+ return;
+ }
+ }