Frei0r plugin on Android

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Frei0r plugin on Android

tremalnaik
Hello,
I'm trying to use inside a Gstreamer receveir pipeline "frei0r-filter-lens-correction" parameter but then at runtime I receive the message "Unable to build the pipeline: no element". I can see Frei0r plugin listed inside GSTREAMER_PLUGINS_EFFECTS but how can I use it on Android? Also, can I use the Frei0r parameter above inside a sender pipeline (for example together with tcpserversink )?
thanks
Reply | Threaded
Open this post in threaded view
|

Re: Frei0r plugin on Android

Nicolas Dufresne-5
Le vendredi 28 avril 2017 à 01:50 -0700, tremalnaik a écrit :
> Hello,
> I'm trying to use inside a Gstreamer receveir pipeline
> "frei0r-filter-lens-correction" parameter but then at runtime I receive the
> message "Unable to build the pipeline: no element". I can see Frei0r plugin
> listed inside GSTREAMER_PLUGINS_EFFECTS but how can I use it on Android?
> Also, can I use the Frei0r parameter above inside a sender pipeline (for
> example together with tcpserversink )? 
> thanks

Frei0r is a library less plugin system. It will try and load external
Frei0r plugins, which at the moment are not installed by GStreamer
provided Android Makefiles. What you will have to do, is bundle the
plugins in your application, and set FREI0R_PATH environment to the
location you have installed the plugin.

Note that you'll also have to cross-compile the plugins you need. This
is also not integrated in cerbero at the moment. Frei0r plugins cannot
be statically linked, so this won't work on iOS.

>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> .com/Frei0r-plugin-on-Android-tp4682843.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Frei0r plugin on Android

tremalnaik
Sorry,  with "bundle the
plugins in your application" in Android do you mean this step?
https://developer.android.com/ndk/guides/prebuilts.html

However at the end I managed to include the frei0r parameter inside the sender pipeline(a raspberry pi device). This was my command:
raspivid -n -t 0 -h HEIGHT -w WIDTH -fps FPS -b BITRATE -o - | gst-launch-1.0 -v fdsrc ! decodebin ! videoconvert ! frei0r-filter-lens-correction correction-near-edges=0.26 !  videoconvert ! videoscale ! omxh264enc ! "video/x-h264,profile=high" ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=IP_ADDRESS port=PORT
 
thanks