"Video output module" can not be set through libvlc api

This forum is about all development around libVLC.
Moriquendi
Blank Cone
Blank Cone
Posts: 74
Joined: 31 May 2011 16:22

"Video output module" can not be set through libvlc api

Postby Moriquendi » 22 Nov 2018 15:16

Hello,

I'm trying to change video output module using libvlc api but for some reason i cant make it work. Here is the parameters I've tried so far;

Code: Select all

-V direct3d11 --vout=direct3d11
I can successfully set other parameters such as;

Code: Select all

--sout-x264-preset=ultrafast --avcodec-hw=d3d11va --deinterlace-mode=blend
On the same computer, if I use VLC media player and choose Direct3d11 as video output module, it works. But for some reason, even though i pass "--vout=direct3d1" as command line parameters to the libvlc api, the logs says "looking for vout display module matching "any": 12 candidates" where I expect a message like "looking for vout display module matching "direct3d11": 12 candidates".

Here are the two logs files I captured on the same PC and same input resource. 1st log is taken from VLC 3.0.4 and 2nd log is taken from my own application where I have a embedded VLC 3.0.4 media player.

VLC 3.0.4 LOGS (Direct3d11 adapter succesfully created)

Code: Select all

dshow error: no video capture device was detected dshow error: no video capture device was detected main debug: processing request item: udp://239.255.255.10:44001, node: Playlist, skip: 0 main debug: rebuilding array of current - root Playlist main debug: rebuild done - 1 items, index 0 main debug: starting playback of new item main debug: resyncing on udp://239.255.255.10:44001 main debug: udp://239.255.255.10:44001 is at 0 main debug: creating new input thread main debug: Creating an input for 'udp://239.255.255.10:44001' main debug: requesting art for new input thread main debug: using timeshift granularity of 50 MiB main debug: using timeshift path: C:\Users\etepe\AppData\Local\Temp main debug: `udp://@239.255.255.10:44001' gives access `udp' demux `any' path `@239.255.255.10:44001' main debug: creating demux: access='udp' demux='any' location='@239.255.255.10:44001' file='\\@239.255.255.10:44001' main debug: looking for access_demux module matching "udp": 15 candidates main debug: looking for meta fetcher module matching "any": 1 candidates main debug: no access_demux modules matched main debug: creating access: udp://@239.255.255.10:44001 main debug: (path: \\@239.255.255.10:44001) main debug: looking for access module matching "udp": 26 candidates udp debug: opening server=:0 local=239.255.255.10:44001 lua debug: Trying Lua scripts in C:\Users\etepe\AppData\Roaming\vlc\lua\meta\fetcher main debug: net: opening 239.255.255.10 datagram port 44001 lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher main debug: no meta fetcher modules matched main debug: looking for art finder module matching "any": 2 candidates main debug: using access module "udp" main debug: looking for stream_filter module matching "prefetch,cache_block": 24 candidates lua debug: Trying Lua scripts in C:\Users\etepe\AppData\Roaming\vlc\lua\meta\art prefetch debug: using 16777216 bytes buffer, 16384 bytes read main debug: using stream_filter module "prefetch" main debug: looking for stream_filter module matching "any": 24 candidates lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac lua debug: Trying Lua scripts in C:\Users\etepe\AppData\Roaming\vlc\lua\playlist lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\playlist lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\anevia_streams.luac lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\anevia_xml.luac lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\appletrailers.luac lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\bbc_co_uk.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\cue.luac lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac main debug: no art finder modules matched lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\dailymotion.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\jamendo.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\koreus.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\liveleak.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\newgrounds.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\rockbox_fm_presets.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\soundcloud.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\twitch.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\vimeo.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\vocaroo.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\youtube.luac main debug: no stream_filter modules matched main debug: looking for stream_directory module matching "any": 1 candidates main debug: no stream_directory modules matched main debug: attachment of directory-extractor failed for udp://@239.255.255.10:44001 main debug: looking for stream_filter module matching "record": 24 candidates main debug: using stream_filter module "record" main debug: creating demux: access='udp' demux='any' location='@239.255.255.10:44001' file='\\@239.255.255.10:44001' main debug: looking for demux module matching "any": 55 candidates qt debug: IM: Setting an input main debug: looking for xml reader module matching "any": 1 candidates main debug: using xml reader module "xml" ts debug: Standard set to Auto main debug: using demux module "ts" ts debug: DEMUX_SET_GROUP 0 00000000 main debug: looking for meta reader module matching "any": 2 candidates lua debug: Trying Lua scripts in C:\Users\etepe\AppData\Roaming\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac main debug: no meta reader modules matched main debug: `udp://@239.255.255.10:44001' successfully opened ts debug: pid[100] unknown ts debug: first packet for pid=100 cc=0x3 ts debug: pid[200] unknown ts debug: first packet for pid=200 cc=0xb ts debug: first packet for pid=0 cc=0x5 ts debug: PATCallBack called ts debug: new PAT ts_id=45325 version=14 current_next=1 ts debug: * number=1 pid=32 ts debug: temporary receiving program 1 ts debug: first packet for pid=32 cc=0x5 ts debug: PMTCallBack called for program 1 ts debug: new PMT program number=1 version=10 pid_pcr=100 ts debug: * pid=200 type=0x3 ISO/IEC 11172 Audio ts debug: - ES descriptor tag 0xa ts debug: found language: ts debug: => pid 200 has now es fcc=mpga main debug: selecting program id=1 main debug: looking for packetizer module matching "any": 24 candidates main debug: using packetizer module "mpegaudio" main debug: looking for audio decoder module matching "any": 23 candidates mpg123 debug: mpga->f32l, bits per sample: 32 main debug: using audio decoder module "mpg123" ts debug: Default program is 1 ts debug: * pid=100 type=0x1b AVC video stream as defined in ITU-T Rec. H.264 ts debug: - ES descriptor tag 0xa ts debug: => pid 100 has now es fcc=h264 main debug: looking for packetizer module matching "any": 24 candidates main debug: using packetizer module "h264" main debug: looking for video decoder module matching "any": 17 candidates avcodec debug: using ffmpeg Lavc58.6.103 avcodec debug: CPU flags: 0x000853db avcodec debug: allowing 5 thread(s) for decoding avcodec debug: codec (h264) started avcodec debug: using frame thread mode with 5 threads main debug: using video decoder module "avcodec" ts debug: * pid=17 listening for SDT ts debug: enabling pid 200 from program 1 ts debug: enabling pid 100 from program 1 ts debug: enabling pcr pid 100 from program 1 ts debug: first packet for pid=17 cc=0x5 ts debug: SDTCallBack called ts debug: * pid=18 listening for EIT ts debug: * pid=20 listening for TDT ts debug: new SDT ts_id=45325 version=1 current_next=1 network_id=65416 ts debug: * service id=1 eit schedule=0 present=0 running=4 free_ca=0 ts debug: - type=22 provider=(null) name=(null) main debug: EsOutProgramMeta: number=1 ts debug: first packet for pid=100 cc=0xb ts debug: first packet for pid=200 cc=0x1 main debug: Buffering 0% mpegaudio debug: MPGA channels:2 samplerate:44100 bitrate:128 main debug: restarting module due to input format change main debug: removing module "mpg123" main debug: looking for audio decoder module matching "any": 23 candidates mpg123 debug: mpga->f32l, bits per sample: 32 main debug: using audio decoder module "mpg123" h264 warning: waiting for SPS/PPS main debug: reusing audio output main debug: looking for aout stream module matching "any": 2 candidates h264 warning: waiting for SPS/PPS wasapi debug: buffer size : 88200 frames main debug: Buffering 73% wasapi debug: maximum latency: 11610000 ns wasapi debug: default period : 10158700 ns wasapi debug: minimum period : 3000000 ns main debug: using aout stream module "wasapi" main debug: output 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes main debug: looking for audio volume module matching "any": 2 candidates main debug: using audio volume module "float_mixer" main debug: input 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes main debug: looking for audio filter module matching "scaletempo": 16 candidates scaletempo debug: format: 44100 rate, 2 nch, 4 bps, fl32 scaletempo debug: params: 30 stride, 0.200 overlap, 14 search scaletempo debug: 1.000 scale, 1323.000 stride_in, 1323 stride_out, 1059 standing, 264 overlap, 617 search, 2204 queue, fl32 mode main debug: using audio filter module "scaletempo" main debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo main debug: conversion pipeline complete main debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo main debug: conversion pipeline complete main debug: looking for audio resampler module matching "any": 3 candidates main debug: using audio resampler module "samplerate" main debug: Stream buffering done (145 ms in 137 ms) main error: buffer deadlock prevented main debug: Decoder wait done in 0 ms main debug: inserting 19145 zeroes mmdevice debug: state changed: 1 h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS main warning: playback too late (64692): up-sampling h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS h264 debug: found NAL_SPS (sps_id=0) h264 debug: found NAL_PPS (pps_id=0 sps_id=0) main debug: restarting module due to input format change main debug: removing module "avcodec" main debug: looking for video decoder module matching "any": 17 candidates avcodec debug: using ffmpeg Lavc58.6.103 avcodec debug: CPU flags: 0x000853db avcodec debug: allowing 5 thread(s) for decoding avcodec debug: codec (h264) started avcodec debug: using frame thread mode with 5 threads main debug: using video decoder module "avcodec" avcodec debug: available hardware decoder output format 119 (cuda) avcodec debug: available hardware decoder output format 53 (dxva2_vld) avcodec debug: available hardware decoder output format 118 (d3d11va_vld) avcodec debug: available hardware decoder output format 174 (d3d11) avcodec debug: available software decoder output format 0 (yuv420p) avcodec debug: trying format d3d11va_vld main debug: looking for text renderer module matching "any": 3 candidates freetype warning: DirectWrite initialization failed. Falling back to GDI/Uniscribe main debug: using text renderer module "freetype" main debug: looking for video converter module matching "any": 24 candidates swscale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality) main debug: using video converter module "swscale" main debug: looking for video converter module matching "any": 24 candidates yuvp debug: YUVP to YUVA converter main debug: using video converter module "yuvp" main debug: Deinterlacing available main debug: deinterlace -1, mode auto, is_needed 0 main debug: looking for vout window module matching "qt,any": 3 candidates qt debug: requesting video window... main debug: resized to 1920x919 main debug: resized to 624x352 main debug: using vout window module "qt" main debug: looking for inhibit module matching "any": 1 candidates main debug: using inhibit module "inhibit" main debug: Opening vout display wrapper main debug: looking for vout display module matching "direct3d11": 12 candidates direct3d11 debug: creating Vout EventThread direct3d11 debug: Win32VoutCreateWindow main debug: VoutDisplayEvent 'resize' 624x352 main debug: resized to 1920x919 main debug: VoutDisplayEvent 'resize' 1920x919 direct3d11 debug: inclinometer not found. (hr=0x80070490) direct3d11 debug: created video sub-window direct3d11 debug: Vout EventThread running direct3d11 debug: Created the D3D11 device type 1 level 9100. direct3d11 warning: could not get a IDXGISwapChain3 direct3d11 debug: Using pixel format B8G8R8A8 for chroma DX11 main debug: VoutDisplayEvent 'resize' 640x390 direct3d11 error: CreateTexture2D failed for the 1 pool. (hr=0x80070057) direct3d11 error: Failed to allocate the staging texture direct3d11 error: Failed to allocate format resources direct3d11 error: Direct3D11 could not be opened direct3d11 debug: Direct3D11 resources destroyed direct3d11 debug: Direct3D11 device adapter closed direct3d11 error: SetThumbNailClip failed: 0x800706f4 direct3d11 debug: Win32 Vout EventThread terminating direct3d11 debug: Win32VoutCloseWindow direct3d11 debug: WinProc WM_DESTROY main debug: no vout display modules matched main error: video output creation failed main debug: removing module "inhibit" qt debug: releasing video... qt debug: Video is not needed anymore main debug: removing module "freetype" main debug: removing module "yuvp" main debug: removing module "swscale" main error: failed to create video output avcodec debug: trying format dxva2_vld main debug: looking for text renderer module matching "any": 3 candidates freetype warning: DirectWrite initialization failed. Falling back to GDI/Uniscribe main debug: using text renderer module "freetype" main debug: looking for video converter module matching "any": 24 candidates swscale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality) main debug: using video converter module "swscale" main debug: looking for video converter module matching "any": 24 candidates yuvp debug: YUVP to YUVA converter main debug: using video converter module "yuvp" main debug: Deinterlacing available main debug: deinterlace -1, mode auto, is_needed 0 main debug: looking for vout window module matching "qt,any": 3 candidates qt debug: requesting video window... main debug: resized to 624x352 main debug: using vout window module "qt" main debug: looking for inhibit module matching "any": 1 candidates main debug: using inhibit module "inhibit" main debug: Opening vout display wrapper main debug: looking for vout display module matching "direct3d11": 12 candidates direct3d11 debug: creating Vout EventThread direct3d11 debug: Win32VoutCreateWindow main debug: VoutDisplayEvent 'resize' 624x352 direct3d11 debug: inclinometer not found. (hr=0x80070490) main debug: resized to 1920x919 main debug: VoutDisplayEvent 'resize' 1920x919 direct3d11 debug: created video sub-window direct3d11 debug: Vout EventThread running direct3d11 debug: Created the D3D11 device type 1 level a100. direct3d11 debug: Intel WDDM driver 8.15.10.2238 direct3d11 warning: could not get a IDXGISwapChain3 direct3d11 debug: Using pixel format I420 for chroma DXA9 main debug: VoutDisplayEvent 'resize' 640x390 direct3d11 debug: Direct3D11 resources created direct3d11 debug: Direct3D11 device adapter successfully initialized direct3d11 debug: Direct3D11 Open Succeeded main debug: using vout display module "direct3d11" main debug: A filter to adapt decoder DXA9 to display I420 is needed main debug: looking for video converter module matching "any": 24 candidates d3d9_filters debug: Using Direct3D9 Extended API! main debug: using video converter module "d3d9_filters" main debug: Filter 'd3d9_filters' (07d6d208) appended to chain direct3d11 debug: D3D11 pool succeed with 5 surfaces (624x352) context 0x064043a4 main debug: original format sz 624x352, of (0,0), vsz 624x352, 4cc DXA9, sar 1:1, msk r0x0 g0x0 b0x0 main debug: removing module "freetype" main debug: VoutDisplayEvent 'resize' 1920x919 main debug: looking for text renderer module matching "any": 3 candidates freetype warning: DirectWrite initialization failed. Falling back to GDI/Uniscribe direct3d11 debug: Detected size change 1629x919 main debug: using text renderer module "freetype" main debug: looking for hw decoder module matching "none": 2 candidates main debug: no hw decoder modules matched main debug: removing module "d3d9_filters" main debug: Filter 07d6d208 removed from chain main debug: removing module "direct3d11" direct3d11 debug: Direct3D11 resources destroyed direct3d11 debug: Direct3D11 device adapter closed direct3d11 error: SetThumbNailClip failed: 0x800706f4 direct3d11 debug: Win32 Vout EventThread terminating direct3d11 debug: Win32VoutCloseWindow direct3d11 debug: WinProc WM_DESTROY main debug: deinterlace -1, mode auto, is_needed 0 main debug: Opening vout display wrapper main debug: looking for vout display module matching "direct3d11": 12 candidates direct3d11 debug: creating Vout EventThread direct3d11 debug: Win32VoutCreateWindow main debug: VoutDisplayEvent 'resize' 1920x919 direct3d11 debug: inclinometer not found. (hr=0x80070490) direct3d11 debug: created video sub-window direct3d11 debug: Vout EventThread running direct3d11 debug: Created the D3D11 device type 1 level a100. direct3d11 debug: Intel WDDM driver 8.15.10.2238 direct3d11 warning: could not get a IDXGISwapChain3 direct3d11 debug: Using pixel format I420 for chroma I420 main debug: VoutDisplayEvent 'resize' 640x390 direct3d11 debug: Direct3D11 resources created direct3d11 debug: Direct3D11 device adapter successfully initialized direct3d11 debug: Direct3D11 Open Succeeded main debug: using vout display module "direct3d11" direct3d11 debug: D3D11 pool succeed with 38 surfaces (624x354) context 0x064043a4 main debug: original format sz 624x354, of (0,0), vsz 624x352, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 main debug: reusing provided vout avcodec warning: plane 0 not aligned: disabling direct rendering main debug: VoutDisplayEvent 'resize' 1920x919 direct3d11 debug: Detected size change 1629x919 main debug: auto hiding mouse cursor main debug: resampling stopped (drift: -10471 us)

