Hi Jean.<br><br>I've found the way to active both module:<br><br>$vlc filetoplay --vout decklinkoutput --aout decklinkoutput<br><br>but i'm having another problem. Cause Decklink SDK is not currently support <b>WriteAudioSamplesSync</b> function. So only video works now.<br>
I may change my plugin to use fifo file and let Decklink get data via <b>ScheduleVideoFrame</b>.<br><br>Hope to release the plugin soon.<br><br><div class="gmail_quote">On Tue, Aug 9, 2011 at 2:08 PM, Jean-Baptiste Kempf <span dir="ltr"><<a href="mailto:jb@videolan.org">jb@videolan.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello Ocon,<br>
<br>
On Mon, Aug 08, 2011 at 10:48:22PM +0700, Ocon 8866 wrote :<br>
<div class="im">> I'm writing a output plugin for BlackMagic Decklink SDI card.<br>
</div>Nice!<br>
<div class="im"><br>
> Then, I'm writing a plugin that contains both video and audio submodule:<br>
><br>
> vlc_module_begin()<br>
>     set_shortname( N_("Decklink Output") )<br>
>     set_description( N_("Decklink Output plug-in") )<br>
>     set_callbacks (Open, Close)<br>
>     add_shortcut( "decklink-output" )<br>
>     add_integer( VIDEO_CFG_PREFIX "card-index", 0,<br>
>                  CARD_INDEX_TEXT, CARD_INDEX_LONGTEXT, true )<br>
>     add_string( AUDIO_CFG_PREFIX "audio-connection", 0,<br>
>                 AUDIO_CONNECTION_TEXT, AUDIO_CONNECTION_LONGTEXT, true )<br>
>                 change_string_list( ppsz_audioconns, ppsz_audioconns_text, 0<br>
> )<br>
<br>
<br>
>     add_submodule ()<br>
>     set_shortname (N_("Decklink Video Output"))<br>
>     set_description (N_("Decklink Video Output module"))<br>
>     set_category(CAT_VIDEO)<br>
>     set_subcategory(SUBCAT_VIDEO_VOUT)<br>
>     set_capability("vout display", 0)<br>
>     set_callbacks (VideoOpen, VideoClose)<br>
</div>Merge those lines with the above. You should be able to have one main<br>
module (video) and one submodule (for audio)<br>
<div class="im"><br>
>     add_shortcut( "decklink-vout" )<br>
>     add_submodule ()<br>
>     set_shortname (N_("Decklink Audio Output"))<br>
>     set_description (N_("Decklink Audio Output module"))<br>
>     set_category( CAT_AUDIO )<br>
>     set_subcategory( SUBCAT_AUDIO_AOUT )<br>
>     set_capability( "audio output", 0 )<br>
>     set_callbacks (AudioOpen, AudioClose)<br>
>     add_shortcut( "decklink-aout" )<br>
> vlc_module_end ()<br>
<br>
> The problem: how can I activate both submodule over command line??? both<br>
> Video an Audio.<br>
<br>
</div>Do you both have them in the "vlc --list" ?<br>
<br>
Best Regards,<br>
<font color="#888888"><br>
--<br>
Jean-Baptiste Kempf<br>
<a href="http://www.jbkempf.com/" target="_blank">http://www.jbkempf.com/</a> - +33 672 704 734<br>
Sent from my Electronic Device<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</font></blockquote></div><br>