From 20021c03b349ef6cc0ffc04a2d75704fc0c8a40e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 24 Jun 2013 00:34:29 +0100 Subject: Try to do ffprobe on content when setting it up. --- src/lib/film.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/lib/film.cc b/src/lib/film.cc index 8aedd7639..942801a9f 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -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 -- cgit v1.2.3