[vlc-devel] How to using vlc submodule? both Video and Audio output in one plugin?

Jean-Baptiste Kempf jb at videolan.org
Tue Aug 9 09:08:45 CEST 2011


Hello Ocon,

On Mon, Aug 08, 2011 at 10:48:22PM +0700, Ocon 8866 wrote :
> I'm writing a output plugin for BlackMagic Decklink SDI card.
Nice!

> Then, I'm writing a plugin that contains both video and audio submodule:
> 
> vlc_module_begin()
>     set_shortname( N_("Decklink Output") )
>     set_description( N_("Decklink Output plug-in") )
>     set_callbacks (Open, Close)
>     add_shortcut( "decklink-output" )
>     add_integer( VIDEO_CFG_PREFIX "card-index", 0,
>                  CARD_INDEX_TEXT, CARD_INDEX_LONGTEXT, true )
>     add_string( AUDIO_CFG_PREFIX "audio-connection", 0,
>                 AUDIO_CONNECTION_TEXT, AUDIO_CONNECTION_LONGTEXT, true )
>                 change_string_list( ppsz_audioconns, ppsz_audioconns_text, 0
> )


>     add_submodule ()
>     set_shortname (N_("Decklink Video Output"))
>     set_description (N_("Decklink Video Output module"))
>     set_category(CAT_VIDEO)
>     set_subcategory(SUBCAT_VIDEO_VOUT)
>     set_capability("vout display", 0)
>     set_callbacks (VideoOpen, VideoClose)
Merge those lines with the above. You should be able to have one main 
module (video) and one submodule (for audio)

>     add_shortcut( "decklink-vout" )
>     add_submodule ()
>     set_shortname (N_("Decklink Audio Output"))
>     set_description (N_("Decklink Audio Output module"))
>     set_category( CAT_AUDIO )
>     set_subcategory( SUBCAT_AUDIO_AOUT )
>     set_capability( "audio output", 0 )
>     set_callbacks (AudioOpen, AudioClose)
>     add_shortcut( "decklink-aout" )
> vlc_module_end ()

> The problem: how can I activate both submodule over command line??? both
> Video an Audio.

Do you both have them in the "vlc --list" ?

Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list