Problems with "External Player" (XBMC CPU Usage or error returning to XBMC)
#1
Exclamation 
I'm using xbmc 9.11 Camelot on two PC's:
-W7 32bits, Nvidia ION, Atom 330, latest Nvidia drivers (195.62 WHQL)
-XP SP3, ATI Radeon x1050, Core 2 Duo 2,13GHz, Latest Ati drivers (ATI Catalyst™ Display Driver Version 9.11)

I'm trying to use windows media player as a external player (only for hd, the ION 330 needs GPU to play HD)(please don't, recommend me using linux)

I have the same issues on the two PC's:

Problem 1:
If i use the default parameters in playercorefactory according with xbmc manual

<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>

The external player is launched without ploblems, when i close the external player xbmc returns perfectly, but xbmc is using a lot of cpu during wmp is playing video, so it is dangerous and may cause drops/problems on the ION (i think)

Problem 2:
I try to use <hidexbmc>true</hidexbmc>, i'm very happy to see that when it is activated xbmc don't use cpu time during external player is playing, but when i close the external player, xbmc don't retunrs, i get a black screen. I must use ALT+TAB to get XBCM returns...


Thanks in advance for the answers and sorry for my 'poor' english.
Reply
#2
Mochilote Wrote:I'm using xbmc 9.11 Camelot on two PC's:
-W7 32bits, Nvidia ION, Atom 330, latest Nvidia drivers (195.62 WHQL)
-XP SP3, ATI Radeon x1050, Core 2 Duo 2,13GHz, Latest Ati drivers (ATI Catalystâ„¢ Display Driver Version 9.11)

I'm trying to use windows media player as a external player (only for hd, the ION 330 needs GPU to play HD)(please don't, recommend me using linux)

I have the same issues on the two PC's:

Problem 1:
If i use the default parameters in playercorefactory according with xbmc manual

<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>

The external player is launched without ploblems, when i close the external player xbmc returns perfectly, but xbmc is using a lot of cpu during wmp is playing video, so it is dangerous and may cause drops/problems on the ION (i think)

Problem 2:
I try to use <hidexbmc>true</hidexbmc>, i'm very happy to see that when it is activated xbmc don't use cpu time during external player is playing, but when i close the external player, xbmc don't retunrs, i get a black screen. I must use ALT+TAB to get XBCM returns...


Thanks in advance for the answers and sorry for my 'poor' english.

catalist driver are too high you have to go back too earlier didnt tested it my self but i do remember reading a lot about this. Thats normal ati video card are *****
Reply
#3
tiben20 Wrote:catalist driver are too high you have to go back too earlier didnt tested it my self but i do remember reading a lot about this. Thats normal ati video card are *****

I'm not worried with the computer with Ati, i only use it to test, the HTPC ION 330 is the one connected to the TV :-) and it has the same problem...
Reply
#4
Mochilote Wrote:Problem 2:
I try to use <hidexbmc>true</hidexbmc>, i'm very happy to see that when it is activated xbmc don't use cpu time during external player is playing, but when i close the external player, xbmc don't retunrs, i get a black screen. I must use ALT+TAB to get XBCM returns...

I can confirm this issue. I've been setting hidexbmc to true for the same reasons.
Reply
#5
this is normal since xbmc is skipping part of the rendering process when the external player is active so you might have something in the debug log at the end that could be important to debug this kind of problem
Reply
#6
I have since rolled back, but I checked the debug log and there was nothing out of the ordinary. The related entry was something along the lines of "Sending XBMC to TOP".
Reply
#7
tiben20 Wrote:this is normal since xbmc is skipping part of the rendering process when the external player is active so you might have something in the debug log at the end that could be important to debug this kind of problem

Full Log: http://pastebin.com/f35936bf5

summary:

