Can't get anything but a black screen

This forum is about all development around libVLC.
dcouchotvore
New Cone
New Cone
Posts: 7
Joined: 04 Aug 2008 17:20

Can't get anything but a black screen

Postby dcouchotvore » 12 Dec 2018 03:31

... and I've searched every "black screen" thread I could find. This is my first attempt at using libVLC in a project (Windows, to be ported to Linux), and it's driving me nuts. Regardless of the media, all I can get is a black screen. The code is spread out over three C++ classes, but the sequence of calls into the libVLC is:

libvlc_new
libvlc_media_player_new
libvlc_media_new_path
libvlc_media_player_set_hwnd
libvlc_media_duplicate
libvlc_media_player_is_playing
libvlc_media_player_set_media
libvlc_media_player_play

Since important structure definition is missing from the header files, it is impossible to check the pointers at each step, but they look reasonable and I don't get any error reports. I first tried JPEG files, but realizing that VLC has trouble with a lot of JPEG's, I tried an MP4. No video, no sound. Trace output is:

Code: Select all

[003b21e0] main libvlc debug: VLC media player - 3.0.4 Vetinari [003b21e0] main libvlc debug: Copyright -¬ 1996-2018 the VideoLAN team [003b21e0] main libvlc debug: revision 3.0.4-0-gf615db6332 [003b21e0] main libvlc debug: 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' [003b21e0] main libvlc debug: using multimedia timers as clock source [003b21e0] main libvlc debug: min period: 1 ms, max period: 1000000 ms [003b21e0] main libvlc debug: searching plug-in modules [003b21e0] main libvlc debug: loading plugins cache file C:\Development\arduino\Stroker\Pammm\bin\Debug\plugins\plugins.dat [003b21e0] main libvlc warning: cannot read C:\Development\arduino\Stroker\Pammm\bin\Debug\plugins\plugins.dat: No such file or directory [003b21e0] main libvlc debug: recursively browsing `C:\Development\arduino\Stroker\Pammm\bin\Debug\plugins' [003b21e0] main libvlc debug: plug-ins loaded: 490 modules [003b2388] main logger debug: looking for logger module matching "any": 2 candidates [003b2388] main logger debug: using logger module "console" [003b21e0] main libvlc debug: translation test: code is "C" [0241bff8] main keystore debug: looking for keystore module matching "memory": 3 candidates [0241bff8] main keystore debug: using keystore module "memory" [003b21e0] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU [0243c048] main playlist debug: creating audio output [0243c288] main audio output debug: looking for audio output module matching "any": 6 candidates [0243c288] mmdevice audio output debug: using default device [0243c288] mmdevice audio output debug: version 2 session control unavailable [0243c288] mmdevice audio output debug: display name changed: VLC media player (LibVLC 3.0.4) [0243c288] mmdevice audio output debug: volume from -95.250000 dB to +0.000000 dB with 0.031250 dB increments [0243c288] main audio output debug: using audio output module "mmdevice" [0243c048] main playlist debug: keeping audio output [02437860] main generic debug: creating audio output [0243f848] main input debug: Creating an input for preparsing 'Debug--extraintf=logger' [0243d908] main audio output debug: looking for audio output module matching "any": 6 candidates [023b9d10] main meta fetcher debug: looking for meta fetcher module matching "any": 1 candidates [0243d908] mmdevice audio output debug: using default device [023b9d10] lua meta fetcher debug: Trying Lua scripts in C:\Users\Duane\AppData\Roaming\vlc\lua\meta\fetcher [0243d908] mmdevice audio output debug: version 2 session control unavailable [023b9d10] lua meta fetcher debug: Trying Lua scripts in C:\Development\arduino\Stroker\Pammm\bin\Debug\lua\meta\fetcher [0243d908] mmdevice audio output debug: volume from -95.250000 dB to +0.000000 dB with 0.031250 dB increments [023b9d10] main meta fetcher debug: no meta fetcher modules matched [0243d908] main audio output debug: using audio output module "mmdevice" [023b9d10] main art finder debug: looking for art finder module matching "any": 2 candidates [02437860] main generic debug: keeping audio output [023b9d10] lua art finder debug: Trying Lua scripts in C:\Users\Duane\AppData\Roaming\vlc\lua\meta\art [02442a68] main input debug: Creating an input for 'All Summer In A Day Pt 2 - YouTube.mp4' [023b9d10] lua art finder debug: Trying Lua scripts in C:\Development\arduino\Stroker\Pammm\bin\Debug\lua\meta\art [02442a68] main input debug: using timeshift granularity of 50 MiB [023b9d10] main art finder debug: no art finder modules matched [02442a68] main input debug: using timeshift path: C:\Users\Duane\AppData\Local\Temp [02442a68] main input debug: `file:///C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4' gives access `file' demux `any' path `/C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4' [0242aa48] main input source debug: creating demux: access='file' demux='any' location='/C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20You Tube.mp4' file='C:\pammmedia\1\All Summer In A Day Pt 2 - YouTube.mp4' [02426a48] main demux debug: looking for access_demux module matching "file": 15 candidates [02426a48] main demux debug: no access_demux modules matched [0242cb28] main stream debug: creating access: file:///C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4 [0242cb28] main stream debug: (path: C:\pammmedia\1\All Summer In A Day Pt 2 - YouTube.mp4) [0242cb28] main stream debug: looking for access module matching "file": 26 candidates [0242cb28] main stream debug: using access module "filesystem" [0242cc08] main stream debug: looking for stream_filter module matching "prefetch,cache_read": 24 candidates [0242cc08] cache_read stream debug: Using stream method for AStream* [0242cc08] cache_read stream debug: starting pre-buffering [0242cc08] cache_read stream debug: received first data after 17 ms [0242cc08] cache_read stream debug: pre-buffering done 1024 bytes in 0s - 24 KiB/s [0242cc08] main stream debug: using stream_filter module "cache_read" [0242cce8] main stream debug: looking for stream_filter module matching "any": 24 candidates [0242cce8] lua stream debug: Trying Lua scripts in C:\Users\Duane\AppData\Roaming\vlc\lua\playlist [0242cce8] lua stream debug: Trying Lua scripts in C:\Development\arduino\Stroker\Pammm\bin\Debug\lua\playlist [0242cce8] main stream debug: no stream_filter modules matched [02320230] main stream_directory debug: looking for stream_directory module matching "any": 1 candidates [02320230] main stream_directory debug: no stream_directory modules matched [0242aa48] main input source debug: attachment of directory-extractor failed for file:///C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4 [0242cce8] main stream debug: looking for stream_filter module matching "record": 24 candidates [0242cce8] main stream debug: using stream_filter module "record" [0242aa48] main input source debug: creating demux: access='file' demux='any' location='/C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4' file='C:\pammmedia\1\All Summer In A Day Pt 2 - YouTube.mp4' [02426a48] main demux debug: looking for demux module matching "mp4": 55 candidates [0242cce8] mp4 stream warning: unknown box type Xtra (incompletely loaded) [0242cce8] mp4 stream debug: dumping root Box "root" [0242cce8] mp4 stream debug: | + ftyp size 28 offset 0 [0242cce8] mp4 stream debug: | + moov size 195616 offset 28 [0242cce8] mp4 stream debug: | | + mvhd size 108 offset 36 [0242cce8] mp4 stream debug: | | + iods size 21 offset 144 [0242cce8] mp4 stream debug: | | + trak size 107541 offset 165 [0242cce8] mp4 stream debug: | | | + tkhd size 92 offset 173 [0242cce8] mp4 stream debug: | | | + mdia size 107441 offset 265 [0242cce8] mp4 stream debug: | | | | + mdhd size 32 offset 273 [0242cce8] mp4 stream debug: | | | | + hdlr size 66 offset 305 [0242cce8] mp4 stream debug: | | | | + minf size 107335 offset 371 [0242cce8] mp4 stream debug: | | | | | + smhd size 16 offset 379 [0242cce8] mp4 stream debug: | | | | | + dinf size 36 offset 395 [0242cce8] mp4 stream debug: | | | | | | + dref size 28 offset 403 [0242cce8] mp4 stream debug: | | | | | | | + url size 12 offset 419 [0242cce8] mp4 stream debug: | | | | | + stbl size 107275 offset 431 [0242cce8] mp4 stream debug: | | | | | | + stsd size 91 offset 439 [0242cce8] mp4 stream debug: | | | | | | | + mp4a size 75 offset 455 [0242cce8] mp4 stream debug: | | | | | | | | + esds size 39 offset 491 [0242cce8] mp4 stream debug: | | | | | | + stts size 24 offset 530 [0242cce8] mp4 stream debug: | | | | | | + stsc size 40 offset 554 [0242cce8] mp4 stream debug: | | | | | | + stsz size 102440 offset 594 [0242cce8] mp4 stream debug: | | | | | | + stco size 4672 offset 103034 [0242cce8] mp4 stream debug: | | + trak size 87019 offset 107706 [0242cce8] mp4 stream debug: | | | + tkhd size 92 offset 107714 [0242cce8] mp4 stream debug: | | | + mdia size 86919 offset 107806 [0242cce8] mp4 stream debug: | | | | + mdhd size 32 offset 107814 [0242cce8] mp4 stream debug: | | | | + hdlr size 66 offset 107846 [0242cce8] mp4 stream debug: | | | | + minf size 86813 offset 107912 [0242cce8] mp4 stream debug: | | | | | + vmhd size 20 offset 107920 [0242cce8] mp4 stream debug: | | | | | + dinf size 36 offset 107940 [0242cce8] mp4 stream debug: | | | | | | + dref size 28 offset 107948 [0242cce8] mp4 stream debug: | | | | | | | + url size 12 offset 107964 [0242cce8] mp4 stream debug: | | | | | + stbl size 86749 offset 107976 [0242cce8] mp4 stream debug: | | | | | | + stsd size 161 offset 107984 [0242cce8] mp4 stream debug: | | | | | | | + avc1 size 145 offset 108000 [0242cce8] mp4 stream debug: | | | | | | | | + avcC size 39 offset 108086 [0242cce8] mp4 stream debug: | | | | | | | | + btrt size 20 offset 108125 [0242cce8] mp4 stream debug: | | | | | | + stts size 24 offset 108145 [0242cce8] mp4 stream debug: | | | | | | + stss size 1908 offset 108169 [0242cce8] mp4 stream debug: | | | | | | + stsc size 8680 offset 110077 [0242cce8] mp4 stream debug: | | | | | | + stsz size 71296 offset 118757 [0242cce8] mp4 stream debug: | | | | | | + stco size 4672 offset 190053 [0242cce8] mp4 stream debug: | | + udta size 919 offset 194725 [0242cce8] mp4 stream debug: | | | + meta size 748 offset 194733 [0242cce8] mp4 stream debug: | | | | + hdlr size 33 offset 194745 [0242cce8] mp4 stream debug: | | | | + ilst size 703 offset 194778 [0242cce8] mp4 stream debug: | | | | | + gsst size 25 offset 194786 [0242cce8] mp4 stream debug: | | | | | | + data size 17 offset 194794 [0242cce8] mp4 stream debug: | | | | | + gstd size 30 offset 194811 [0242cce8] mp4 stream debug: | | | | | | + data size 22 offset 194819 [0242cce8] mp4 stream debug: | | | | | + gssd size 56 offset 194841 [0242cce8] mp4 stream debug: | | | | | | + data size 48 offset 194849 [0242cce8] mp4 stream debug: | | | | | + gspu size 152 offset 194897 [0242cce8] mp4 stream debug: | | | | | | + data size 144 offset 194905 [0242cce8] mp4 stream debug: | | | | | + gspm size 152 offset 195049 [0242cce8] mp4 stream debug: | | | | | | + data size 144 offset 195057 [0242cce8] mp4 stream debug: | | | | | + gshh size 280 offset 195201 [0242cce8] mp4 stream debug: | | | | | | + data size 272 offset 195209 [0242cce8] mp4 stream debug: | | | + Xtra size 163 offset 195481 (????) [0242cce8] mp4 stream debug: | + mdat size 39840693 offset 195644 [02426a48] mp4 demux debug: unrecognized major media specification (mp42). [02426a48] mp4 demux debug: found 2 tracks [02426a48] mp4 demux debug: track[Id 0x1] read 1164 chunk [02426a48] mp4 demux warning: STTS table of 1 entries [02426a48] mp4 demux debug: track[Id 0x1] read 25605 samples length:594s [02442a68] main input debug: selecting program id=0 [02426a48] mp4 demux debug: adding track[Id 0x1] audio (enable) language undef [02426a48] mp4 demux debug: track[Id 0x2] read 1164 chunk [02426a48] mp4 demux warning: STTS table of 1 entries [02426a48] mp4 demux debug: track[Id 0x2] read 17819 samples length:594s [02426a48] mp4 demux debug: adding track[Id 0x2] video (enable) language undef [02426a48] main demux debug: using demux module "mp4" [02442a68] main input debug: looking for a subtitle file in C:\pammmedia\1\ [02482370] main decoder debug: looking for audio decoder module matching "any": 23 candidates [02482370] main decoder debug: using audio decoder module "faad" [02467c90] main decoder debug: looking for video decoder module matching "any": 17 candidates [02467c90] avcodec decoder debug: using ffmpeg Lavc58.6.103 [02467c90] avcodec decoder debug: CPU flags: 0x000853db [02467c90] avcodec decoder debug: allowing 6 thread(s) for decoding [02467c90] avcodec decoder debug: codec (h264) started [02467c90] avcodec decoder debug: using frame thread mode with 6 threads [02467c90] main decoder debug: using video decoder module "avcodec" [0059f9a0] main demux meta debug: looking for meta reader module matching "any": 2 candidates [0059f9a0] main demux meta debug: using meta reader module "taglib" [02426a48] main demux debug: removing module "taglib" [02442a68] main input debug: `file:///C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4' successfully opened [02426a48] mp4 demux debug: track[Id 0x2] using Sync Sample Box (stss) [02426a48] mp4 demux debug: stss gives 0 --> 0 (sample number) [02442a68] main input debug: Buffering 0% [02442a68] main input debug: Buffering 83% [02442a68] main input debug: Stream buffering done (500 ms in 30 ms) [02482370] faad decoder warning: decoded zero sample [02467c90] avcodec decoder debug: available hardware decoder output format 119 (cuda) [02437860] main generic debug: reusing audio output [02467c90] avcodec decoder debug: available hardware decoder output format 53 (dxva2_vld) [0244bb90] main generic debug: looking for aout stream module matching "any": 2 candidates [02467c90] avcodec decoder debug: available hardware decoder output format 118 (d3d11va_vld) [02467c90] avcodec decoder debug: available hardware decoder output format 174 (d3d11) [0244bb90] wasapi generic debug: modified format [02467c90] avcodec decoder debug: available software decoder output format 0 (yuv420p) [02467c90] avcodec decoder debug: trying format d3d11va_vld [0458aec0] main spu text debug: looking for text renderer module matching "any": 3 candidates [0458aec0] freetype spu text warning: DirectWrite initialization failed. Falling back to GDI/Uniscribe [0458aec0] main spu text debug: using text renderer module "freetype" [0244bb90] wasapi generic debug: buffer size : 96000 frames [045a91b8] main scale debug: looking for video converter module matching "any": 24 candidates [0244bb90] wasapi generic debug: maximum latency: 10666600 ns [045a91b8] swscale scale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality) [0244bb90] wasapi generic debug: default period : 10000000 ns [045a91b8] main scale debug: using video converter module "swscale" [0244bb90] wasapi generic debug: minimum period : 3000000 ns [045cc2b8] main scale debug: looking for video converter module matching "any": 24 candidates [0244bb90] main generic debug: using aout stream module "wasapi" [045cc2b8] yuvp scale debug: YUVP to YUVA converter [0243d908] main audio output debug: output 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes [045cc2b8] main scale debug: using video converter module "yuvp" [023f7668] main volume debug: looking for audio volume module matching "any": 2 candidates [0458a2e0] main video output debug: Deinterlacing available [023f7668] main volume debug: using audio volume module "float_mixer" [0458a2e0] main video output debug: deinterlace -1, mode auto, is_needed 0 [0243d908] main audio output debug: input 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes [045cc540] main audio filter debug: looking for audio filter module matching "scaletempo": 16 candidates [023f7d48] main window debug: looking for vout window module matching "embed-hwnd,any": 3 candidates [045cc540] scaletempo audio filter debug: format: 44100 rate, 2 nch, 4 bps, fl32 [023f7d48] main window debug: using vout window module "drawable" [045cc540] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 search [0059fac0] main inhibit debug: looking for inhibit module matching "any": 1 candidates [045cc540] scaletempo audio filter debug: 1.000 scale, 1323.000 stride_in, 1323 stride_out, 1059 standing, 264 overlap, 617 search, 2204 queue, fl32 mode [045cc540] main audio filter debug: using audio filter module "scaletempo" [0243d908] main audio output debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo [0059fac0] main inhibit debug: using inhibit module "inhibit" [0243d908] main audio output debug: conversion pipeline complete [0458a2e0] main video output debug: Opening vout display wrapper [0243d908] main audio output debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo [0242ec50] main vout display debug: looking for vout display module matching "any": 12 candidates [0243d908] main audio output debug: conversion pipeline complete [045d3488] main audio resampler debug: looking for audio resampler module matching "any": 3 candidates [0242ec50] direct3d9 vout display debug: Using Direct3D9 Extended API! [045d3488] main audio resampler debug: using audio resampler module "samplerate" [0242ec50] direct3d9 vout display debug: creating Vout EventThread [0242ec50] direct3d9 vout display debug: Win32VoutCreateWindow [0242ec50] main vout display debug: VoutDisplayEvent 'resize' 480x360 [0242ec50] direct3d9 vout display debug: inclinometer not found. (hr=0x80070490)
Window creation:

