Hello VLC developers.<br><br>I'm writing a output plugin for BlackMagic
Decklink SDI card. I have video playout over SDI working, but I have
problem about getting audio playout working well. The code I've added
resides file modules/video_output/decklinkout.cpp where the Decklink API
is initialized and used for video playback.<br><br>The audio output
plugin in modules/audio_output/decklink.cpp but this code won't be able
to access the object created in modules/video_output/decklink.cpp.<br><br>I
can only have one instance of a Decklink board object.<br><br>I posted the message in VLC forum and I was answered to build a single plugin with two modules (using <span style="font-style: italic;">add_submodule()</span>)<br>
<br>Then, I'm writing a plugin that contains both video and audio submodule:<br><br><code>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> 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>
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 ()</code><br><br>
<br>The problem: how can I activate both submodule over command line??? both Video an Audio. <br><br>I tried: vlc -vvv file.mp4 --vout decklink-vout --aout decklink-aout<br>also: vlc -vvv file.mp4 --vout decklink-output --aout decklink-output<br>
<br>but wasn't successfull.<br><br>Thank you.