|
Replies:
12
-
Pages:
1
-
Last Post:
24 Sep 19, 21:07
Last Post By: RobM
|
|
|
Posts:
661
Registered:
13-Apr-2006
|
|
|
Detecting „broken“ images, how to?
Posted:
23 Sep 19, 19:02
|
|
|
Hi,
recently I started to download web cam pictures with a tool. Some downloaded pictures are kind of broken. The obvious ones are 0 KB in size, that's easy to detect and to delete them. But there are also a lot which are not ok. The goal is to „compile“ a video out of the pictures, but ffmpeg reports some errors, where its not clear which files are involved. So, the question is, do you know any tool (standalone application for Windows) to detect broken pictures (JPG or PNG) out of some ten thousands of pictures? I uploaded a pack of some broken pictures, here.
Thanks in advance, Markus
|
|
|
Posts:
3,815
Registered:
4-Aug-2006
|
|
|
Re: Detecting „broken“ images, how to?
Posted:
23 Sep 19, 19:08
in response to: MarkusD
|
|
|
Maybe it is poor download tool and another one might be better than wading through the bad images?
Curious too as to the error ffmpeg gives, and is that via the command line, jAlbum or some other application?
|
|
|
Posts:
661
Registered:
13-Apr-2006
|
|
|
Re: Detecting „broken“ images, how to?
Posted:
23 Sep 19, 19:28
in response to: RobM
|
|
|
Maybe it is poor download tool and another one might be better than wading through the bad images?
Currently I use SeqDownload (from NirSoft) for some dozen different cams, but only a few cams do produce broken images at all. So I assume the web cam itself is not very reliable.
Curious too as to the error ffmpeg gives, and is that via the command line, jAlbum or some other application?
Yes it is via the command line. I can't give you an example right now, because my hard drive with the pictures just died some hours ago. But the code I use looks like here (scroll down to near the bottom of the page)
|
|
|
Posts:
3,815
Registered:
4-Aug-2006
|
|
|
Re: Detecting „broken“ images, how to?
Posted:
23 Sep 19, 19:40
in response to: MarkusD
|
|
|
Yes it is via the command line. I can't give you an example right now, because my hard drive with the pictures just died some hours ago. But the code I use looks like here (scroll down to near the bottom of the page)
Is your hard drive dying maybe the cause of the broken images, dodgy file sectors etc.?
|
|
|
Posts:
661
Registered:
13-Apr-2006
|
|
|
Re: Detecting „broken“ images, how to?
Posted:
23 Sep 19, 21:30
in response to: RobM
|
|
|
Yes it is via the command line. I can't give you an example right now, because my hard drive with the pictures just died some hours ago. But the code I use looks like here (scroll down to near the bottom of the page)
Is your hard drive dying maybe the cause of the broken images, dodgy file sectors etc.?
No no. I'm storing the pictures on my NAS, which is healthy.
|
|
|
Posts:
661
Registered:
13-Apr-2006
|
|
|
Posts:
3,815
Registered:
4-Aug-2006
|
|
|
Posts:
8,039
Registered:
31-Jan-2006
|
|
|
Re: Detecting „broken“ images, how to?
Posted:
23 Sep 19, 22:39
in response to: RobM
|
|
|
|
Those kinds of broken images are almost always the result of connection problems - bad router, bad cable modem, or an intermittent, unreliable connection.
There may not be any way to detect them directly, because most of them are still perfectly valid JPG-formatted files - they're just missing most of the data. They do have one characteristic that makes them stand out when viewed in File Explorer, however. The file sizes are much too small for the dimensions. I would sort by file size, and display both the file size and the dimensions. See screenshot.
If the dimensions are missing completely (as in one of your files), that's a certain sign of trouble. And the others have suspicious data - 32KB for a 2592x1944 image? I think not.
|
|
|
Posts:
661
Registered:
13-Apr-2006
|
|
|
Re: Detecting „broken“ images, how to?
Posted:
23 Sep 19, 22:47
in response to: RobM
|
|
|
I searched the web for repairing tools before but found no applications, but I'll give "BadPeggy" a try. Thanks for this!
|
|
|
Posts:
661
Registered:
13-Apr-2006
|
|
|
Re: Detecting „broken“ images, how to?
Posted:
23 Sep 19, 22:55
in response to: JeffTucker
|
|
|
Those kinds of broken images are almost always the result of connection problems - bad router, bad cable modem, or an intermittent, unreliable connection.
I don't think that all these problems could be the reason for the broken image on my side of the internet, because thousands of other pictures are just downloading well.
There may not be any way to detect them directly, because most of them are still perfectly valid JPG-formatted files - they're just missing most of the data.
Correct.
They do have one characteristic that makes them stand out when viewed in File Explorer, however. The file sizes are much too small for the dimensions. I would sort by file size, and display both the file size and the dimensions. See screenshot.
Sorting them by size makes only sense when sorting them for each camera separate, which takes to much time to do that sorting for each and every day manually.
If the dimensions are missing completely (as in one of your files), that's a certain sign of trouble. And the others have suspicious data - 32KB for a 2592x1944 image? I think not.
That's true too, yes.
I'll try to find out which properties I have to enable in the Explorer to watch for corrupt files.
Thanks so far four your assistance. I'll let you know what works best.
|
|
|
Posts:
8,039
Registered:
31-Jan-2006
|
|
|
Re: Detecting „broken“ images, how to?
Posted:
23 Sep 19, 23:16
in response to: MarkusD
|
|
|
...thousands of other pictures are just downloading well.
No comment.
|
|
|
Posts:
661
Registered:
13-Apr-2006
|
|
|
Re: Detecting „broken“ images, how to?
Posted:
24 Sep 19, 18:58
in response to: RobM
|
|
|
I tried BadPeggy and it found over 1000 corrupt files. And there was no false positive at all. I can recommend this tool for detecting corrupt pictures. Thanks for your tip!
|
|
|
Posts:
3,815
Registered:
4-Aug-2006
|
|
|
Re: Detecting „broken“ images, how to?
Posted:
24 Sep 19, 21:07
in response to: MarkusD
|
|
|
I tried BadPeggy and it found over 1000 corrupt files. And there was no false positive at all. I can recommend this tool for detecting corrupt pictures. Thanks for your tip!
It was just a lucky find really but glad it was of use to you. I’ve downloaded a copy for Mac OS, just in case my own photo library throws a wobbler
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|