Hi Shing Wong.<br><br>What is graphic card that you are using?<br><br>I'm using Nvidia GTX 250 card, VLC accelarate via vaapi - vdpau backend. When i activate hardware accelarate function, it gets ugly colour.<br><br>The loop is in the <b>picture_Export(VLC_OBJECT(vd), &_vdblock, _fmt ,picture,DECKLINK_VIDEO_CODEC, i_width, i_height);</b> function.<br>
<br>If the side of the input source # side of Decklink mode (SD: 720x486 ), it converts to new format via above function and performance gets bad here.<br><br>ps: VLC hardware accelarate is very bad, i can't play some ts file.<br>
<br><br><br><div class="gmail_quote">On Tue, Aug 16, 2011 at 4:45 PM, Shing Wong <span dir="ltr"><<a href="mailto:wong@accesscom.net">wong@accesscom.net</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;">
<div bgcolor="#FFFFFF" text="#000000">
Thanks for the source. I got your plugin working on my OpenSuSE
11.4 64bit running on an i7 980 6 core server with 6g RAM, 40g SSD
drive, and a Decklink Duo. First, there is a minor error on the
<a href="http://configure.ac" target="_blank">configure.ac</a> script. Here is the fixed version:<br>
<br>
----------- <a href="http://configure.ac" target="_blank">configure.ac</a> ---------------<br>
<dl>
<dd><code>dnl<br>
dnl test module<br>
dnl<br>
AC_ARG_ENABLE(decklinkoutput,<br>
[AS_HELP_STRING([--disable-decklinkoutput],<br>
[disable Blackmagic DeckLink SDI Output (default auto)])])<br>
AC_ARG_WITH(decklink_sdk,<br>
[AS_HELP_STRING[--with-decklink-sdk=DIR],<br>
[location of Blackmagic DeckLink SDI SDK])])<br>
if test "${enable_decklinkoutput}" != "no"<br>
then<br>
if test "${with_decklink_sdk}" != "no" -a -n
"${with_decklink_sdk}"<br>
then<br>
VLC_ADD_CPPFLAGS([decklinkoutput],[-I${with_decklink_sdk}/include])<br>
fi<br>
CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_decklinkoutput}"<br>
AC_LANG_PUSH(C++)<br>
AC_CHECK_HEADERS(DeckLinkAPIDispatch.cpp, [<br>
VLC_ADD_PLUGIN([decklinkoutput])<br>
],[AC_MSG_WARN(Blackmagic DeckLink SDI include files not
found, decklinkoutput disabled)])<br>
AC_LANG_POP(C++)<br>
CPPFLAGS="${CPPFLAGS_save}"<br>
fi<br>
<br>
dnl End of test</code></dd>
<dt>---------------------------------------</dt>
</dl>
The code compiled fine with the git nightly build I pulled off just
a few hours ago. The color was fine. I didn't see any color
distortions. The problem is performance. I tried several input
sources. One of them is an SD h.264 stream that you can access via
<a href="http://ux8.accesscom.net:9854" target="_blank">http://ux8.accesscom.net:9854</a>. I keep getting a continues loop of
unusual debug output:<br>
<br>
[0x147223a8] main encoder debug: looking for encoder module: 9
candidates<br>
[0x147223a8] avcodec encoder debug: libavcodec already initialized<br>
[0x147223a8] avcodec encoder debug: found encoder Raw video<br>
[0x147223a8] main encoder debug: using encoder module "avcodec"<br>
[0x147223a8] main encoder debug: TIMER module_need() : 1.279 ms -
Total 1.279 ms / 1 intvls (Avg 1.279 ms)<br>
[0x14724ee8] main filter debug: looking for video filter2 module: 18
candidates<br>
[0x14724ee8] swscale filter debug: 720x480 chroma: UYVY ->
720x486 chroma: UYVY with scaling using Bicubic (good quality)<br>
[0x14724ee8] main filter debug: using video filter2 module "swscale"<br>
[0x14724ee8] main filter debug: TIMER module_need() : 0.338 ms -
Total 0.338 ms / 1 intvls (Avg 0.338 ms)<br>
[0x147223a8] main encoder debug: removing module "avcodec"<br>
[0x14724ee8] main filter debug: removing module "swscale"<br>
[0x12cb9e68] main video output debug: Post-processing available<br>
[0x12cb9e68] main video output debug: Detected interlaced video<br>
[0x12cb9e68] main video output debug: deinterlace 0, mode blend,
is_needed 1<br>
mmco: unref short failure<br>
[0x147223a8] main encoder debug: looking for encoder module: 9
candidates<br>
[0x147223a8] avcodec encoder debug: libavcodec already initialized<br>
[0x147223a8] avcodec encoder debug: found encoder Raw video<br>
[0x147223a8] main encoder debug: using encoder module "avcodec"<br>
[0x147223a8] main encoder debug: TIMER module_need() : 0.794 ms -
Total 0.794 ms / 1 intvls (Avg 0.794 ms)<br>
[0x1482b318] main filter debug: looking for video filter2 module: 18
candidates<br>
[0x1482b318] swscale filter debug: 720x480 chroma: UYVY ->
720x486 chroma: UYVY with scaling using Bicubic (good quality)<br>
[0x1482b318] main filter debug: using video filter2 module "swscale"<br>
[0x1482b318] main filter debug: TIMER module_need() : 0.667 ms -
Total 0.667 ms / 1 intvls (Avg 0.667 ms)<br>
[0x147223a8] main encoder debug: removing module "avcodec"<br>
[0x1482b318] main filter debug: removing module "swscale"<br>
[0x147223a8] main encoder debug: looking for encoder module: 9
candidates<br>
<br>
Over 50% of the frames are getting dropped. I will try to locate
the problem in the next day or two.<br><font color="#888888">
<br>
<pre cols="72">--
Shing Wong, CTO
AccessCom, Inc.
WEB: <a href="http://www.accesscom.net" target="_blank">http://www.accesscom.net</a>
TEL: (504)913-6502
FAX: (504)962-2001
</pre>
</font></div>
</blockquote></div><br>