m_window_handle = ::CreateWindow(TEXT("static"),
TEXT(" "),
WS_POPUP | WS_VISIBLE,
40,40, 640, 480,
// screensize.left, // Original measurements for full screen.
// screensize.top,
// screensize.right - screensize.left,
// screensize.bottom - screensize.top,
desktop, NULL, GetModuleHandle(NULL), 0);

libvlc_new called with following arguments on the most recent attempt:

const char *cmd_line_parms[] = {
"C:\\Development\\arduino\\Pammm\\bin\\Debug",
"--extraintf=logger",
"--verbose=2",
"--logfile=C:\\temp\\vlc.log",
"--no-directx-overlay",
// "--logmode=text"
// "--file-logging"
};

Other information that might be useful: development on Code::Blocks 17.12 with MinGW 5.1.0, 32-bit target, Windows 7 Professional (Microsoft's last halfway-decent OS), libVLC version 3.0.4. The files play fine on VLC of the same version. I would appreciate any suggestions, as I'm losing my hair.

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

Re: Can't get anything but a black screen

Postby mfkl » 12 Dec 2018 06:03

Please share full code in a git repo
https://mfkl.github.io

dcouchotvore
New Cone
New Cone
Posts: 7
Joined: 04 Aug 2008 17:20

Re: Can't get anything but a black screen

Postby dcouchotvore » 12 Dec 2018 15:01

I haven't used git in more than 5 years. Give me a minute. :)

dcouchotvore
New Cone
New Cone
Posts: 7
Joined: 04 Aug 2008 17:20

Re: Can't get anything but a black screen

Postby dcouchotvore » 12 Dec 2018 16:42

Now I have to Google "why did git delete my source files?" Fortunately, I had already committed them so I didn't have to commit seppuku as well. Also safely backed up. Now, trying to push, it's complaining about SLL certificates. I would really prefer to debug my own code and not git, or libcurl, or SSL certificates, or figure out why the link to download the latest version of git times out. Would you be satisfied just downloading an archive from http://www.duanevore.com/docs/pammm.7z? Thanks.

dcouchotvore
New Cone
New Cone
Posts: 7
Joined: 04 Aug 2008 17:20

Re: Can't get anything but a black screen

Postby dcouchotvore » 13 Dec 2018 15:09

Curiously, I put the sample code from https://wiki.videolan.org/LibVLC_Tutorial/ at the top of main(), figuring it HAD to work. It doesn't get as far as the code I wrote, which baffles me even more. ????? With "--verbose=2" as the only parameter:

Code: Select all

[00781290] main libvlc debug: VLC media player - 3.0.4 Vetinari [00781290] main libvlc debug: Copyright © 1996-2018 the VideoLAN team [00781290] main libvlc debug: revision 3.0.4-0-gf615db6332 [00781290] main libvlc debug: configured with ../extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--en able-flac' '--enable-theora' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-schroedinger' '--ena ble-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.videola n.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' [00781290] main libvlc debug: using multimedia timers as clock source [00781290] main libvlc debug: min period: 1 ms, max period: 1000000 ms [00781290] main libvlc debug: searching plug-in modules [00781290] main libvlc debug: loading plugins cache file c:\Development\Pammm\CM3\bin\Debug\plugins\plugins.dat [00781290] main libvlc warning: cannot read c:\Development\Pammm\CM3\bin\Debug\plugins\plugins.dat: No such file or directory [00781290] main libvlc debug: recursively browsing `c:\Development\Pammm\CM3\bin\Debug\plugins' [00781290] main libvlc debug: plug-ins loaded: 490 modules [007813c8] main logger debug: looking for logger module matching "any": 2 candidates [007813c8] main logger debug: using logger module "console" [00781290] main libvlc debug: translation test: code is "C" [00744878] main keystore debug: looking for keystore module matching "memory": 3 candidates [00744878] main keystore debug: using keystore module "memory" [00781290] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU [00781b38] main generic debug: creating audio output [00781648] main audio output debug: looking for audio output module matching "any": 6 candidates [00781648] mmdevice audio output debug: using default device [00781648] mmdevice audio output debug: version 2 session control unavailable [00781648] mmdevice audio output debug: display name changed: VLC media player (LibVLC 3.0.4) [00781648] mmdevice audio output debug: volume from -95.250000 dB to +0.000000 dB with 0.031250 dB increments [00781648] main audio output debug: using audio output module "mmdevice" [00781b38] main generic debug: keeping audio output [02e86778] main input debug: Creating an input for 'All Summer In A Day Pt 2 - YouTube.mp4' [02e86778] main input debug: using timeshift granularity of 50 MiB [02e86778] main input debug: using timeshift path: C:\Users\Duane\AppData\Local\Temp [02e86778] main input debug: `file:///C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4' gives access `file' demux `any' path `/C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4' [02e88f78] main input source debug: creating demux: access='file' demux='any' location='/C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4' file='C:\pammmedia\1\All Summer In A Day Pt 2 - YouTube.mp4' [02e6e578] main demux debug: looking for access_demux module matching "file": 15 candidates [02e6e578] main demux debug: no access_demux modules matched [02e70658] main stream debug: creating access: file:///C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4 [02e70658] main stream debug: (path: C:\pammmedia\1\All Summer In A Day Pt 2 - YouTube.mp4) [02e70658] main stream debug: looking for access module matching "file": 26 candidates [02e70658] main stream debug: using access module "filesystem" [02e70738] main stream debug: looking for stream_filter module matching "prefetch,cache_read": 24 candidates [02e70738] cache_read stream debug: Using stream method for AStream* [02e70738] cache_read stream debug: starting pre-buffering [02e70738] cache_read stream debug: pre-buffering done 0 bytes in 0s - 0 KiB/s [02e70738] cache_read stream error: cannot pre fill buffer [02e70738] main stream debug: no stream_filter modules matched [02e70578] main stream warning: cannot insert stream filter prefetch,cache_read [02e70738] main stream debug: looking for stream_filter module matching "any": 24 candidates [02e70738] playlist stream debug: not enough data [02e70738] lua stream debug: Trying Lua scripts in C:\Users\Duane\AppData\Roaming\vlc\lua\playlist [02e70738] lua stream debug: Trying Lua scripts in c:\Development\Pammm\CM3\bin\Debug\lua\playlist [02e70738] main stream debug: no stream_filter modules matched [02e72578] main stream_directory debug: looking for stream_directory module matching "any": 1 candidates [02e72578] main stream_directory debug: no stream_directory modules matched [02e88f78] main input source debug: attachment of directory-extractor failed for file:///C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4 [02e70738] main stream debug: looking for stream_filter module matching "record": 24 candidates [02e70738] main stream debug: using stream_filter module "record" [02e88f78] main input source debug: creating demux: access='file' demux='any' location='/C:/pammmedia/1/All%20Summer%20In%20A%20Day%20Pt%202%20-%20YouTube.mp4' file='C:\pammmedia\1\All Summer In A Day Pt 2 - YouTube.mp4' [02e6e578] main demux debug: looking for demux module matching "mp4": 55 candidates [02e6e578] es demux debug: cannot peek [02e6e578] es demux debug: cannot peek [02e6e578] es demux debug: cannot peek [02e6e578] es demux debug: cannot peek [02e6e578] es demux debug: cannot peek [02e6e578] mod demux debug: MOD validation failed (ext=mp4) [02e6e578] ps demux debug: cannot peek [02e6e578] mjpeg demux warning: no more data [02e6e578] mjpeg demux error: cannot peek [02e6e578] mpgv demux debug: cannot peek [02e6e578] avcodec demux warning: cannot peek [02e6e578] vobsub demux debug: could not read vobsub IDX file [02e6e578] ps demux debug: cannot peek [02e6e578] main demux debug: no demux modules matched [02e70738] main stream debug: removing module "record" [02e70658] main stream debug: removing module "filesystem" [00781648] main audio output debug: removing module "mmdevice" [00781290] main libvlc debug: exiting [00781290] main libvlc debug: no exit handler [00781290] main libvlc debug: removing all interfaces [00744878] main keystore debug: removing module "memory"
I keep checking my DLL interface for any screw-up, and can't find one. I've been loading DLL's by brute force almost since LoadLibrary() and GetProcAddress() came into existence. I find it a whole lot easier than messing with lib files when there are only a few different calls. The actual code:

Code: Select all

const char *const argvx[] = {"--verbose=2" }; libvlc_connect_library(); RECT screensize; HWND desktop = ::GetDesktopWindow(); GetWindowRect(desktop, &screensize); HWND m_window_handle = ::CreateWindow(TEXT("static"), TEXT(" "), WS_POPUP | WS_VISIBLE, 40,40, 640, 480, // screensize.left, //@@@@ TODO: restore full-screen window // screensize.top, // screensize.right - screensize.left, // screensize.bottom - screensize.top, desktop, NULL, GetModuleHandle(NULL), 0); /* m_current_level_it = m_common_levels.begin(); m_current_level = *m_current_level_it; */ libvlc_instance_t * inst; libvlc_media_player_t *mp; libvlc_media_t *m; /* Load the VLC engine */ inst = libvlc_new (1, (const char **)argvx); /* Create a new item */ //m = libvlc_media_new_location (inst, "http://mycool.movie.com/test.mov"); m = libvlc_media_new_path (inst, "C:\\pammmedia\\1\\All Summer In A Day Pt 2 - YouTube.mp4"); /* Create a media player playing environement */ mp = libvlc_media_player_new_from_media (m); /* No need to keep the media now */ libvlc_media_release (m); #if 0 /* This is a non working code that show how to hooks into a window, * if we have a window around */ libvlc_media_player_set_xwindow (mp, xid); #endif /* or on windows */ libvlc_media_player_set_hwnd (mp, m_window_handle); #if 0 /* or on mac os */ libvlc_media_player_set_nsobject (mp, view); #endif /* play the media_player */ libvlc_media_player_play (mp); usleep (10); /* Let it play a bit */ /* Stop playing */ libvlc_media_player_stop (mp); /* Free the media_player */ libvlc_media_player_release (mp); libvlc_release (inst); printf("Done\n"); exit(1); /* } */

dcouchotvore
New Cone
New Cone
Posts: 7
Joined: 04 Aug 2008 17:20

Re: Can't get anything but a black screen

Postby dcouchotvore » 14 Dec 2018 21:53

This will probably be the last piece of information I'll provide. I discovered the .lib files in the sdk, and so created a new project with just the sample code mentioned above, linking against those libraries. The same behavior as above except aborting immediately after "main audio output debug: removing module "mmdevice". It doesn't matter whether I link against vlc.lib or libvlc.lib. I don't know what the difference is. That pretty much eliminates my DLL interface as being at fault. in fact, it eliminates all my code, and when left with no code to debug, I don't know what to do. Is there any problem running 32-bit dll's on a 64-bit system? That's the only difference between this development environment and vlc itself, which runs perfectly. I had thought libvlc would be a quick way to incorporate media playback, but it's not working out that way. A shame, because VLC Player is a total work of art. I'm looking at alternatives, but I'll check in on this thread should any insights turn up. Thanks.

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

Re: Can't get anything but a black screen

Postby Rémi Denis-Courmont » 14 Dec 2018 22:20

Compare with the log playing the same input in VLC proper.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

dcouchotvore
New Cone
New Cone
Posts: 7
Joined: 04 Aug 2008 17:20

Re: Can't get anything but a black screen

Postby dcouchotvore » 16 Dec 2018 01:17

I tried. The process was complicated by the fact that I couldn't get VLC to play a file from the command line. Every time I tried, it told me the file name was an invalid parameter. So I had to load the file once VLC started, which threw the logs pretty far out of sync. The version of diff I have doesn't seem to have a Resynchronize option. The critical departure seems to be that VLC pre-buffers 1024 bytes and the sample code pre-buffers 0. I don't know enough about the internal workings to know what that means other than the obvious suggestion from the term. Here's the diff output, VLC on the left.

Code: Select all

 main debug: VLC media player - 3.0.4 Vetinari main debug: VLC media player - 3.0.4 Vetinari main debug: Copyright © 1996-2018 the VideoLAN team | main debug: Copyright ┬⌐ 1996-2018 the VideoLAN team main debug: revision 3.0.4-0-gf615db6332 main debug: revision 3.0.4-0-gf615db6332 main debug: configured with ../extras/package/win32/../../../ main debug: configured with ../extras/package/win32/../../../ main debug: using multimedia timers as clock source main debug: using multimedia timers as clock source main debug: min period: 1 ms, max period: 1000000 ms main debug: min period: 1 ms, max period: 1000000 ms main debug: searching plug-in modules main debug: searching plug-in modules main debug: loading plugins cache file c:\Program Files (x86) | main debug: loading plugins cache file C:\Development\Pammm\C main debug: recursively browsing `c:\Program Files (x86)\Vide | main warning: cannot read C:\Development\Pammm\CM3\Pammm2\bin > main debug: recursively browsing `C:\Development\Pammm\CM3\Pa main debug: plug-ins loaded: 490 modules main debug: plug-ins loaded: 490 modules main debug: opening config file (C:\Users\Duane\AppData\Roami < main debug: looking for logger module matching "any": 2 candi main debug: looking for logger module matching "any": 2 candi file debug: opening logfile `C:\temp\vlc.log' | main debug: using logger module "console" main debug: using logger module "file" < main debug: translation test: code is "C" main debug: translation test: code is "C" main debug: looking for keystore module matching "memory": 3 | main keystore debug: looking for keystore module matching "me main debug: using keystore module "memory" | main keystore debug: using keystore module "memory" main debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSS | main debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSS main debug: Creating an input for 'Media Library' | main generic debug: creating audio output main debug: Input is a meta file: disabling unneeded options | main audio output debug: looking for audio output module matc main debug: using timeshift granularity of 50 MiB | mmdevice audio output debug: using default device main debug: using timeshift path: C:\Users\Duane\AppData\Loca | mmdevice audio output debug: version 2 session control unavai main debug: `file/directory:///C:/Users/Duane/AppData/Roaming | mmdevice audio output debug: display name changed: VLC media main debug: creating demux: access='file' demux='directory' l | mmdevice audio output debug: volume from -95.250000 dB to +0. main debug: looking for access_demux module matching "file": | main audio output debug: using audio output module "mmdevice" main debug: no access_demux modules matched | main generic debug: keeping audio output main debug: creating access: file:///C:/Users/Duane/AppData/R | main input debug: Creating an input for 'ASD.mp4' main debug: (path: C:\Users\Duane\AppData\Roaming\vlc\ml.xsp | main input debug: using timeshift granularity of 50 MiB main debug: looking for access module matching "file": 26 can | main input debug: using timeshift path: C:\Users\Duane\AppDat main debug: using access module "filesystem" | main input debug: `file:///C:/pammmedia/1/ASD.mp4' gives acce main debug: looking for stream_filter module matching "prefet | main input source debug: creating demux: access='file' demux= cache_read debug: Using stream method for AStream* | main demux debug: looking for access_demux module matching "f cache_read debug: starting pre-buffering | main demux debug: no access_demux modules matched cache_read debug: received first data after 0 ms | main stream debug: creating access: file:///C:/pammmedia/1/AS cache_read debug: pre-buffering done 304 bytes in 0s - 296875 | main stream debug: (path: C:\pammmedia\1\ASD.mp4) main debug: using stream_filter module "cache_read" | main stream debug: looking for access module matching "file": main debug: looking for stream_filter module matching "any": | main stream debug: using access module "filesystem" playlist debug: using XSPF playlist reader | main stream debug: looking for stream_filter module matching main debug: using stream_filter module "playlist" | cache_read stream debug: Using stream method for AStream* main debug: stream filter added to 00e8a4f8 | cache_read stream debug: starting pre-buffering main debug: looking for stream_filter module matching "any": | cache_read stream debug: pre-buffering done 0 bytes in 0s - 0 main debug: no stream_filter modules matched | cache_read stream error: cannot pre fill buffer main debug: looking for stream_directory module matching "any | main stream debug: no stream_filter modules matched main debug: no stream_directory modules matched | main stream warning: cannot insert stream filter prefetch,cac main debug: attachment of directory-extractor failed for file | main stream debug: looking for stream_filter module matching main debug: looking for stream_filter module matching "record | playlist stream debug: not enough data main debug: using stream_filter module "record" | lua stream debug: Trying Lua scripts in C:\Users\Duane\AppDat main debug: creating demux: access='file' demux='directory' l | lua stream debug: Trying Lua scripts in C:\Development\Pammm\ main debug: looking for demux module matching "directory": 55 | main stream debug: no stream_filter modules matched main debug: using demux module "directory" | main stream_directory debug: looking for stream_directory mod main debug: looking for meta reader module matching "any": 2 | main stream_directory debug: no stream_directory modules matc lua debug: Trying Lua scripts in C:\Users\Duane\AppData\Roami | main input source debug: attachment of directory-extractor fa lua debug: Trying Lua scripts in c:\Program Files (x86)\Video | main stream debug: looking for stream_filter module matching lua debug: Trying Lua playlist script c:\Program Files (x86)\ | main stream debug: using stream_filter module "record" main debug: no meta reader modules matched | main input source debug: creating demux: access='file' demux main debug: `file/directory:///C:/Users/Duane/AppData/Roaming | main demux debug: looking for demux module matching "mp4": 55 main debug: looking for xml reader module matching "any": 1 c | es demux debug: cannot peek main debug: using xml reader module "xml" | es demux debug: cannot peek main debug: EOF reached | es demux debug: cannot peek main debug: removing module "directory" | es demux debug: cannot peek main debug: removing module "record" | es demux debug: cannot peek main debug: removing module "playlist" | mod demux debug: MOD validation failed (ext=mp4) main debug: removing module "cache_read" | ps demux debug: cannot peek main debug: removing module "filesystem" | mjpeg demux warning: no more data main debug: creating audio output | mjpeg demux error: cannot peek main debug: looking for audio output module matching "any": 6 | mpgv demux debug: cannot peek mmdevice debug: using default device | avcodec demux warning: cannot peek mmdevice debug: display name changed: VLC media player | vobsub demux debug: could not read vobsub IDX file mmdevice debug: version 2 session control unavailable | ps demux debug: cannot peek mmdevice debug: volume from -95.250000 dB to +0.000000 dB wit | main demux debug: no demux modules matched main debug: using audio output module "mmdevice" | main stream debug: removing module "record" main debug: keeping audio output | main stream debug: removing module "filesystem" main debug: looking for interface module matching "hotkeys,no | main audio output debug: removing module "mmdevice" main debug: using interface module "hotkeys" < main debug: looking for interface module matching "globalhotk < main debug: using interface module "win32" < main: Running vlc with the default interface. Use 'cvlc' to u < main debug: looking for interface module matching "any": 16 c < main debug: looking for extension module matching "any": 1 ca < lua debug: Opening Lua Extension module < lua debug: Trying Lua scripts in C:\Users\Duane\AppData\Roami < lua debug: Trying Lua scripts in c:\Program Files (x86)\Video < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Scanning Lua script c:\Program Files (x86)\VideoLA < lua debug: Script c:\Program Files (x86)\VideoLAN\VLC\lua\ext < main debug: using extension module "lua" < main debug: using interface module "qt" < main: playlist is empty < main debug: nothing to play < main debug: processing request item: ASD.mp4, node: Playlist, < 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: Creating an input for preparsing 'ASD.mp4' < main debug: resyncing on ASD.mp4 < main debug: ASD.mp4 is at 0 < main debug: creating new input thread < main debug: Creating an input for 'ASD.mp4' < main debug: looking for meta fetcher module matching "any": 1 < main debug: requesting art for new input thread < qt debug: IM: Setting an input < main debug: using timeshift granularity of 50 MiB < lua debug: Trying Lua scripts in C:\Users\Duane\AppData\Roami < main debug: using timeshift path: C:\Users\Duane\AppData\Loca < lua debug: Trying Lua scripts in c:\Program Files (x86)\Video < main debug: `file:///C:/pammmedia/1/ASD.mp4' gives access `fi < main debug: creating demux: access='file' demux='any' locatio < main debug: no meta fetcher modules matched < main debug: looking for access_demux module matching "file": < main debug: looking for art finder module matching "any": 2 c < main debug: no access_demux modules matched < main debug: creating access: file:///C:/pammmedia/1/ASD.mp4 < main debug: (path: C:\pammmedia\1\ASD.mp4) < main debug: looking for access module matching "file": 26 can < main debug: using access module "filesystem" < main debug: looking for stream_filter module matching "prefet < cache_read debug: Using stream method for AStream* < cache_read debug: starting pre-buffering < cache_read debug: received first data after 0 ms < cache_read debug: pre-buffering done 1024 bytes in 0s - 10000 < main debug: using stream_filter module "cache_read" < main debug: looking for stream_filter module matching "any": < lua debug: Trying Lua scripts in C:\Users\Duane\AppData\Roami < lua debug: Trying Lua scripts in c:\Program Files (x86)\Video < lua debug: Trying Lua scripts in C:\Users\Duane\AppData\Roami < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua scripts in c:\Program Files (x86)\Video < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: skipping script (unmatched scope) c:\Program Files < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: skipping script (unmatched scope) c:\Program Files < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: skipping script (unmatched scope) c:\Program Files < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: skipping script (unmatched scope) c:\Program Files < main debug: no art finder modules matched < main debug: looking for meta fetcher module matching "any": 1 < lua debug: Trying Lua scripts in C:\Users\Duane\AppData\Roami < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua scripts in c:\Program Files (x86)\Video < main debug: no meta fetcher modules matched < main debug: looking for art finder module matching "any": 2 c < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua scripts in C:\Users\Duane\AppData\Roami < lua debug: Trying Lua scripts in c:\Program Files (x86)\Video < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: skipping script (unmatched scope) c:\Program Files < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: skipping script (unmatched scope) c:\Program Files < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: skipping script (unmatched scope) c:\Program Files < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: skipping script (unmatched scope) c:\Program Files < main debug: no art finder modules matched < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < lua debug: Trying Lua playlist script c:\Program Files (x86)\ < main debug: no stream_filter modules matched < main debug: looking for stream_directory module matching "any < main debug: no stream_directory modules matched < main debug: attachment of directory-extractor failed for file < main debug: looking for stream_filter module matching "record < main debug: using stream_filter module "record" < main debug: creating demux: access='file' demux='any' locatio < main debug: looking for demux module matching "mp4": 55 candi < mp4 warning: unknown box type Xtra (incompletely loaded) < mp4 debug: dumping root Box "root" < mp4 debug: | + ftyp size 28 offset 0 < mp4 debug: | + moov size 195616 offset 28 < mp4 debug: | | + mvhd size 108 offset 36 < mp4 debug: | | + iods size 21 offset 144 < mp4 debug: | | + trak size 107541 offset 165 < mp4 debug: | | | + tkhd size 92 offset 173 < mp4 debug: | | | + mdia size 107441 offset 265 < mp4 debug: | | | | + mdhd size 32 offset 273 < mp4 debug: | | | | + hdlr size 66 offset 305 < mp4 debug: | | | | + minf size 107335 offset 371 < mp4 debug: | | | | | + smhd size 16 offset 379 < mp4 debug: | | | | | + dinf size 36 offset 395 < mp4 debug: | | | | | | + dref size 28 offset 403 < mp4 debug: | | | | | | | + url size 12 offset < mp4 debug: | | | | | + stbl size 107275 offset 431 < mp4 debug: | | | | | | + stsd size 91 offset 439 < mp4 debug: | | | | | | | + mp4a size 75 offset < mp4 debug: | | | | | | | | + esds size 39 off < mp4 debug: | | | | | | + stts size 24 offset 530 < mp4 debug: | | | | | | + stsc size 40 offset 554 < mp4 debug: | | | | | | + stsz size 102440 offset < mp4 debug: | | | | | | + stco size 4672 offset 10 < mp4 debug: | | + trak size 87019 offset 107706 < mp4 debug: | | | + tkhd size 92 offset 107714 < mp4 debug: | | | + mdia size 86919 offset 107806 < mp4 debug: | | | | + mdhd size 32 offset 107814 < mp4 debug: | | | | + hdlr size 66 offset 107846 < mp4 debug: | | | | + minf size 86813 offset 107912 < mp4 debug: | | | | | + vmhd size 20 offset 107920 < mp4 debug: | | | | | + dinf size 36 offset 107940 < mp4 debug: | | | | | | + dref size 28 offset 1079 < mp4 debug: | | | | | | | + url size 12 offset < mp4 debug: | | | | | + stbl size 86749 offset 10797 < mp4 debug: | | | | | | + stsd size 161 offset 107 < mp4 debug: | | | | | | | + avc1 size 145 offset < mp4 debug: | | | | | | | | + avcC size 39 off < mp4 debug: | | | | | | | | + btrt size 20 off < mp4 debug: | | | | | | + stts size 24 offset 1081 < mp4 debug: | | | | | | + stss size 1908 offset 10 < mp4 debug: | | | | | | + stsc size 8680 offset 11 < mp4 debug: | | | | | | + stsz size 71296 offset 1 < mp4 debug: | | | | | | + stco size 4672 offset 19 < mp4 debug: | | + udta size 919 offset 194725 < mp4 debug: | | | + meta size 748 offset 194733 < mp4 debug: | | | | + hdlr size 33 offset 194745 < mp4 debug: | | | | + ilst size 703 offset 194778 < mp4 debug: | | | | | + gsst size 25 offset 194786 < mp4 debug: | | | | | | + data size 17 offset 1947 < mp4 debug: | | | | | + gstd size 30 offset 194811 < mp4 debug: | | | | | | + data size 22 offset 1948 < mp4 debug: | | | | | + gssd size 56 offset 194841 < mp4 debug: | | | | | | + data size 48 offset 1948 < mp4 debug: | | | | | + gspu size 152 offset 194897 < mp4 debug: | | | | | | + data size 144 offset 194 < mp4 debug: | | | | | + gspm size 152 offset 195049 < mp4 debug: | | | | | | + data size 144 offset 195 < mp4 debug: | | | | | + gshh size 280 offset 195201 < mp4 debug: | | | | | | + data size 272 offset 195 < mp4 debug: | | | + Xtra size 163 offset 195481 (????) < mp4 debug: | + mdat size 39840693 offset 195644 < mp4 debug: unrecognized major media specification (mp42). < mp4 debug: found 2 tracks < mp4 debug: track[Id 0x1] read 1164 chunk < mp4 warning: STTS table of 1 entries < mp4 debug: track[Id 0x1] read 25605 samples length:594s < main debug: selecting program id=0 < mp4 debug: adding track[Id 0x1] audio (enable) language undef < mp4 debug: track[Id 0x2] read 1164 chunk < mp4 warning: STTS table of 1 entries < mp4 debug: track[Id 0x2] read 17819 samples length:594s < mp4 debug: adding track[Id 0x2] video (enable) language undef < main debug: using demux module "mp4" < main debug: looking for a subtitle file in C:\pammmedia\1\ < main debug: looking for audio decoder module matching "any": < main debug: using audio decoder module "faad" < main debug: looking for video decoder module matching "any": < avcodec debug: using ffmpeg Lavc58.6.103 < avcodec debug: CPU flags: 0x000853db < avcodec debug: allowing 6 thread(s) for decoding < avcodec debug: codec (h264) started < avcodec debug: using frame thread mode with 6 threads < main debug: using video decoder module "avcodec" < main debug: looking for meta reader module matching "any": 2 < main debug: using meta reader module "taglib" < main debug: removing module "taglib" < main debug: `file:///C:/pammmedia/1/ASD.mp4' successfully ope < mp4 debug: track[Id 0x2] using Sync Sample Box (stss) < mp4 debug: stss gives 0 --> 0 (sample number) < main debug: Buffering 0% < faad warning: decoded zero sample < main debug: reusing audio output < main debug: looking for aout stream module matching "any": 2 < main debug: Buffering 83% < avcodec debug: available hardware decoder output format 119 ( < avcodec debug: available hardware decoder output format 53 (d < avcodec debug: available hardware decoder output format 118 ( < avcodec debug: available hardware decoder output format 174 ( < avcodec debug: available software decoder output format 0 (yu < avcodec debug: trying format d3d11va_vld < main debug: Stream buffering done (500 ms in 7 ms) < main debug: looking for text renderer module matching "any": < wasapi debug: modified format < freetype warning: DirectWrite initialization failed. Falling < main debug: using text renderer module "freetype" < main debug: looking for video converter module matching "any" < swscale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) ch < main debug: using video converter module "swscale" < main debug: looking for video converter module matching "any" < wasapi debug: buffer size : 96000 frames < wasapi debug: maximum latency: 10666600 ns < wasapi debug: default period : 10000000 ns < wasapi debug: minimum period : 3000000 ns < main debug: using aout stream module "wasapi" < main debug: output 'f32l' 48000 Hz Stereo frame=1 samples/8 b < main debug: looking for audio volume module matching "any": 2 < main debug: using audio volume module "float_mixer" < main debug: input 'f32l' 44100 Hz Stereo frame=1 samples/8 by < main debug: looking for audio filter module matching "scalete < 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 strid < main debug: using audio filter module "scaletempo" < main debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Ste < main debug: conversion pipeline complete < main debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Ste < main debug: conversion pipeline complete < main debug: looking for audio resampler module matching "any" < main debug: using audio resampler module "samplerate" < 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": < qt debug: requesting video window... < main debug: resized to 1067x663 < main debug: resized to 480x360 < main debug: resized to 485x360 < main debug: using vout window module "qt" < main debug: looking for inhibit module matching "any": 1 cand < main debug: using inhibit module "inhibit" < main debug: Opening vout display wrapper < main debug: looking for vout display module matching "any": 1 < direct3d9 debug: Using Direct3D9 Extended API! < direct3d9 debug: creating Vout EventThread < direct3d9 debug: Win32VoutCreateWindow < main debug: VoutDisplayEvent 'resize' 485x360 < qt debug: Logical video size: 480x360 < main debug: resized to 480x360 < main debug: VoutDisplayEvent 'resize' 480x360 < main debug: resized to 485x360 < main debug: VoutDisplayEvent 'resize' 485x360 < 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 3000 < direct3d9 warning: trying surface pixel format: NV12 < direct3d9 debug: selected surface pixel format is NV12 < main debug: VoutDisplayEvent 'resize' 496x398 < direct3d9 debug: Direct3D9 scene created successfully < direct3d9 debug: Direct3D9 device adapter successfully initia < main debug: using vout display module "direct3d9" < main debug: A filter to adapt decoder DX11 to display NV12 is < main debug: looking for video converter module matching "any" < main debug: using video converter module "d3d11_filters" < main debug: Filter 'd3d11_filters' (05abd280) appended to cha < main debug: original format sz 480x368, of (0,0), vsz 480x360 < main debug: removing module "freetype" < main debug: looking for text renderer module matching "any": < main debug: VoutDisplayEvent 'resize' 485x360 < freetype warning: DirectWrite initialization failed. Falling < qt debug: Logical video size: 480x360 < main debug: resized to 480x360 < main debug: VoutDisplayEvent 'resize' 480x360 < main debug: resized to 485x360 < main debug: VoutDisplayEvent 'resize' 485x360 < main debug: using text renderer module "freetype" < main debug: looking for hw decoder module matching "any": 2 c < main debug: no hw decoder modules matched < avcodec debug: trying format dxva2_vld < main debug: removing module "d3d11_filters" < main debug: Filter 05abd280 removed from chain < main debug: removing module "direct3d9" < direct3d9 debug: Direct3D9 scene released successfully < 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 "any": 1 < direct3d9 debug: Using Direct3D9 Extended API! < direct3d9 debug: creating Vout EventThread < direct3d9 debug: Win32VoutCreateWindow < main debug: VoutDisplayEvent 'resize' 485x360 < qt debug: Logical video size: 480x360 < main debug: resized to 480x360 < main debug: VoutDisplayEvent 'resize' 480x360 < main debug: resized to 485x360 < direct3d9 debug: inclinometer not found. (hr=0x80070490) < main debug: VoutDisplayEvent 'resize' 485x360 < 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 3000 < direct3d9 warning: trying surface pixel format: DXA9 < direct3d9 debug: selected surface pixel format is DXA9 < main debug: VoutDisplayEvent 'resize' 496x398 < direct3d9 debug: Direct3D9 scene created successfully < direct3d9 debug: Direct3D9 device adapter successfully initia < main debug: using vout display module "direct3d9" < main debug: original format sz 480x368, of (0,0), vsz 480x360 < qt debug: Qt: Fullscreen state changed < main debug: reusing provided vout < main debug: looking for hw decoder module matching "any": 2 c < main debug: VoutDisplayEvent 'resize' 485x360 < dxva2 debug: Using Direct3D9 Extended API! < dxva2 debug: Reusing Direct3D9 device < dxva2 debug: CreateDevice succeed < dxva2 debug: OurDirect3DCreateDeviceManager9 Success! < dxva2 debug: obtained IDirect3DDeviceManager9 < dxva2 debug: - 'MPEG-2 variable-length decoder' is supported < dxva2 debug: - 'MPEG-2 inverse discrete cosine transform' is < dxva2 debug: - 'VC-1 variable-length decoder 2 (Intel)' is su < dxva2 debug: - 'VC-1 variable-length decoder (Intel)' is supp < dxva2 debug: - 'H.264 variable-length decoder, no film grain < dxva2 debug: - 'H.264 variable-length decoder, no film grain < dxva2 debug: - 'Unknown decoder 0xa74ccae2-0xf466-0x45ae-0x86 < dxva2 debug: - 'Windows Media Video 9 IDCT' is supported < dxva2 debug: - 'VC-1 inverse discrete cosine transform' is su < dxva2 debug: - 'Unknown decoder 0x49761bec-0x4b63-0x4349-0xa5 < dxva2 debug: Trying to use 'H.264 variable-length decoder, no < dxva2 debug: NV12 is supported for output < dxva2 debug: Using decoder output 'NV12' < dxva2 debug: va_pool_SetupDecoder id 27 480x368 count: 24 < dxva2 debug: IDirectXVideoAccelerationService_CreateSurface s < dxva2 debug: we got 2 decoder configurations < dxva2 debug: configuration[0] ConfigBitstreamRaw 1 < dxva2 debug: configuration[1] ConfigBitstreamRaw 1 < dxva2 debug: IDirectXVideoDecoderService_CreateVideoDecoder s < main debug: using hw decoder module "dxva2" < avcodec: Using DXVA2 (Intel(R) HD Graphics 3000, vendor Intel < main debug: Received first picture < main debug: Decoder wait done in 570 ms < main debug: inserting 1498 zeroes < mmdevice debug: state changed: 1 < qt debug: Logical video size: 480x360 < main debug: resized to 480x360 < main debug: VoutDisplayEvent 'resize' 480x360 < main debug: resized to 485x360 < main debug: VoutDisplayEvent 'resize' 485x360 < main warning: picture is too late to be displayed (missing 92 < main warning: picture is too late to be displayed (missing 62 < main warning: picture is too late to be displayed (missing 28 < main debug: auto hiding mouse cursor < main debug: exiting < main debug: exiting < main debug: no exit handler < main debug: removing all interfaces < main debug: removing module "qt" < main debug: deactivating the playlist < main debug: incoming request - stopping current input < main debug: incoming request - stopping current input < main debug: killing decoder fourcc `mp4a' < main debug: removing module "faad" < wasapi debug: reset < mmdevice debug: state changed: 0 < main debug: removing module "samplerate" < main debug: removing module "scaletempo" < main debug: removing module "float_mixer" < main debug: keeping audio output < main debug: picture might be displayed late (missing 2 ms) < main debug: killing decoder fourcc `h264' < main debug: removing module "avcodec" < main debug: saving a free vout < main debug: reusing provided vout < main debug: removing module "mp4" < mp4 debug: freeing all memory < main debug: Program doesn't contain anymore ES < main debug: removing module "record" < main debug: removing module "cache_read" < main debug: removing module "filesystem" < main debug: dead input < qt debug: IM: Deleting the input < main debug: nothing to play < main debug: destroying useless vout < main debug: removing module "direct3d9" < direct3d9 debug: Direct3D9 scene released successfully < direct3d9 error: SetThumbNailClip failed: 0x800706f4 < direct3d9 debug: Win32 Vout EventThread terminating < direct3d9 debug: Win32VoutCloseWindow < direct3d9 debug: WinProc WM_DESTROY < 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 debug: removing module "mmdevice" < qt debug: requesting exit... < qt debug: waiting for UI thread... < qt debug: QApp exec() finished < qt debug: Video is not needed anymore < qt debug: Killing extension dialog provider < qt debug: ExtensionsDialogProvider is quitting... < main debug: removing module "lua" < main debug: removing module "win32" < main debug: removing module "hotkeys" < main debug: destroying < main debug: saving media library to file C:\Users\Duane\AppDa < main debug: looking for playlist export module matching "expo < main debug: using playlist export module "export" < main debug: removing module "export" < main debug: deleting item `Media Library' < main debug: deleting item `ASD.mp4' < main debug: deleting item `Playlist' < main debug: removing module "memory" < -- logger module stopped -- <
See if you can make any sense out of it. I have some more code to write anyway. Thanks.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Can't get anything but a black screen

Postby Jean-Baptiste Kempf » 20 Jan 2019 22:41

Are all your plugins correctly installed?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests