dyne / frei0r

A large collection of free and portable video plugins
https://frei0r.dyne.org/
GNU General Public License v2.0
419 stars 90 forks source link

Not an issue as such.. How do you get all the patterns 0-7 working with the frei0r plugins [frei0r-src-test-pat-b type=5] #128

Closed SonnyWalkman closed 1 year ago

SonnyWalkman commented 1 year ago

I'm wanting to use to test-pat-b.so (plugin) as video source [frei0r-src-test-pat-b] type=5 to be exact for a project. frei0r is packed in with gstreamer-bad-plugins. Currently I have the plugin working with gstreamer using pipeline:- 'gst-launch-1.0 frei0r-src-test-pat-b type=5 ! videoconvert ! autovideosink' which shows colour bars ignoring or complaining about gdouble not allowing type=5 from the pipeline. To me, seems the build is limited to use Type 0 or 1 sources ignoring list available in the frei0r documentation for real estate savings.

Is my assumption correct?

Can't see any reference to any of the test-pat-b code Type 0 and 1 in the gstfrei0rsrc.c however, seems to me the code to load the plugin through idx? gstreamer plugin loads frei0r plugin?

I have downloaded the full source for frei0r from git and built without any problems. I then rebuilt my bad plugin using meson --reconfigure builddir thinking meson needed to include all dependencies from the frei0r library. Didn't help.

I've search the interwebs and drawn a blank. Not much in on how-to use the frei0r sources although some mentions of created gst as my vendor.. Setup a FREI0R_PATH=:/usr/local/lib/frei0r-1/gst however after many hours remains allusive to get the full list of test patterns working? I really like to use the PM5544 look-a-like. What am I doing wrong or missing or is this an issue?

Sebastian Dröge. any assistance would be appreciated gstreamer plugin for frei0r as your name comes up in the plugin.

I'm using Ubuntu 22.04 LTS with gstreamer 1.20.3 built for source.

SonnyWalkman commented 1 year ago

I'm an idiot! After looking through the test-pat-b source I found where I've gone wrong! Thinking what's passed into the element was gint is actually gdouble? Just didn't click. Strange way to implement validation. All works below. '''gst-launch-1.0 frei0r-src-test-pat-b type=0.5 aspect-ratio=0.2 ! vcaps ! videoconvert ! autovideosink''' Closing..

SonnyWalkman commented 1 year ago

Closing due to working out what I did wrong.