[vlc-devel] help test decklink output plugin (video and audio)

Ocon 8866 ocon8866 at gmail.com
Tue Aug 16 12:15:30 CEST 2011


Hi Shing Wong.

What is graphic card that you are using?

I'm using Nvidia GTX 250 card, VLC accelarate via vaapi - vdpau backend.
When i activate hardware accelarate function, it gets ugly colour.

The loop is in the *picture_Export(VLC_OBJECT(vd), &_vdblock, _fmt
,picture,DECKLINK_VIDEO_CODEC, i_width, i_height);* function.

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.

ps: VLC hardware accelarate is very bad, i can't play some ts file.



On Tue, Aug 16, 2011 at 4:45 PM, Shing Wong <wong at accesscom.net> wrote:

>  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 configure.ac script.
> Here is the fixed version:
>
> ----------- configure.ac ---------------
>  dnl
> dnl test module
> dnl
> AC_ARG_ENABLE(decklinkoutput,
>   [AS_HELP_STRING([--disable-decklinkoutput],
>     [disable Blackmagic DeckLink SDI Output (default auto)])])
> AC_ARG_WITH(decklink_sdk,
>   [AS_HELP_STRING[--with-decklink-sdk=DIR],
>     [location of Blackmagic DeckLink SDI SDK])])
> if test "${enable_decklinkoutput}" != "no"
> then
>   if test "${with_decklink_sdk}" != "no" -a -n "${with_decklink_sdk}"
>   then
>     VLC_ADD_CPPFLAGS([decklinkoutput],[-I${with_decklink_sdk}/include])
>   fi
>   CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_decklinkoutput}"
>   AC_LANG_PUSH(C++)
>   AC_CHECK_HEADERS(DeckLinkAPIDispatch.cpp, [
>     VLC_ADD_PLUGIN([decklinkoutput])
>   ],[AC_MSG_WARN(Blackmagic DeckLink SDI include files not found,
> decklinkoutput disabled)])
>   AC_LANG_POP(C++)
>   CPPFLAGS="${CPPFLAGS_save}"
> fi
>
> dnl End of test --------------------------------------- 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 http://ux8.accesscom.net:9854.  I keep
> getting a continues loop of unusual debug output:
>
> [0x147223a8] main encoder debug: looking for encoder module: 9 candidates
> [0x147223a8] avcodec encoder debug: libavcodec already initialized
> [0x147223a8] avcodec encoder debug: found encoder Raw video
> [0x147223a8] main encoder debug: using encoder module "avcodec"
> [0x147223a8] main encoder debug: TIMER module_need() : 1.279 ms - Total
> 1.279 ms / 1 intvls (Avg 1.279 ms)
> [0x14724ee8] main filter debug: looking for video filter2 module: 18
> candidates
> [0x14724ee8] swscale filter debug: 720x480 chroma: UYVY -> 720x486 chroma:
> UYVY with scaling using Bicubic (good quality)
> [0x14724ee8] main filter debug: using video filter2 module "swscale"
> [0x14724ee8] main filter debug: TIMER module_need() : 0.338 ms - Total
> 0.338 ms / 1 intvls (Avg 0.338 ms)
> [0x147223a8] main encoder debug: removing module "avcodec"
> [0x14724ee8] main filter debug: removing module "swscale"
> [0x12cb9e68] main video output debug: Post-processing available
> [0x12cb9e68] main video output debug: Detected interlaced video
> [0x12cb9e68] main video output debug: deinterlace 0, mode blend, is_needed
> 1
> mmco: unref short failure
> [0x147223a8] main encoder debug: looking for encoder module: 9 candidates
> [0x147223a8] avcodec encoder debug: libavcodec already initialized
> [0x147223a8] avcodec encoder debug: found encoder Raw video
> [0x147223a8] main encoder debug: using encoder module "avcodec"
> [0x147223a8] main encoder debug: TIMER module_need() : 0.794 ms - Total
> 0.794 ms / 1 intvls (Avg 0.794 ms)
> [0x1482b318] main filter debug: looking for video filter2 module: 18
> candidates
> [0x1482b318] swscale filter debug: 720x480 chroma: UYVY -> 720x486 chroma:
> UYVY with scaling using Bicubic (good quality)
> [0x1482b318] main filter debug: using video filter2 module "swscale"
> [0x1482b318] main filter debug: TIMER module_need() : 0.667 ms - Total
> 0.667 ms / 1 intvls (Avg 0.667 ms)
> [0x147223a8] main encoder debug: removing module "avcodec"
> [0x1482b318] main filter debug: removing module "swscale"
> [0x147223a8] main encoder debug: looking for encoder module: 9 candidates
>
> Over 50% of the frames are getting dropped.  I will try to locate the
> problem in the next day or two.
>
> --
> Shing Wong, CTO
> AccessCom, Inc.
> WEB: http://www.accesscom.net
> TEL: (504)913-6502
> FAX: (504)962-2001
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110816/dd534735/attachment.html>


More information about the vlc-devel mailing list