My Custom VLC Player LOGS using libvlc api (3.0.4) (Direct3d9 adapter created instead of Direct3d11)

Code: Select all

VLC media player - 3.0.4 Vetinari Copyright © 1996-2018 the VideoLAN team revision 3.0.4-0-gf615db6332 configured with ../extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-dvdread' '--enable-shout' '--enable-goom' '--enable-caca' '--enable-qt' '--enable-skins2' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--host=i686-w64-mingw32' '--with-breakpad=https://win.crashes.videolan.org' 'host_alias=i686-w64-mingw32' 'PKG_CONFIG_LIBDIR=/home/jenkins/workspace/vlc-release/windows/vlc-release-win32-x86/contrib/i686-w64-mingw32/lib/pkgconfig' removing module "directsound" Creating an input for 'udp://239.255.255.10:44001' using timeshift granularity of 50 MiB using timeshift path: C:\Users\etepe\AppData\Local\Temp `udp://@239.255.255.10:44001' gives access `udp' demux `any' path `@239.255.255.10:44001' creating demux: access='udp' demux='any' location='@239.255.255.10:44001' file='\\@239.255.255.10:44001' looking for access_demux module matching "udp": 15 candidates no access_demux modules matched creating access: udp://@239.255.255.10:44001 (path: \\@239.255.255.10:44001) looking for access module matching "udp": 26 candidates opening server=:0 local=239.255.255.10:44001 net: opening 239.255.255.10 datagram port 44001 using access module "udp" looking for stream_filter module matching "prefetch,cache_block": 24 candidates using 16777216 bytes buffer, 16384 bytes read using stream_filter module "prefetch" looking for stream_filter module matching "any": 24 candidates Trying Lua scripts in C:\Users\etepe\AppData\Roaming\vlc\lua\playlist Trying Lua scripts in C:\Qt\libvlc-qt_0.6.2_win32_sdk\bin\vlc_304\lua\playlist no stream_filter modules matched looking for stream_directory module matching "any": 1 candidates no stream_directory modules matched attachment of directory-extractor failed for udp://@239.255.255.10:44001 looking for stream_filter module matching "record": 24 candidates using stream_filter module "record" creating demux: access='udp' demux='any' location='@239.255.255.10:44001' file='\\@239.255.255.10:44001' looking for demux module matching "any": 55 candidates looking for xml reader module matching "any": 1 candidates using xml reader module "xml" Standard set to Auto using demux module "ts" DEMUX_SET_GROUP 0 0 looking for meta reader module matching "any": 2 candidates Trying Lua scripts in C:\Users\etepe\AppData\Roaming\vlc\lua\meta\reader Trying Lua scripts in C:\Qt\libvlc-qt_0.6.2_win32_sdk\bin\vlc_304\lua\meta\reader no meta reader modules matched `udp://@239.255.255.10:44001' successfully opened pid[100] unknown pid[200] unknown first packet for pid=200 cc=0x4 first packet for pid=0 cc=0x4 PATCallBack called new PAT ts_id=45325 version=14 current_next=1 * number=1 pid=32 temporary receiving program 1 first packet for pid=32 cc=0x4 PMTCallBack called for program 1 new PMT program number=1 version=10 pid_pcr=100 * pid=200 type=0x3 ISO/IEC 11172 Audio - ES descriptor tag 0xa found language: => pid 200 has now es fcc=mpga selecting program id=1 looking for packetizer module matching "any": 24 candidates using packetizer module "mpegaudio" looking for audio decoder module matching "any": 23 candidates mpga->f32l, bits per sample: 32 using audio decoder module "mpg123" Default program is 1 * pid=100 type=0x1b AVC video stream as defined in ITU-T Rec. H.264 - ES descriptor tag 0xa => pid 100 has now es fcc=h264 looking for packetizer module matching "any": 24 candidates using packetizer module "h264" looking for video decoder module matching "any": 17 candidates using ffmpeg Lavc58.6.103 CPU flags: 0x000853db allowing 5 thread(s) for decoding codec (h264) started using frame thread mode with 5 threads using video decoder module "avcodec" * pid=17 listening for SDT enabling pid 200 from program 1 enabling pid 100 from program 1 enabling pcr pid 100 from program 1 first packet for pid=17 cc=0x4 SDTCallBack called * pid=18 listening for EIT * pid=20 listening for TDT new SDT ts_id=45325 version=1 current_next=1 network_id=65416 * service id=1 eit schedule=0 present=0 running=4 free_ca=0 - type=22 provider=(null) name=(null) EsOutProgramMeta: number=1 first packet for pid=100 cc=0x7 first packet for pid=200 cc=0x9 Buffering 0% MPGA channels:2 samplerate:44100 bitrate:128 restarting module due to input format change removing module "mpg123" looking for audio decoder module matching "any": 23 candidates mpga->f32l, bits per sample: 32 using audio decoder module "mpg123" waiting for SPS/PPS Buffering 73% creating audio output looking for audio output module matching "any": 6 candidates waiting for SPS/PPS using default device version 2 session control unavailable volume from -192.000000 dB to +0.000000 dB with 1.500000 dB increments using audio output module "mmdevice" looking for aout stream module matching "any": 2 candidates display name changed: VLC media player (LibVLC 3.0.4) waiting for SPS/PPS buffer size : 88200 frames maximum latency: 11610000 ns default period : 10158700 ns minimum period : 3000000 ns using aout stream module "wasapi" output 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes looking for audio volume module matching "any": 2 candidates using audio volume module "float_mixer" input 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes looking for audio filter module matching "scaletempo": 16 candidates format: 44100 rate, 2 nch, 4 bps, fl32 params: 30 stride, 0.200 overlap, 14 search 1.000 scale, 1323.000 stride_in, 1323 stride_out, 1059 standing, 264 overlap, 617 search, 2204 queue, fl32 mode using audio filter module "scaletempo" conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo conversion pipeline complete conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo conversion pipeline complete looking for audio resampler module matching "any": 3 candidates using audio resampler module "samplerate" Stream buffering done (146 ms in 131 ms) buffer deadlock prevented Decoder wait done in 0 ms inserting 18639 zeroes state changed: 1 waiting for SPS/PPS waiting for SPS/PPS playback too late (84621): up-sampling waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS found NAL_SPS (sps_id=0) found NAL_PPS (pps_id=0 sps_id=0) restarting module due to input format change removing module "avcodec" looking for video decoder module matching "any": 17 candidates using ffmpeg Lavc58.6.103 CPU flags: 0x000853db allowing 5 thread(s) for decoding codec (h264) started using frame thread mode with 5 threads using video decoder module "avcodec" available hardware decoder output format 119 (cuda) available hardware decoder output format 53 (dxva2_vld) available hardware decoder output format 118 (d3d11va_vld) available hardware decoder output format 174 (d3d11) available software decoder output format 0 (yuv420p) trying format d3d11va_vld looking for text renderer module matching "any": 3 candidates DirectWrite initialization failed. Falling back to GDI/Uniscribe using text renderer module "freetype" looking for video converter module matching "any": 24 candidates 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality) using video converter module "swscale" looking for video converter module matching "any": 24 candidates YUVP to YUVA converter using video converter module "yuvp" Deinterlacing available deinterlace -1, mode auto, is_needed 0 looking for vout window module matching "embed-hwnd,any": 3 candidates using vout window module "drawable" looking for inhibit module matching "any": 1 candidates using inhibit module "inhibit" Opening vout display wrapper looking for vout display module matching "any": 12 candidates Using Direct3D9 Extended API! cannot load Direct3D9 Shader Library; HLSL pixel shading will be disabled. creating Vout EventThread Win32VoutCreateWindow VoutDisplayEvent 'resize' 624x352 inclinometer not found. (hr=0x80070490) created video sub-window Vout EventThread running D3D9 device caps 0x19AE50 / 0x51 Direct3d9 Device: Intel(R) HD Graphics Family 32902 258 9 trying surface pixel format: NV12 selected surface pixel format is NV12 VoutDisplayEvent 'resize' 640x390 Direct3D9 scene created successfully Direct3D shaders initialization failed ! Direct3D9 device adapter successfully initialized using vout display module "direct3d9" A filter to adapt decoder DX11 to display NV12 is needed looking for video converter module matching "any": 24 candidates using video converter module "d3d11_filters" Filter 'd3d11_filters' (0x768ddd8) appended to chain original format sz 624x352, of (0,0), vsz 624x352, 4cc DX11, sar 1:1, msk r0x0 g0x0 b0x0 removing module "freetype" looking for text renderer module matching "any": 3 candidates VoutDisplayEvent 'resize' 942x419 DirectWrite initialization failed. Falling back to GDI/Uniscribe using text renderer module "freetype" looking for hw decoder module matching "any": 2 candidates no hw decoder modules matched trying format dxva2_vld removing module "d3d11_filters" Filter 0x768ddd8 removed from chain removing module "direct3d9" Direct3D9 scene released successfully SetThumbNailClip failed: 0x800706f4 Win32 Vout EventThread terminating Win32VoutCloseWindow WinProc WM_DESTROY deinterlace -1, mode auto, is_needed 0 Opening vout display wrapper looking for vout display module matching "any": 12 candidates Using Direct3D9 Extended API! cannot load Direct3D9 Shader Library; HLSL pixel shading will be disabled. creating Vout EventThread Win32VoutCreateWindow VoutDisplayEvent 'resize' 624x352 inclinometer not found. (hr=0x80070490) created video sub-window Vout EventThread running D3D9 device caps 0x19AE50 / 0x51 Direct3d9 Device: Intel(R) HD Graphics Family 32902 258 9 trying surface pixel format: DXA9 selected surface pixel format is DXA9 VoutDisplayEvent 'resize' 640x390 Direct3D9 scene created successfully Direct3D shaders initialization failed ! Direct3D9 device adapter successfully initialized using vout display module "direct3d9" original format sz 624x352, of (0,0), vsz 624x352, 4cc DXA9, sar 1:1, msk r0x0 g0x0 b0x0 reusing provided vout looking for hw decoder module matching "any": 2 candidates VoutDisplayEvent 'resize' 942x419 Using Direct3D9 Extended API! Reusing Direct3D9 device CreateDevice succeed OurDirect3DCreateDeviceManager9 Success! obtained IDirect3DDeviceManager9 - 'MPEG-2 variable-length decoder' is supported - 'MPEG-2 inverse discrete cosine transform' is supported - 'VC-1 variable-length decoder 2 (Intel)' is supported - 'VC-1 variable-length decoder (Intel)' is supported - 'H.264 variable-length decoder, no film grain technology (Intel ClearVideo)' is supported - 'H.264 variable-length decoder, no film grain technology' is supported - 'Unknown decoder 0xa74ccae2-0xf466-0x45ae-0x86f5ab8be8af8483' is supported - 'Windows Media Video 9 IDCT' is supported - 'VC-1 inverse discrete cosine transform' is supported Trying to use 'H.264 variable-length decoder, no film grain technology' as input NV12 is supported for output Using decoder output 'NV12' va_pool_SetupDecoder id 27 624x352 count: 23 IDirectXVideoAccelerationService_CreateSurface succeed with 23 surfaces (624x352) we got 2 decoder configurations configuration[0] ConfigBitstreamRaw 1 configuration[1] ConfigBitstreamRaw 1 IDirectXVideoDecoderService_CreateVideoDecoder succeed using hw decoder module "dxva2" Using DXVA2 (Intel(R) HD Graphics Family, vendor Intel(32902), device 258, revision 9) for hardware decoding auto hiding mouse cursor
Any help would be appriciated.

