Page 1 of 1

Win issue with C++

Posted: 20 Jun 2019 05:51
by JackTian
Hello :
I got some issue when i use libvlc.
the version is :3.0.6
build on :Ubuntu 18 LTS_x64
1, after make finish and package done . I must use command "find . "*.dll" -type f | xargs -i strip --strip-all {} . otherwise , the application will carsh frequently.
I do not know thats why.
2, when i run the application on my PC and NB. On NB, its works fine , but when i run it at PC, its will got a balck screen , random appearance .
I trace the code , but only can get the point at \modules\codec\avcodec\video.c -> lavc_GetFrame ,it seems like the lavc_GetFrame method get called all the time,but not have the right result.
I think its the hw decode fail then change to sw decode ,but is not work ,i got
a, Could not Query ID3D11VideoDevice Interface. (hr=0x80004002)
b, D3D11: Removing Device.
c, Etc

i will upload my log , hope that will help .PS: the "jack ====== ..." is what i add for debug .

Look forward to your soonest reply
To help you, we need messages, to completely understand what your problems is.

From windows command line or linux or macos terminal, launch vlc with options -vv and --logfile=file

  • Windows example: vlc.exe -vv --logfile=c:\vlclog.txt
  • Linux example: vlc -vv --logfile=vlclog.txt, or vlc -vv 2>&1 > logfile.txt
Then paste the full resulting log here between [​code]and[​/code] (or use Pastebin.com if it's too long)

Also don't forget to name your Operating System and provide the VLC media player version.
https://github.com/tiaoyao789/LOG-file.git[/logfile]

Re: Win issue with C++

Posted: 20 Jun 2019 12:56
by mangup
how did you make cross-compilation?

Re: Win issue with C++

Posted: 21 Jun 2019 03:15
by JackTian
I use hyper-v with Ubuntu 18.4.1lts x64 to compilation the lib, with configure --diable-qt for win32. It is basically the same as the official document description

Re: Win issue with C++

Posted: 21 Jun 2019 10:06
by JackTian
Hi,anyone who intersted at this :

https://github.com/tiaoyao789/LOG-file/blob/master/20190621-5-black.LOG

i got an new log file when i use vlc with the issue .
i got a black screen on one of my four windows. but when i close the other window which is normal playing . the black screen is disappered.
thats weird . I hope there be someone can tell me thats why .
This is driving me crazy . !~_~!

Re: Win issue with C++

Posted: 21 Jun 2019 12:40
by mangup
I use hyper-v with Ubuntu 18.4.1lts x64 to compilation the lib, with configure --diable-qt for win32. It is basically the same as the official document description
As I understood, you have windows host, hyper-v VM and ubuntu guest os. and vlc configured with --diable-qt optoin. But how exactly do you make cross-compilation? ;)

Did you tried recommended docker method ?

Re: Win issue with C++

Posted: 24 Jun 2019 04:44
by JackTian
Dear mangup:
Thanks for ur reply ,but i do not know the point what u means for the " cross-compilation" . i just do as this link https://wiki.videolan.org/Win32Compile .

regards.

Re: Win issue with C++

Posted: 24 Jun 2019 15:15
by mangup
It means compiling sources on OS AAA to make executable binaries for OS BBB - "building methods" from your link. which one did you use?
However, unexpectedly, the maintainers recommend docker-method: https://forum.videolan.org/viewtopic.php?f=14&t=146175&p=490185#p479606

Re: Win issue with C++

Posted: 25 Jun 2019 08:15
by JackTian
I am conpiling source on Ubuntu 18.4.1lts x64 to make executable binaries for window X86(32bit) lib. I use ---- i686-w64-mingw32 .
regards