After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735094 - scenechange: Improving Scene detection algorithm
scenechange: Improving Scene detection algorithm
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Linux
: Normal enhancement
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-08-20 10:28 UTC by Vineeth
Modified: 2018-05-04 09:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Attached two text files with the test results for GoneNutty and a local test video (975 bytes, application/gzip)
2014-08-20 10:28 UTC, Vineeth
  Details
Proposed patch improving the scene detection (1.48 KB, patch)
2014-08-20 10:29 UTC, Vineeth
none Details | Review
Proposed patch improving the scene detection (2.22 KB, patch)
2014-10-20 04:10 UTC, Vineeth
none Details | Review
updating commit message (1.80 KB, patch)
2014-10-27 04:13 UTC, Vineeth
committed Details | Review

Description Vineeth 2014-08-20 10:28:37 UTC
Created attachment 283960 [details]
Attached two text files with the test results for GoneNutty and a local test video

Scene detection determines, how many scenes have changed in a video.

It compared the previous frame with present frame to find out the score and a threshold is calculated for the same.

With the present logic,
on testing with http://samples.mplayerhq.hu/avi/GoneNutty.avi

there are 61 positive detections out of 67 scene changes and 5 negative detections.
The negative detections can be ignored because most of the negative detections happen when a scene change happens gradually, which to naked eye doesn't seem like a scene change.

I have added an intermediate condition which helps in improving the positive detections. For this particular video it improved to 65 positive detections out of 67. I have tested with other videos as well where the positive detections have improved.
Attaching the test results for GoneNutty video as well as one local video.
It captures time at which scene changes verified manually, with the the present logic and the added logic.
Comment 1 Vineeth 2014-08-20 10:29:16 UTC
Created attachment 283961 [details] [review]
Proposed patch improving the scene detection
Comment 2 Vineeth 2014-10-20 04:10:42 UTC
Created attachment 288877 [details] [review]
Proposed patch improving the scene detection

adding proper commit message
Comment 3 Luis de Bethencourt 2014-10-24 13:27:32 UTC
Vineeth,

Can you keep the commit message only about what the code changes are?
Any further comments, like for example how to test the code and links to sample files can be found by coming to this bugzilla discussion which is linked to in the last line.

That way it is easier to scan "git log" and read further about the patch in bugzilla.
Comment 4 Vineeth 2014-10-27 04:13:43 UTC
Created attachment 289387 [details] [review]
updating commit message
Comment 5 Olivier Crête 2018-05-04 09:51:38 UTC
That looks good, let's merge it.