Mplayer as External Player
#1
Dear all,


Im using XBMC PRE-9.10 R21942M version on Nvidia ION Board.My platform is moblin and im using fvwm as my as my Desktop.

Since the DVDPlayer unable to play Rmvb file smoothly i have decided to call mplayer to play it. Below is the setting that i set in my playercorefactory.xml

<playercorefactory>
<players>
<player name="MPlayer" type="ExternalPlayer" audio="false" video="true">
<filename>/usr/local/bin/mplayer</filename>
<args>-really-quiet -fs -ontop -vo gl2 </args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<hidecursor>true</hidecursor>
<forceontop>true</forceontop>
</player>
</players>
<rules action="prepend">
<rule filetypes="rmvb" filename="*.rmvb" player="MPlayer2"/>
</rules>
</playercorefactory>

But when i call my mplayer there is audio but the video still playing at the back of xbmc.

I have conducted few testing and found something.

If i start my xbmc without fullscreen i try to call the external player its able to play it n the shows play in fullscreen mode. Then i stop it.

secondly i call any other movie use dvdplayer and my xbmc still stay on NON-Fullscreen mode.and it able to play within the xbmc screen.

once i press stop my xbmc automatically become fullscreen. I call external player again to play and its only start to play the audio and video play at the back again. Any idea where is the bus is and what causing this issue.


i also try this line but still same.

<player name="MPlayer" type="ExternalPlayer" audio="false" video="true">
<filename>/usr/local/bin/mplayer</filename>
<args>-fs -ontop</args>
<forceontop>true</forceontop>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<hidecursor>true</hidecursor>
<forceontop>true</forceontop>
</player>

I Hope there will be some solution for this issue.Your reply is highly appreciated.

Thanks,
Regards,
R.Shankar
Reply
#2
hai there.

can any one give me any solution for the issue that i mention above please.

thanks.
Reply
#3
Have you tried the search? I think this has been covered in many threads - though i remember it being an xbox only feature (not sure about this).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#4
I believe this is a known issue, not many users have tried to use the external player feature so it was not widely known or discussed. There should be a trac ticket open for it on http://trac.xbmc.org
Reply
#5
Hi,

I just see one thing:

As of davilla, who implemented the "forceontop" switch, your xml should look like this:
(forceontop must not be within the player tag)

<playercorefactory>
<players>
<player name="MPlayer" type="ExternalPlayer" audio="false" video="true">
<filename>/usr/local/bin/mplayer</filename>
<args>-really-quiet -fs -ontop -vo gl2 </args>
</player>
</players>
<rules action="prepend">
<rule filetypes="rmvb" filename="*.rmvb" player="MPlayer2"/>
</rules>
<forceontop>true</forceontop>
</playercorefactory>
Reply
#6
dear tvont,



i have tried wth the xml file that u sent to me..thanks for that..but its still same..video play at the back..and in my log file shows that forceontop=false below is the capture of my log files...any idea pls...


12:20:54 T:3046737808 M:1450434560 NOTICE: ExternalPlayer Tweaks: Forceontop (false), Hideconsole (false), Hidecursor (false), Hidexbmc (false), StartupTime (2000)
12:20:54 T:3046737808 M:1450434560 NOTICE: OpenFile: /home/Emagine/Videos/PrisonBreak.rmvb
12:20:54 T:2507795344 M:1450434560 DEBUG: Running thread 2507795344
12:20:54 T:2507795344 M:1450434560 DEBUG: thread start, auto delete: 0
12:20:54 T:2507795344 M:1450434560 NOTICE: Process: Player: /usr/local/bin/mplayer
12:20:54 T:2507795344 M:1450434560 NOTICE: Process: File: /home/Emagine/Videos/PrisonBreak.rmvb
12:20:54 T:2507795344 M:1450434560 NOTICE: Process: Args: -really-quiet -fs -ontop -vo gl2
12:20:54 T:2507795344 M:1450434560 NOTICE: Process: Start
12:20:54 T:3046737808 M:1450434560 DEBUG: CGUIAudioManager:Big GrineInitialize
12:20:54 T:3046737808 M:1450438656 DEBUG: OnPlayBackStarted - Playback has started
12:20:54 T:2507795344 M:1450438656 DEBUG: CGUIAudioManager:Big GrineInitialize
12:20:54 T:2499406736 M:1450438656 DEBUG: Running thread 2499406736
12:20:54 T:2499406736 M:1450438656 DEBUG: thread start, auto delete: 0
12:20:54 T:2499406736 M:1450438656 DEBUG: Thread 2499406736 terminating
12:20:54 T:2507795344 M:1459560448 NOTICE: ExecuteAppLinux: "/usr/local/bin/mplayer" -really-quiet -fs -ontop -vo gl2 "/home/Emagine/Videos/PrisonBreak.rmvb"
12:20:54 T:2491018128 M:1459560448 DEBUG: Running thread 2491018128
12:20:54 T:2491018128 M:1459560448 DEBUG: thread start, auto delete: 0
12:20:54 T:2491018128 M:1459560448 DEBUG: Thread 2491018128 terminating
12:20:54 T:3046737808 M:1459490816 DEBUG: CGUIInfoManager::SetCurrentMovie(/home/Emagine/Videos/PrisonBreak.rmvb)
12:20:54 T:3046737808 M:1459908608 DEBUG: GetMovieId (/home/Emagine/Videos/PrisonBreak.rmvb), query = select idMovie from movie where idFile=5
12:20:54 T:3046737808 M:1459908608 DEBUG: GetMovieId (/home/Emagine/Videos/PrisonBreak.rmvb), query = select idMovie from movie where idFile=5
12:20:54 T:3046737808 M:1459908608 DEBUG: SetCurrentMovie, got movie info!
12:20:54 T:3046737808 M:1459908608 DEBUG: Title = Prison Break: The Final Break

