Page 1 of 1

How to overcome "Qt interface not found" error?

Posted: 11 Dec 2018 11:58
by Moriquendi
Hello,

I have a cpu performance issue with libvlc instance. When I open a single media player using libvlc api, my Transport Stream 1080 video consumes around 22% my cpu power. If I use VLC 3.0.4, it consumes only around 11% which is a lot less. Anyway, I compared VLC logs of my applicaton and VLC Media Player 3.0.4 logs and I noticed that vout window modules are different. My application's vout is "drawable" module where as VLC 3.0.4 has "qt" vout module. So I assumed if I change the "embed-hwnd" parameter to "qt" in libvlc_media_player_set_hwnd function in media_player.c, it could solve my problem. Here's how I compiled libvlc api:

My VLC code:
I changed the line

Code: Select all

var_SetString (p_mi, "window", (drawable != NULL) ? "embed-hwnd,any" : "");
to

Code: Select all

var_SetString (p_mi, "window", (drawable != NULL) ? "qt,any" : "");
in libvlc_media_player_set_hwnd function in media_player.c.

Then I compiled the code in Debian for Win32. Sadly, it didn't solve my problem. Even tough I managed to pass "qt" parameter as:

Code: Select all

looking for vout window module matching "qt,any": 3 candidates
the next line in the log says:

Code: Select all

Qt interface not found
and my cpu usage stays the same.

The newly built VLC log of my application is as follows:

Code: Select all

