projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f7f87a
)
Try to do ffprobe on content when setting it up.
author
Carl Hetherington
<cth@carlh.net>
Sun, 23 Jun 2013 23:34:29 +0000
(
00:34
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 23 Jun 2013 23:34:29 +0000
(
00:34
+0100)
src/lib/film.cc
patch
|
blob
|
history
diff --git
a/src/lib/film.cc
b/src/lib/film.cc
index 8aedd76399899bef18b95523e2cf2ef0a577e4a6..942801a9f645b56ef99c4528666f2f088a41772e 100644
(file)
--- 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