XBMC Launches external player
09:22:37 T:3572 M:1603559424 DEBUG: Percentage is 100.000000
09:22:37 T:3572 M:1603559424 DEBUG: CWinEventsWin32::WndProcWindow is hidden
09:22:37 T:1740 M:1604132864 DEBUG: CExternalPlayer:Tonguerocess: Unlocking foreground window
09:22:37 T:1740 M:1604132864 NOTICE: CExternalPlayer::ExecuteAppW32: H:\Archivos de programa\Windows Media Player\wmplayer.exe "H:\Archivos de programa\Windows Media Player\wmplayer.exe" "\\MARCILLA\Material\Conciertos\ACDC - No Bull (Directors Cut) [720p DTS].mkv" /play /reproducir /Close /Fullscreen
09:22:37 T:3572 M:1595850752 DEBUG: CWinEventsWin32::WndProcWindow is inactive
09:22:37 T:3572 M:1592668160 DEBUG: CWinEventsWin32::WndProcWindow lost focus
09:22:39 T:3572 M:1541251072 DEBUG: D3DERR_DEVICELOST
09:22:39 T:3572 M:1541246976 DEBUG: Percentage is 100.000000
09:22:40 T:3572 M:1528848384 DEBUG: Percentage is 100.000000
09:22:41 T:3572 M:1527242752 DEBUG: Percentage is 100.000000
09:22:42 T:3572 M:1527492608 DEBUG: Percentage is 100.000000
09:22:43 T:3572 M:1527853056 DEBUG: Percentage is 100.000000
09:22:44 T:3572 M:1532014592 DEBUG: Percentage is 100.000000
09:22:45 T:3572 M:1532084224 DEBUG: Percentage is 100.000000
09:22:46 T:3572 M:1532022784 DEBUG: Percentage is 100.000000
09:22:47 T:3572 M:1531936768 DEBUG: Percentage is 100.000000
09:22:48 T:3572 M:1531879424 DEBUG: Percentage is 100.000000
09:22:49 T:3572 M:1529872384 DEBUG: Percentage is 100.000000
09:22:50 T:3572 M:1530445824 DEBUG: Percentage is 100.000000
09:22:51 T:3572 M:1526411264 DEBUG: Percentage is 100.000000
09:22:52 T:3572 M:1526390784 DEBUG: Percentage is 100.000000
09:22:53 T:3572 M:1526439936 DEBUG: Percentage is 100.000000
09:22:54 T:3572 M:1526538240 DEBUG: Percentage is 100.000000
09:22:55 T:3572 M:1526341632 DEBUG: Percentage is 100.000000
09:22:56 T:3572 M:1526263808 DEBUG: Percentage is 100.000000
09:22:57 T:3612 M:1526235136 DEBUG: Thread 3612 terminating
09:22:57 T:3572 M:1526263808 DEBUG: Percentage is 100.000000
09:22:58 T:3572 M:1526571008 DEBUG: Percentage is 100.000000
09:22:59 T:3572 M:1526775808 DEBUG: Percentage is 100.000000
09:23:00 T:3572 M:1526792192 DEBUG: Percentage is 100.000000
09:23:01 T:3572 M:1526775808 DEBUG: Percentage is 100.000000
09:23:02 T:3572 M:1526673408 DEBUG: Percentage is 100.000000
09:23:03 T:3572 M:1526616064 DEBUG: Percentage is 100.000000
09:23:03 T:3572 M:1526616064 INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://feeds.feedburner.com (easy=01FAB460, multi=01E58998)
09:23:03 T:3572 M:1526657024 INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://xoap.weather.com (easy=01FA0048, multi=01E5F110)
09:23:04 T:3572 M:1526554624 DEBUG: Percentage is 100.000000
09:23:05 T:3572 M:1526640640 DEBUG: Percentage is 100.000000
09:23:06 T:3616 M:1522573312 DEBUG: Thread 3616 terminating (autodelete)
09:23:06 T:3620 M:1522708480 DEBUG: Thread 3620 terminating (autodelete)
09:23:06 T:3572 M:1522774016 DEBUG: Percentage is 100.000000
09:23:07 T:3572 M:1522671616 DEBUG: Percentage is 100.000000
09:23:07 T:3572 M:1522671616 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmc/system/ImageLib.dll)
09:23:07 T:3572 M:1522671616 DEBUG: Win32DllLoader::Unload ImageLib.dll
09:23:07 T:3572 M:1522671616 DEBUG: FreeLibrary(MSVCR71.dll) -> 0187BDF0
09:23:07 T:3572 M:1522671616 DEBUG: FreeLibrary(MSVCP71.dll) -> 0187B7E8
09:23:07 T:3572 M:1522671616 DEBUG: Win32DllLoader::Unload MSVCP71.dll
09:23:07 T:3572 M:1522671616 DEBUG: FreeLibrary(MSVCR71.dll) -> 0187BDF0
09:23:08 T:3572 M:1523556352 DEBUG: Percentage is 100.000000
09:23:09 T:3572 M:1518952448 DEBUG: Percentage is 100.000000

