GNOME Bugzilla – Bug 708545
opencv: new plugin to make smooth slowmotion
Last modified: 2018-11-03 13:17:49 UTC
The plugin uses code from slowmovideo, porting it from QT and its own internal decoding "framework" based on ffmpeg to gstreamer. the code is available there : https://github.com/MathieuDuponchelle/gst-plugins-base/commits/slowmotion and is up for trial / review, one issue I am aware of and will fix is the fact that it should be in bad/ext/opencv. example launch line: gst-launch-1.0 -e uridecodebin uri=file:///any/file ! videoconvert ! videorate rate=0.1 ! video/x-raw, format=RGB ! slowmo ! videoconvert ! theoraenc ! oggmux ! filesink location=somewhere.ogv The videoconversion is necessary, as the code will only accept either RGB or BGR for now. The videorate is also necessary, with a patch from that comment: https://bugzilla.gnome.org/show_bug.cgi?id=699077#c25 Please do the review here, as github throws away commit comments when pushing non fast forward. There's plenty of room for optimization and cleanup, contributions are more than welcome :)
Could you squash all these commits together and attach it here as a patch? That makes reviewing easier, just use git-bz.
Just realizing you commented, I should check my emails more thoroughly. Yes I can do that.
What does it do with videorate rate > 1? Can I make a timelapse that merges frames or averages over frames?
Tobias, it just won't do anything as no buffer will be marked as a GAP buffer by videorate. A timelapse that would average frames would need a different design in my opinion, as you can't put the plugin downstream of videorate. Attaching the sources as a patch. I must warn you the code is very rough, major cleaning will need to be done, and I still have to put that in -bad and not -base. I think reviewing what's existing nevertheless is interesting for people who would like to take on the job, or for future, spare-time rich me.
Created attachment 270510 [details] [review] That code builds and yields interesting results already, major work needed.
Hi Mathieu, this is interesting. I tried asking the slowmoVideo devs if they are interested in exposing a core API to use with GUI/media frameworks other than Qt/ffmpeg, here is my issue on their github repo: https://github.com/slowmoVideo/slowmoVideo/issues/57 If you have any comment please chip in. Ciao ciao, Antonio
This looks very promising. Nice to see the list of elements in gst-plugins-bad/ext/opencv/ growing :)
(In reply to Antonio Ospite from comment #6) > Hi Mathieu, this is interesting. > > I tried asking the slowmoVideo devs if they are interested in exposing a > core API to use with GUI/media frameworks other than Qt/ffmpeg, here is my > issue on their github repo: > > https://github.com/slowmoVideo/slowmoVideo/issues/57 > > If you have any comment please chip in. > > Ciao ciao, > Antonio Done, not much to say though it's been quite some time now!
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/109.