VLC media player - 3.0.5 Vetinari Copyright © 1996-2018 the VideoLAN team revision 3.0.4-284-gbedc72800f 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' '--build=x86_64-pc-linux-gnu' '--disable-debug' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=i686-w64-mingw32' 'PKG_CONFIG_LIBDIR=/home/ero/vlc/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:\Users\etepe\Desktop\4.0.0\lua\playlist Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\anevia_streams.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\anevia_xml.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\appletrailers.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\bbc_co_uk.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\cue.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\dailymotion.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\jamendo.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\koreus.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\liveleak.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\newgrounds.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\rockbox_fm_presets.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\soundcloud.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\twitch.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\vimeo.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\vocaroo.luac Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\playlist\youtube.luac 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" subtitle demux discarded 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:\Users\etepe\Desktop\4.0.0\lua\meta\reader Trying Lua playlist script C:\Users\etepe\Desktop\4.0.0\lua\meta\reader\filename.luac no meta reader modules matched `udp://@239.255.255.10:44001' successfully opened pid[100] unknown first packet for pid=100 cc=0x2 pid[200] unknown first packet for pid=200 cc=0x2 first packet for pid=0 cc=0xa PATCallBack called new PAT ts_id=62156 version=30 current_next=1 * number=1 pid=32 temporary receiving program 1 first packet for pid=32 cc=0xa PMTCallBack called for program 1 new PMT program number=1 version=27 pid_pcr=100 * 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 selecting program id=1 looking for packetizer module matching "any": 25 candidates using packetizer module "h264" looking for video decoder module matching "any": 18 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" Default program is 1 * pid=200 type=0x3 ISO/IEC 11172 Audio - ES descriptor tag 0xa found language: => pid 200 has now es fcc=mpga looking for packetizer module matching "any": 25 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" * pid=17 listening for SDT enabling pid 100 from program 1 enabling pid 200 from program 1 enabling pcr pid 100 from program 1 first packet for pid=17 cc=0xa SDTCallBack called * pid=18 listening for EIT * pid=20 listening for TDT new SDT ts_id=62156 version=1 current_next=1 network_id=65440 * 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=0xe first packet for pid=200 cc=0x7 Buffering 0% MPGA channels:2 samplerate:44100 bitrate:128 waiting for SPS/PPS 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" creating audio output looking for audio output module matching "directsound": 6 candidates found 2 devices using audio output module "directsound" Opening DirectSound Audio Output waiting for SPS/PPS Windows speaker config: Stereo and stream has 2 channels, using 2 channels Stream buffering done (71 ms in 52 ms) buffer deadlock prevented 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" Decoder wait done in 5 ms waiting for SPS/PPS waiting for SPS/PPS playback way too early (-260220): playing silence inserting 11475 zeroes waiting for SPS/PPS ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) ES_OUT_RESET_PCR called waiting for SPS/PPS Buffering 0% waiting for SPS/PPS Stream buffering done (72 ms in 73 ms) waiting for SPS/PPS buffer deadlock prevented Decoder wait done in 0 ms waiting for SPS/PPS playback way too early (-346478): playing silence inserting 15279 zeroes waiting for SPS/PPS playback too late (82062): 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 ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) ES_OUT_RESET_PCR called waiting for SPS/PPS Buffering 0% waiting for SPS/PPS Stream buffering done (71 ms in 71 ms) buffer deadlock prevented Decoder wait done in 0 ms waiting for SPS/PPS waiting for SPS/PPS playback way too early (-341591): playing silence inserting 15064 zeroes playback too late (73174): up-sampling waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 3 ms) ES_OUT_RESET_PCR called Buffering 0% waiting for SPS/PPS waiting for SPS/PPS Stream buffering done (66 ms in 69 ms) buffer deadlock prevented Decoder wait done in 0 ms waiting for SPS/PPS playback way too early (-351046): playing silence inserting 15481 zeroes waiting for SPS/PPS playback too late (86042): up-sampling waiting for SPS/PPS ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 4 ms) ES_OUT_RESET_PCR called Buffering 0% waiting for SPS/PPS waiting for SPS/PPS Stream buffering done (73 ms in 66 ms) buffer deadlock prevented Decoder wait done in 0 ms waiting for SPS/PPS waiting for SPS/PPS playback way too early (-353067): playing silence inserting 15570 zeroes playback too late (69327): 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 ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 4 ms) ES_OUT_RESET_PCR called Buffering 0% waiting for SPS/PPS waiting for SPS/PPS waiting for SPS/PPS Stream buffering done (69 ms in 70 ms) buffer deadlock prevented Decoder wait done in 0 ms waiting for SPS/PPS waiting for SPS/PPS playback way too early (-343180): playing silence inserting 15134 zeroes playback too late (76806): 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 ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 4 ms) ES_OUT_RESET_PCR called waiting for SPS/PPS Buffering 0% waiting for SPS/PPS waiting for SPS/PPS Stream buffering done (70 ms in 72 ms) buffer deadlock prevented Decoder wait done in 0 ms waiting for SPS/PPS playback way too early (-335405): playing silence inserting 14791 zeroes waiting for SPS/PPS playback too late (74209): 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 ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 5 ms) ES_OUT_RESET_PCR called waiting for SPS/PPS Buffering 0% waiting for SPS/PPS Stream buffering done (68 ms in 76 ms) buffer deadlock prevented Decoder wait done in 0 ms waiting for SPS/PPS waiting for SPS/PPS playback way too early (-348053): playing silence inserting 15349 zeroes waiting for SPS/PPS playback too late (71371): 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 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": 18 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 0, mode auto, is_needed 0 looking for vout window module matching "qt,any": 3 candidates Qt interface not found 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 8086 102 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"
And here is the VLC 3.0.4 log:

Code: Select all

