<div dir="ltr"><div>Hello pHash team,</div><div><br></div><div>My company is searching for a video fingerprint technology to automate more our processes.</div><div>Currently we are testing pHash open source for video hashing and depending on the results we might be interested in buying pHash Pro licence.</div>
<div><br></div><div>We came across what looks like to be an issue that pHash is not calculating enough hash (only one hash value, irrespective of length of the video) values for</div><div>mpeg1 and mpeg2 codecs.</div><div>
<br></div><div>Brief description of the issue: </div><div><br></div><div>System : Ubuntu 12.04 LTS</div><div>phash 0.9.6 (configured only with --enable-shared option)</div><div>CImg 1.4.9 (installed directly from Ubuntu repository)</div>
<div>ffmpeg 2.1  (configured only with --enable-shared option)</div><div><br></div><div>I have also tried all available versions of ffmpeg with the same result. </div><div><br></div><div>Though I edited one file before testing video hash,</div>
<div>1. cimgffmpeg.cpp : I edited this file because initially I was getting segfault while executing test_video. </div><div>                              I edited the function long GetNumberVideoFrames(const char *file) and float fps(const char *filename), in both functions I assigned AVformatContext *pFormatCtx = NULL; as mentioned in one of the support archive and it worked. URL: <a href="http://lists.phash.org/htdig.cgi/phash-support-phash.org/2013-January/000140.html">http://lists.phash.org/htdig.cgi/phash-support-phash.org/2013-January/000140.html</a></div>
<div><br></div><div><br></div><div>Using the examples provided in pHash package, all the video coding formats that I have tested are working well except  mpeg1 and mpeg2.</div><div>I have tried different videos with various lengths(5min, 20min and 45 min) but result is always one hash value for mpeg1 and mpeg2.</div>
<div><br></div><div>Can you please look upon this issue and tell me where is the problem?</div><div><br></div><div>Thank you for your time and help,</div><div><br></div><div>- Pratik </div></div>