<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 8 Jun 2017, at 14:45, Ken D'Ambrosio wrote:</p>
<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">All types (I think) of videos fail with errors identical to these:<br>
2017-06-08T08:35:04.264296 | | |--[unreadable] VID00005.MP4</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">That “unreadable” message means that is_valid is set to ‘false’ somewhere, which could be caused by numerous of things. I guess the error could be more clear/specific, but that’s another story.</p>
<p dir="auto">As far as I can see, is_valid is set to false if any of the following occurs;</p>
<ul>
<li>can’t do file_mtime() on the file</li>
<li>if file is not classified as image or video (it should be classified as video as long as ‘codec_type: video’)</li>
<li>if VideoProbeWrapper() fails</li>
<li>if Image.open() fails in _photo_thumbnail()</li>
</ul>
<p dir="auto">There are some other cases where is_valid is set to false, but they have explicit error messages printed, which doesn’t seem to be the case for you.</p>
<p dir="auto">1) Could you add some debug to the TreeWalker.py file, run it again, and post the output for one of the errors? See patch below.<br>
2) Can you maybe try to call the same avprobe/ffprobe command via Python?</p>
<p dir="auto">diff --git a/scanner/TreeWalker.py b/scanner/TreeWalker.py<br>
index 51bc2ff..0fd39db 100644<br>
--- a/scanner/TreeWalker.py<br>
+++ b/scanner/TreeWalker.py<br>
@@ -95,6 +95,8 @@ class TreeWalker:<br>
album.add_photo(photo)<br>
else:<br>
message("unreadable", os.path.basename(entry))<br>
+ import pprint<br>
+ pprint.pprint(photo.attributes)<br>
back_level()<br>
if not album.empty:<br>
message("caching", os.path.basename(path))</p>
<p dir="auto">-- <br>
Joachim</p>
</div>
</div>
</body>
</html>