mp4 and avi files

If you need any help with XBMC4XBOX, such as installing or using the software, please post it in here.
Post Reply
User avatar
VanZan
Posts: 91
Joined: Wed Jul 04, 2012 11:30 am
Location: Limerick, Ireland
Has thanked: 6 times
Been thanked: 2 times

mp4 and avi files

Post by VanZan »

Is it possible to set it up so that avi files will automatically play with mplayer and the newer mp4 files will play with dvdplayer? I seem to remember that it was from a thread on the old forum..............
angel4b
Posts: 36
Joined: Sat Jul 07, 2012 3:51 pm
Location: Cheeseland, USA

Re: mp4 and avi files

Post by angel4b »

i think there needs to be a rule in playercorefactory.xml

dont ask me what it is supposed to be though
whufclee
Posts: 922
Joined: Tue Jul 17, 2012 5:42 pm
Location: Essex, UK
Has thanked: 18 times
Been thanked: 109 times
Contact:

Re: mp4 and avi files

Post by whufclee »

You can create an advancedsettings.XML file and add something in there, I also can't remember the code but you should find it in the xbmc wiki.
User avatar
VanZan
Posts: 91
Joined: Wed Jul 04, 2012 11:30 am
Location: Limerick, Ireland
Has thanked: 6 times
Been thanked: 2 times

Re: mp4 and avi files

Post by VanZan »

thanks whuf! Before I posted I had a look at the xbmc.org wiki and couldn't find anything there in the advancedsettings.xml section. Is the xbmc4xbox wiki gone for good?
User avatar
Spongy
Posts: 97
Joined: Sun Jul 08, 2012 5:11 am
Has thanked: 16 times
Been thanked: 18 times

Re: mp4 and avi files

Post by Spongy »

As angel4b said you need to add a rule to system/playercorefactory.xml.

I haven't tested it, but this should do it.

Code: Select all

   <rule name="avi" filetypes="avi"  player="MPlayer" />
I think the only thing you can do with advancedsettings.xml is set the default player.
User avatar
VanZan
Posts: 91
Joined: Wed Jul 04, 2012 11:30 am
Location: Limerick, Ireland
Has thanked: 6 times
Been thanked: 2 times

Re: mp4 and avi files

Post by VanZan »

Works a treat! Many thanks Spongy and angelb! :)
whufclee
Posts: 922
Joined: Tue Jul 17, 2012 5:42 pm
Location: Essex, UK
Has thanked: 18 times
Been thanked: 109 times
Contact:

Re: mp4 and avi files

Post by whufclee »

Yeah sorry for giving out duff information there VanZan, it's been a manic few days and my heads not been in the game :oops:

Glad you got it sorted, I shall have to make a note of this little fix.
User avatar
LudviG
Posts: 267
Joined: Sun Jul 15, 2012 10:05 pm
Location: Norway
Has thanked: 29 times
Been thanked: 13 times

Re: mp4 and avi files

Post by LudviG »

Love this, will try it myself. What setting do you use with this? dvdplayer as default player?

Could someone make a idiot proof guide for this?
Never argue with an idiot! First he brings you down to his level, then he beats you with experience.
AZImmortal
Posts: 204
Joined: Wed Aug 01, 2012 5:48 am
Has thanked: 1 time
Been thanked: 9 times

Re: mp4 and avi files

Post by AZImmortal »

LudviG wrote:Love this, will try it myself. What setting do you use with this? dvdplayer as default player?

Could someone make a idiot proof guide for this?
Spongy's post is about as straight-forward as it can be. This is for if you want to set your default player as one player (mplayer or dvdplayer) but you want to use the other player for specific file extensions. For example, dvdplayer handles h.264 videos much better than mplayer, so I set dvdplayer as my default player, but mplayer handles xvid videos better than dvdplayer, so I use Spongy's rule to have all .avi files play with mplayer instead of dvdplayer.
Post Reply