main debug: processing request item: udp://: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://:44001 main debug: udp://:44001 is at 0 main debug: creating new input thread main debug: Creating an input for 'udp://:44001' main debug: requesting art for new input thread main debug: looking for meta fetcher module matching "any": 1 candidates lua debug: Trying Lua scripts in C:\Users\etepe\AppData\Roaming\vlc\lua\meta\fetcher main debug: using timeshift granularity of 50 MiB lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher main debug: using timeshift path: C:\Users\etepe\AppData\Local\Temp main debug: no meta fetcher modules matched main debug: `udp://@:44001' gives access `udp' demux `any' path `@:44001' main debug: looking for art finder module matching "any": 2 candidates main debug: creating demux: access='udp' demux='any' location='@:44001' file='\\@:44001' main debug: looking for access_demux module matching "udp": 15 candidates main debug: no access_demux modules matched main debug: creating access: udp://@:44001 main debug: (path: \\@:44001) main debug: looking for access module matching "udp": 26 candidates udp debug: opening server=:0 local=:44001 main debug: net: opening any datagram port 44001 lua debug: Trying Lua scripts in C:\Users\etepe\AppData\Roaming\vlc\lua\meta\art 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: 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 main debug: using access module "udp" main debug: looking for stream_filter module matching "prefetch,cache_block": 24 candidates 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 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: 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\meta\art\03_lastfm.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: skipping script (unmatched scope) 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\anevia_streams.luac main debug: no art finder modules matched lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\anevia_xml.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\appletrailers.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\playlist\cue.luac 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://@: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='@:44001' file='\\@:44001' main debug: looking for demux module matching "any": 55 candidates 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://@:44001' successfully opened ts debug: pid[100] unknown ts debug: first packet for pid=100 cc=0xd ts debug: pid[200] unknown ts debug: first packet for pid=200 cc=0x6 qt debug: IM: Setting an input ts debug: first packet for pid=0 cc=0x2 ts debug: PATCallBack called ts debug: new PAT ts_id=62156 version=30 current_next=1 ts debug: * number=1 pid=32 ts debug: temporary receiving program 1 ts debug: first packet for pid=32 cc=0x2 ts debug: PMTCallBack called for program 1 ts debug: new PMT program number=1 version=23 pid_pcr=100 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: selecting program id=1 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: Default program is 1 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: 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: * pid=17 listening for SDT ts debug: enabling pid 100 from program 1 ts debug: enabling pid 200 from program 1 ts debug: enabling pcr pid 100 from program 1 ts debug: first packet for pid=17 cc=0x2 ts debug: SDTCallBack called ts debug: * pid=18 listening for EIT ts debug: * pid=20 listening for TDT ts debug: new SDT ts_id=62156 version=1 current_next=1 network_id=65440 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=0xd 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: Buffering 71% main debug: reusing audio output h264 warning: waiting for SPS/PPS main debug: looking for aout stream module matching "any": 2 candidates wasapi debug: buffer size : 88200 frames 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" h264 warning: waiting for SPS/PPS main debug: Stream buffering done (143 ms in 141 ms) main error: buffer deadlock prevented main debug: Decoder wait done in 0 ms main debug: inserting 19189 zeroes mmdevice debug: state changed: 1 h264 warning: waiting for SPS/PPS h264 warning: waiting for SPS/PPS main warning: playback too late (65320): 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 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 547x337 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 "direct3d9": 12 candidates direct3d9 debug: Using Direct3D9 Extended API! direct3d9 warning: cannot load Direct3D9 Shader Library; HLSL pixel shading will be disabled. direct3d9 debug: creating Vout EventThread direct3d9 debug: Win32VoutCreateWindow main debug: VoutDisplayEvent 'resize' 624x352 direct3d9 debug: inclinometer not found. (hr=0x80070490) qt debug: Logical video size: 624x352 main debug: resized to 624x352 main debug: VoutDisplayEvent 'resize' 624x352 direct3d9 debug: created video sub-window direct3d9 debug: Vout EventThread running direct3d9 debug: D3D9 device caps 0x19AE50 / 0x51 direct3d9 debug: Direct3d9 Device: Intel(R) HD Graphics Family 32902 258 9 direct3d9 warning: trying surface pixel format: NV12 direct3d9 debug: selected surface pixel format is NV12 main debug: VoutDisplayEvent 'resize' 640x390 direct3d9 debug: Direct3D9 scene created successfully direct3d9 warning: Direct3D shaders initialization failed ! direct3d9 debug: Direct3D9 device adapter successfully initialized main debug: using vout display module "direct3d9" main debug: A filter to adapt decoder DX11 to display NV12 is needed main debug: looking for video converter module matching "any": 24 candidates main debug: using video converter module "d3d11_filters" main debug: Filter 'd3d11_filters' (04f5fd18) appended to chain main debug: original format sz 624x352, of (0,0), vsz 624x352, 4cc DX11, sar 1:1, msk r0x0 g0x0 b0x0 main debug: removing module "freetype" main debug: looking for text renderer module matching "any": 3 candidates main debug: VoutDisplayEvent 'resize' 624x352 freetype warning: DirectWrite initialization failed. Falling back to GDI/Uniscribe 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 avcodec debug: trying format dxva2_vld main debug: removing module "d3d11_filters" main debug: Filter 04f5fd18 removed from chain main debug: removing module "direct3d9" direct3d9 debug: Direct3D9 scene released successfully qt debug: Logical video size: 624x352 main debug: resized to 624x352 main debug: VoutDisplayEvent 'resize' 624x352 direct3d9 error: SetThumbNailClip failed: 0x800706f4 direct3d9 debug: Win32 Vout EventThread terminating direct3d9 debug: Win32VoutCloseWindow direct3d9 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 "direct3d9": 12 candidates direct3d9 debug: Using Direct3D9 Extended API! direct3d9 warning: cannot load Direct3D9 Shader Library; HLSL pixel shading will be disabled. direct3d9 debug: creating Vout EventThread direct3d9 debug: Win32VoutCreateWindow main debug: VoutDisplayEvent 'resize' 624x352 direct3d9 debug: inclinometer not found. (hr=0x80070490) direct3d9 debug: created video sub-window direct3d9 debug: Vout EventThread running direct3d9 debug: D3D9 device caps 0x19AE50 / 0x51 direct3d9 debug: Direct3d9 Device: Intel(R) HD Graphics Family 32902 258 9 qt debug: Logical video size: 624x352 main debug: resized to 624x352 main debug: VoutDisplayEvent 'resize' 624x352 direct3d9 warning: trying surface pixel format: DXA9 direct3d9 debug: selected surface pixel format is DXA9 main debug: VoutDisplayEvent 'resize' 640x390 direct3d9 debug: Direct3D9 scene created successfully direct3d9 warning: Direct3D shaders initialization failed ! direct3d9 debug: Direct3D9 device adapter successfully initialized main debug: using vout display module "direct3d9" main debug: original format sz 624x352, of (0,0), vsz 624x352, 4cc DXA9, sar 1:1, msk r0x0 g0x0 b0x0 main debug: reusing provided vout main debug: looking for hw decoder module matching "none": 2 candidates main debug: no hw decoder modules matched main debug: removing module "direct3d9"
I also checked the error message "Qt interface not found" and found that in "modules/gui/qt/qt.cpp", "static int WindowOpen" function throws that message. But honestly, I dont know how to overcome this issue, or even know if it is possible to modify the code for my needs.

Do you think I can use "qt" interface as vout module by changing the VLC source code and help my application to use less cpu power? If so, any help would be appriciated.
Regards.

Re: How to overcome "Qt interface not found" error?

Posted: 11 Dec 2018 16:18
by unidan
Hi, in what do you want to start the video? your window or a new dedicated window?

Windows don't really affect performances, video outputs do. You might consider using accelerated output like opengl or directx for example.
But what matters here might be more the decoder than the video output, as you have

Code: Select all

DirectWrite initialization failed. Falling back to GDI/Uniscribe

Re: How to overcome "Qt interface not found" error?

Posted: 12 Dec 2018 06:07
by mfkl
qt is a UI framework, so unrelated to your CPU usage question. Try enabling hardware acceleration if not the case already.

Re: How to overcome "Qt interface not found" error?

Posted: 12 Dec 2018 18:00
by Rémi Denis-Courmont
1) Make sure you are using VLC with default settings, otherwise it's not comparable.
2) If so, then make sure your window properties do not differ from VLC's own UI in ways that restrict performance.