Manually End of external player
09:23:09 T:1740 M:1599393792 NOTICE: CExternalPlayer::ExecuteAppW32: WAIT_OBJECT_0
09:23:09 T:1740 M:1599545344 NOTICE: CExternalPlayer:Tonguerocess: Stop
09:23:10 T:3572 M:1605955584 DEBUG: CWinEventsWin32::WndProcWindow is shown
09:23:10 T:1740 M:1605955584 NOTICE: CExternalPlayer:Tonguerocess: Showing XBMC window TOPMOST
09:23:10 T:1740 M:1605955584 NOTICE: CExternalPlayer:Tonguerocess: Reclaiming audio device 2
09:23:10 T:1740 M:1605955584 DEBUG: CAudioContext::SetActiveDevice - SetActiveDevice from 0 to 2
09:23:10 T:1740 M:1605955584 DEBUG: CAudioContext::RemoveActiveDevice - Removing device 0
09:23:10 T:1740 M:1605947392 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Controlador primario de sonido
09:23:10 T:1740 M:1605947392 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Realtek HD Audio output
09:23:10 T:1740 M:1605922816 DEBUG: CApplication::OnPlayBackEnded - Playback has finished
09:23:10 T:1740 M:1605922816 DEBUG: Thread 1740 terminating
09:23:10 T:3572 M:1605955584 DEBUG: CGUIAudioManager::Initialize
09:23:11 T:3572 M:1606164480 DEBUG: CApplication::SaveFileState - Saving file state for video item smb://MARCILLA/Material/Conciertos/ACDC - No Bull (Directors Cut) [720p DTS].mkv
09:23:11 T:3572 M:1606164480 DEBUG: CApplication::SaveFileState - Marking video item smb://MARCILLA/Material/Conciertos/ACDC - No Bull (Directors Cut) [720p DTS].mkv as watched
09:23:11 T:3572 M:1606107136 DEBUG: CGUIMediaWindow::GetDirectory (smb://MARCILLA/Material/Conciertos/)
09:23:11 T:3572 M:1606107136 DEBUG: ParentPath = [smb://MARCILLA/Material/Conciertos/]
09:23:11 T:3212 M:1606545408 DEBUG: thread start, auto delete: 0
09:23:11 T:3160 M:1606524928 DEBUG: thread start, auto delete: 1
09:23:11 T:3212 M:1606520832 DEBUG: Thread 3212 terminating

Black screen...

Wait some seconds and finally ALT+TAB to return to XBMC and finally close xbmc
09:23:41 T:3160 M:1607192576 DEBUG: Thread 3160 terminating (autodelete)
09:23:48 T:3572 M:1607180288 DEBUG: CWinEventsWin32::WndProcWindow is active
09:23:48 T:3572 M:1607180288 DEBUG: CWinEventsWin32::WndProcWindow gained focus
09:23:49 T:3572 M:1611231232 DEBUG: SDLKeyboard: scancode: 56, sym: 308, unicode: 0, modifier: 0
09:23:50 T:3572 M:1611231232 DEBUG: CWinEventsWin32::WndProcWindow is active
09:23:50 T:3572 M:1611276288 DEBUG: CWinEventsWin32::WndProcWindow lost focus
09:23:50 T:3572 M:1611333632 DEBUG: D3DERR_DEVICELOST
...
Reply
#8
same here for problem #1. I use a nvidia geforce 8600 instead. same high CPU usage. but it will not be the case when xbmc was set for fake full screen. please help solve.
Reply
#9
Finally i solved it. I download and compile camelot source code and get a solution for the returning to xbmc problem when hidexbmc=true.

In ExternalPlayer.cpp about line 330, i have added 2 lines:

....
m_bIsPlaying = false;
CLog::Log(LOGNOTICE, "%s: Stop", __FUNCTION__);

#if defined(_WIN32)
if (m_hidexbmc)
g_Windowing.Minimize();

g_Windowing.Restore();

if (currentStyle & WS_EX_TOPMOST)
....

Maibe it's not the best solution, but it works :-)

Here is the link to download Camelot + this patch (only xbmc.exe): http://www.megaupload.com/?d=RH873844


bye.
Reply
#10
so just run the patch?
Reply
#11
wrxg33k Wrote:so just run the patch?

Its a full xbmc executable, replace xbmc.exe in your xbmc directory with it.
Reply
#12
will test it when i get home today
Reply
#13
Mochilote Wrote:Finally i solved it. I download and compile camelot source code and get a solution for the returning to xbmc problem when hidexbmc=true.

In ExternalPlayer.cpp about line 330, i have added 2 lines:

....
m_bIsPlaying = false;
CLog::Log(LOGNOTICE, "%s: Stop", __FUNCTION__);

#if defined(_WIN32)
if (m_hidexbmc)
g_Windowing.Minimize();

g_Windowing.Restore();

if (currentStyle & WS_EX_TOPMOST)
....

Maibe it's not the best solution, but it works :-)

Here is the link to download Camelot + this patch (only xbmc.exe): http://www.megaupload.com/?d=RH873844


bye.
You should probably add the patch to Trac. Or maybe a developer could do it for you, I'm not sure what's the right way.
Reply
#14
ashlar Wrote:You should probably add the patch to Trac. Or maybe a developer could do it for you, I'm not sure what's the right way.

I think the same, but i don't know how to do it. Moreover, it seems nobody has this problem or have not tried it yet Blush
Reply
#15
Mochilote Wrote:I think the same, but i don't know how to do it. Moreover, it seems nobody has this problem or have not tried it yet Blush

From your explorer with tortoise svn you right click on your xbmc folder and you select tortoise svn and then you will see create patch
and then you login on trac and go there http://trac.xbmc.org/newticket
Reply



Logout Mark Read Team Forum Stats Members Help
Problems with "External Player" (XBMC CPU Usage or error returning to XBMC)0
This forum uses Lukasz Tkacz MyBB addons.