Option to set MPlayer OR DVDplayer as the default video player?

  Thread Rating:
  • 1 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jo2jo Offline
Member
Posts: 72
Joined: Oct 2006
Reputation: -10
Post: #41
i just need dvd player to play .avi file since that pretty much what all of my movies are in.

ive been looking at teh 11-02-06 addition to the cvs where someone made dvdplayer the default for .flv

tks
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #42
Look in PlayerCoreFactory.cpp

Cheers,
Jonathan

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.


[Image: badge.gif]
find quote
jo2jo Offline
Member
Posts: 72
Joined: Oct 2006
Reputation: -10
Post: #43
hi,

thanks, i've found the exact codeing needed to change (this is from nov 2 2006 CVS notes..):

Code:
Index: PlayerCoreFactory.cpp
===================================================================
RCS file: /cvsroot/xbmc/XBMC/xbmc/cores/PlayerCoreFactory.cpp,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** PlayerCoreFactory.cpp    3 Jul 2006 11:55:33 -0000    1.41
--- PlayerCoreFactory.cpp    2 Nov 2006 23:18:20 -0000    1.42
***************
*** 96,99 ****
--- 96,105 ----
     }
  
+   // force flv files to default to dvd player
+   if (url.GetFileType() == "flv" )
+   {
+     vecCores.push_back(EPC_DVDPLAYER);
+   }
+
     if (url.GetProtocol().Equals("daap") || url.GetProtocol().Equals("upnp"))        // mplayer
is better for daap and upnp


except avi, not flv....the issue is i dont have everything set up to compile and i know ppl do their own compiles every day, i was hoping some one could do a compile with this one change...from what ive read it can take a while to get compling fully running, and i would rather not install any more dev tools like .net ect....i was willing to compensate someone for their time as well..

any takers? tks.. i would think there would be other people who would want this, as ftp streaming is the BEST across any medium (net, wifi ect..)..and with this force of dvd player you can get FULLY stable seeking and perfect playback....very nice!

tks
find quote
SleepyP Offline
Posting Freak
Posts: 2,282
Joined: Nov 2005
Reputation: 4
Location: Portland, Oregon
Post: #44
dude it's seriously no big deal to to "get set up" for compiling. I just reinstalled Windows recently so I went from having nothing installed to making XBMC compiles with next to no effort.

I am using Microsoft Visual Studio Net Pro 2003 and Microsoft XBox XDK 5933 Unofficial, and all I did was run the installer for each. VS .NET does install some other prerequisites but they're included on the DVD so it's like "click click done". You need those two and SVN to get the source code of course. After installing those three apps and doing a code checkout, I ran Build.bat successfully the first time. You can do it, it's easy.
find quote
jo2jo Offline
Member
Posts: 72
Joined: Oct 2006
Reputation: -10
Post: #45
HI, I really appreciate the encourgement and it entised me to try...

but here is my point, i've now spent close to 20min trying to find MS .net studio and the XDK kit......maybe i'm stupid...whatever.....its like if some one needed me to do a small change to a graphic in Photoshop...and they dont have p shop or ever use it..or have a need beyond this..takes me like 30 seconds..takes them like 2 hours to find Photoshop..

i know the devs or busy or i would wait for them to implemnt this option normally...

let put it this way, I had compiling set up, I woudl do this for 50$..

how about 50$ to do this for me?
find quote
SleepyP Offline
Posting Freak
Posts: 2,282
Joined: Nov 2005
Reputation: 4
Location: Portland, Oregon
Post: #46
holy crap, I'll see what I can do (since I'm completely broke)
find quote
SleepyP Offline
Posting Freak
Posts: 2,282
Joined: Nov 2005
Reputation: 4
Location: Portland, Oregon
Post: #47
k here's what I did.
In the file trunk\XBMC\xbmc\cores\PlayerCoreFactory.cpp, Line 112:
Quote:if (url.GetFileType() == "flv" )
changed to
Quote:if (url.GetFileType() == "flv" || url.GetFileType() == "avi")
I think this forks the logic so it uses the DVD player for either FLV or AVI files. This compiled just fine, the build is running on my system presently. I am running an AVI file, how do I test to see which player is currently in-use?
find quote
SleepyP Offline
Posting Freak
Posts: 2,282
Joined: Nov 2005
Reputation: 4
Location: Portland, Oregon
Post: #48
hmm, when I do the context menu on AVIs and do "Play Using" it says MPlayer is the default, but from my log file:
17:16:16 M: 40038400 NOTICE: DVDPlayer: Opening: smb://192.168.2.3/TVA/Aqua Teen Hunger Force/Aqua Teen Hunger Force - 56 - Dirt Foot.avi
thats on a clean install where I haven't done anything except click the file. So I guess it works?
find quote
jo2jo Offline
Member
Posts: 72
Joined: Oct 2006
Reputation: -10
Post: #49
sleepy, just sent you a PM.

with this build you made it still uses Mplayer for .avi files.

if it helps everyting i watch is either Xvid divx or mpeg-4..but all the files end in .avi.

let me know.
find quote
anywonder Offline
Senior Member
Posts: 101
Joined: Oct 2006
Reputation: 0
Post: #50
jo2jo Wrote:Index: PlayerCoreFactory.cpp
===================================================================
RCS file: /cvsroot/xbmc/XBMC/xbmc/cores/PlayerCoreFactory.cpp,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** PlayerCoreFactory.cpp 3 Jul 2006 11:55:33 -0000 1.41
--- PlayerCoreFactory.cpp 2 Nov 2006 23:18:20 -0000 1.42
***************
*** 96,99 ****
--- 96,105 ----
}

+ // force flv files to default to dvd player
+ if (url.GetFileType() == "flv" )
+ {
+ vecCores.push_back(EPC_DVDPLAYER);
+ }
+
if (url.GetProtocol().Equals("daap") || url.GetProtocol().Equals("upnp")) // mplayer
is better for daap and upnp

[/code]

Is there anyway to switch it back to John's new version of mplayer?

It plays dvr-ms files (much improved, no crashing) and flv files better than dvdplayer.
find quote
Post Reply