Cheers.

Rémi Denis-Courmont
Developer
Developer
Posts: 15133
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: "Video output module" can not be set through libvlc api

Postby Rémi Denis-Courmont » 22 Nov 2018 18:28

It is one of many values that LibVLC controls automatically.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Moriquendi
Blank Cone
Blank Cone
Posts: 74
Joined: 31 May 2011 16:22

Re: "Video output module" can not be set through libvlc api

Postby Moriquendi » 23 Nov 2018 06:00

Hi Remi,

Thanks for the quick response. Correct me if I'm wrong, so there is no way to force libvlc to change its vout module?

mfkl
Developer
Developer
Posts: 716
Joined: 13 Jun 2017 10:41

Re: "Video output module" can not be set through libvlc api

Postby mfkl » 26 Nov 2018 02:53

Remove the vouts dlls you don't want?
You may need to tell your app to look for dlls elsewhere than in the VLC app directory.
https://mfkl.github.io

Moriquendi
Blank Cone
Blank Cone
Posts: 74
Joined: 31 May 2011 16:22

Re: "Video output module" can not be set through libvlc api

Postby Moriquendi » 26 Nov 2018 06:24

Remove the vouts dlls you don't want?
You may need to tell your app to look for dlls elsewhere than in the VLC app directory.
Wow, removed the libdirect3d9_plugin.dll and worked like a charm. Thanks man!

mfkl
Developer
Developer
Posts: 716
Joined: 13 Jun 2017 10:41

Re: "Video output module" can not be set through libvlc api

Postby mfkl » 27 Nov 2018 03:21

If you remove these dlls from the VLC install folder, your VLC app will be crippled hence the " You may need to tell your app to look for dlls elsewhere than in the VLC app directory. "
https://mfkl.github.io

neosettler
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 18 Dec 2012 17:44

Re: "Video output module" can not be set through libvlc api

Postby neosettler » 30 Jan 2019 03:21

Hello and thank you for your support.

removing :
libdirect3d9_plugin.dll
libdirect3d11_plugin.dll

does in fact fallback to OpenGL output. One annoying side effect is that the video does flickers, seems like black or missing frames. Why " You may need to tell your app to look for dlls elsewhere than in the VLC app directory. " would be necessary though?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests