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

Ocon 8866 ocon8866 at gmail.com
Tue Aug 9 12:56:47 CEST 2011


Hi Jean.

I've found the way to active both module:

$vlc filetoplay --vout decklinkoutput --aout decklinkoutput

but i'm having another problem. Cause Decklink SDK is not currently support
*WriteAudioSamplesSync* function. So only video works now.
I may change my plugin to use fifo file and let Decklink get data via *
ScheduleVideoFrame*.

Hope to release the plugin soon.

On Tue, Aug 9, 2011 at 2:08 PM, Jean-Baptiste Kempf <jb at videolan.org> wrote:

> 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
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110809/17ded506/attachment.html>


More information about the vlc-devel mailing list