diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-24 00:34:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-24 00:34:29 +0100 |
| commit | 20021c03b349ef6cc0ffc04a2d75704fc0c8a40e (patch) | |
| tree | 1236dcfc54dc8256406543b350a9b15661a8b481 | |
| parent | 3f7f87a5fee4300cbc2d5f94f06b57e304872432 (diff) | |
Try to do ffprobe on content when setting it up.
| -rw-r--r-- | src/lib/film.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