thanks again
Reply
#7
shankaran_r Wrote:dear tvont,



i have tried wth the xml file that u sent to me..thanks for that..but its still same..video play at the back..and in my log file shows that forceontop=false below is the capture of my log files...any idea pls...


12:20:54 T:3046737808 M:1450434560 NOTICE: ExternalPlayer Tweaks: Forceontop (false), Hideconsole (false), Hidecursor (false), Hidexbmc (false), StartupTime (2000)
12:20:54 T:3046737808 M:1450434560 NOTICE: OpenFile: /home/Emagine/Videos/PrisonBreak.rmvb
12:20:54 T:2507795344 M:1450434560 DEBUG: Running thread 2507795344
12:20:54 T:2507795344 M:1450434560 DEBUG: thread start, auto delete: 0
12:20:54 T:2507795344 M:1450434560 NOTICE: Process: Player: /usr/local/bin/mplayer
12:20:54 T:2507795344 M:1450434560 NOTICE: Process: File: /home/Emagine/Videos/PrisonBreak.rmvb
12:20:54 T:2507795344 M:1450434560 NOTICE: Process: Args: -really-quiet -fs -ontop -vo gl2
12:20:54 T:2507795344 M:1450434560 NOTICE: Process: Start
12:20:54 T:3046737808 M:1450434560 DEBUG: CGUIAudioManager:Big GrineInitialize
12:20:54 T:3046737808 M:1450438656 DEBUG: OnPlayBackStarted - Playback has started
12:20:54 T:2507795344 M:1450438656 DEBUG: CGUIAudioManager:Big GrineInitialize
12:20:54 T:2499406736 M:1450438656 DEBUG: Running thread 2499406736
12:20:54 T:2499406736 M:1450438656 DEBUG: thread start, auto delete: 0
12:20:54 T:2499406736 M:1450438656 DEBUG: Thread 2499406736 terminating
12:20:54 T:2507795344 M:1459560448 NOTICE: ExecuteAppLinux: "/usr/local/bin/mplayer" -really-quiet -fs -ontop -vo gl2 "/home/Emagine/Videos/PrisonBreak.rmvb"
12:20:54 T:2491018128 M:1459560448 DEBUG: Running thread 2491018128
12:20:54 T:2491018128 M:1459560448 DEBUG: thread start, auto delete: 0
12:20:54 T:2491018128 M:1459560448 DEBUG: Thread 2491018128 terminating
12:20:54 T:3046737808 M:1459490816 DEBUG: CGUIInfoManager::SetCurrentMovie(/home/Emagine/Videos/PrisonBreak.rmvb)
12:20:54 T:3046737808 M:1459908608 DEBUG: GetMovieId (/home/Emagine/Videos/PrisonBreak.rmvb), query = select idMovie from movie where idFile=5
12:20:54 T:3046737808 M:1459908608 DEBUG: GetMovieId (/home/Emagine/Videos/PrisonBreak.rmvb), query = select idMovie from movie where idFile=5
12:20:54 T:3046737808 M:1459908608 DEBUG: SetCurrentMovie, got movie info!
12:20:54 T:3046737808 M:1459908608 DEBUG: Title = Prison Break: The Final Break

thanks again

Sorry - reviewed my config. The setting is <alwaysontop>false</alwaysontop>

at the position I had put the forceontop switch in my former post. forceontop is obsolete and only of relevance on a win32 system.

Please let me know if mplayer gains focus. On OSX <alwaysontop> releases XBMC focus. I tried VLC and still had to switch task to bring the player window ontop (only controlls show up while starting a movie)

I still hope Davilla is doing the promised code changes to finally implement at least a clean window / focus handling
Reply
#8
As I have issues with the internal player, I'm giving in parallel the externalplayer a try. I'm using SVN:22473, that I built today. So the patch http://trac.xbmc.org/ticket/7075 is in there. I tried all combination of <alwaysontop> (true/false) in advancedsettings.xml and <forceontop> (true/false) in playercorefactory.xml. I also tried alwaysontop in playercorefactory.xml. The best result I got was mplayer starting in background with sound, could see mplayer running with ps and after mplayer had finished I could use xbmc again. I also managed to have xbmc stopping, mostly when having <alwaysontop>false in advancedsettings.xml.

Is there still work in progress for external player support under linux, or am I facing some unknown bug?
Using svn on kubuntu 9.4 (32bit x86), amd 4850e with AMG 780G - HD3200.
Highelf
Reply

Logout Mark Read Team Forum Stats Members Help
Mplayer as External Player0