Burkhard,

        Thanks for your patience so far.   I hope this is helpful for us
        both.

Instead of getting the plugin like you suggested, I get it by name::

info = bg_plugin_find_by_name(plug_reg, "e_ffmpeg");

I then set up the handle like you say.

> bg_plugin_handle_t * h;
> 
> bg_encoder_plugin_t * plugin; // Contains function pointers for encoding
> 
> h = bg_plugin_load(plugin_reg, info);
> 
> /* h->plugin is of type bg_plugin_common_t, so we must cast it */
> plugin = (bg_encoder_plugin_t*)(h->plugin);
> 
> Then you can call the encoding functions with h->priv as first argument.


Now, I am wondering how I read and set the parameters for a particular
codec.  I do:

const bg_parameter_info_t * params;
params  = plugin->get_audio_parameters(h->priv);
printf("param  name: %s  longname:%s  opt:%s help_string:%s \n",
                params->name, params->long_name, params->opt,
                params->help_string);

But, this only prints out: "param name: codec longname:Codec ..."


How do I loop through the parameters of a given codec and get/set them?

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Gmerlin-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmerlin-general

Reply via email to