Try to do ffprobe on content when setting it up.
authorCarl Hetherington <cth@carlh.net>
Sun, 23 Jun 2013 23:34:29 +0000 (00:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 23 Jun 2013 23:34:29 +0000 (00:34 +0100)
src/lib/film.cc

index 8aedd76399899bef18b95523e2cf2ef0a577e4a6..942801a9f645b56ef99c4528666f2f088a41772e 100644 (file)
@@ -998,6 +998,15 @@ Film::set_content (string c)
        if (content_type() == STILL) {
                set_use_content_audio (false);
        }
+
+#ifdef DVDOMATIC_WINDOWS
+       string ffprobe = "ffprobe.exe ";
+#else
+       string ffprobe = "ffprobe ";
+#endif
+       ffprobe += c;
+       ffprobe += " 2> " + file ("ffprobe.log");
+       system (ffprobe.c_str ());
 }
 
 void