opencv: new plugin to make smooth slowmotion
@meh
Submitted by Mathieu Duponchelle Link to original bug (#708545)
Description
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 :)