external player (VLC)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mierdatuti Offline
Member
Posts: 50
Joined: Sep 2009
Reputation: 0
Post: #1
HI,

I have ubuntu 9.04 and xbmc pre-9.10 r23196.
I would like to play avi files with VLC.

I change the file playercorefactory.xml with this, but it doesn't works!
Any help?
Many thanks and sorry for my english!

Code:
<playercorefactory>                                                      
  <players>                                                              
    <!-- These are compiled-in as re-ordering them would break scripts    
    The following aliases may also be used:                              
      audiodefaultplayer, videodefaultplayer, videodefaultdvdplayer      
    <player name="DVDPlayer" audio="true" video="true" />                
    <player name="DVDPlayer" /> placeholder for MPlayer                  
    <player name="VLC" type="externalplayer" audio="true" video="true" />
        <filename>/usr/bin/vlc</filename>
        <hidexbmc>false</hidexbmc>
        <hideconsole>false</hideconsole>
        <warpcursor>none</warpcursor>
    <player name="PAPlayer" audio="true" />
    -->
  </players>

  <rules name="system rules">
    <rule name="rtv" protocols="rtv" player="DVDPlayer" />
    <rule name="hdhomerun/myth/rtmp/mms" protocols="hdhomerun|myth|cmyth|rtmp|mms|mmsh" player="DVDPlayer" />
    <rule name="lastfm/shout" protocols="lastfm|shout" player="PAPlayer" />
    <rule name="AVI" protocols="avi" filetypes="avi"  player="VLC" />
    <!-- dvdplayer can play standard rtsp streams -->
    <rule name="rtsp" protocols="rtsp" filetypes="!(rm|ra)"  player="PAPlayer" />

    <!-- Internet streams -->
    <rule name="streams" internetstream="true">
      <rule name="flv/aacp/sdp" mimetypes="video/x-flv|video-flv|audio/aacp|application/sdp" player="DVDPlayer" />
      <rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
    </rule>

    <!-- DVDs -->
    <rule name="dvd" dvd="true" player="videodefaultdvdplayer" />
    <rule name="dvdfile" dvdfile="true" player="videodefaultdvdplayer" />
    <rule name="dvdimage" dvdimage="true" player="videodefaultdvdplayer" />

    <!-- Only dvdplayer can handle these normally -->
    <rule name="sdp/asf" filetypes="sdp|asf" player="DVDPlayer" />

    <!-- Pass these to dvdplayer as we do not know if they are audio or video -->
    <rule name="nsv" filetypes="nsv" player="DVDPlayer" />
  </rules>
</playercorefactory>
(This post was last modified: 2009-09-30 07:33 by mierdatuti.)
find quote
mierdatuti Offline
Member
Posts: 50
Joined: Sep 2009
Reputation: 0
Post: #2
Please any help? Nobody have the file changed to play with vlc. Someone can give me this file to try

Many thanks!
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #3
debug log.
find quote
mierdatuti Offline
Member
Posts: 50
Joined: Sep 2009
Reputation: 0
Post: #4
spiff Wrote:debug log.

The log is in :
http://pastebin.com/m286977c8

Many thanks!
find quote
mierdatuti Offline
Member
Posts: 50
Joined: Sep 2009
Reputation: 0
Post: #5
It works!!!!!!!!!!!!!! Big GrinLaughBig Grin

Finally, after a lot of attempts, I can do it!!
I put the solution for all people that I could help.

I change the file playercorefactory.xml in the paht:
/usr/local/share/xbmc/system

My file is:

Code:
<playercorefactory>
<players>
<player name="vlc" type="ExternalPlayer" audio="false" video="true">
<filename>/usr/bin/vlc</filename>
<args>--fullscreen</args>
<hideconsole>true</hideconsole>
<hidecursor>true</hidecursor>
<forceontop>true</forceontop>
</player>
</players>
<rules action="prepend">
<rule filetypes="avi" filename="*.avi" player="vlc"/>
</rules>
</playercorefactory>

Many thanks to all!
find quote
myrison Offline
Donor
Posts: 301
Joined: Nov 2009
Reputation: 3
Location: Austin, TX
Post: #6
I realize this is long after the fact, but I did want to say thanks for posting back as it saved me a lot of screwing around just to use your output. Thanks. Smile
find quote
outleradam Offline
Donor
Posts: 1,722
Joined: Sep 2009
Reputation: 20
Location: Louisiana
Post: #7
um, what is the benefit of VLC? Last time I tried VLC it came up in a funky ansi art mode for my video.

Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[Image: newsig-1.png]
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
find quote
Faustus Offline
Junior Member
Posts: 2
Joined: Nov 2009
Reputation: 0
Post: #8
outleradam Wrote:um, what is the benefit of VLC? Last time I tried VLC it came up in a funky ansi art mode for my video.

VLC plays anything for one thing...

Also, VLC doesn't miscalculate the length of a movie which is why I use it rather than the built in media player for XMBC. If XMBX used the bit-rate and the actual file size, I could stop using VLC.

-F
find quote
jmknash Offline
Junior Member
Posts: 1
Joined: Jun 2010
Reputation: 0
Post: #9
Hi guys,

This code worked fine for my *.avi content but how can this code be expanded to replace the built in DVDPlayer in xbmc, as I use vlc media player because it has a sharpen video effect which improves quality nicely on my sd projector.

Thanks Jon

<playercorefactory>
<players>
<player name="vlc" type="ExternalPlayer" audio="false" video="true">
<filename>/usr/bin/vlc</filename>
<args>--fullscreen</args>
<hideconsole>true</hideconsole>
<hidecursor>true</hidecursor>
<forceontop>true</forceontop>
</player>
</players>
<rules action="prepend">
<rule filetypes="avi" filename="*.avi" player="vlc"/>
</rules>
</playercorefactory>
find quote
drewbeans Offline
Junior Member
Posts: 3
Joined: Nov 2011
Reputation: 0
Post: #10
Im gonna bump this thread because this issue has been bugging me for a while.

Im using xbmc live 10.1 right now and its great. Though lately I have been running into an issue where a small % of my video dvds wont play. I have done all the things needed to get dvds to work (medibuntu, the libs, lucid 10.04 bug work around, and the css removal script) and still no solution. My newest idea is to try vlc as the default player to see if it will read it better.

I wanted to point this all out ahead of time just to make sure im not wasting my time trying to get vlc working as external player for these dvds to play in case there is something/nothing else I can do.

I have created a playercorefactory.xml file in /.xbmc/userdata/ like this:

<playercorefactory>
<players>
<player name="vlc" type="ExternalPlayer" audio="false" video="true">
<filename>/usr/bin/vlc</filename>
<args>--fullscreen</args>
<hideconsole>true</hideconsole>
<hidecursor>true</hidecursor>
<forceontop>true</forceontop>
</player>
</players>
<rules action="prepend">
<rule name="dvd" filename="dvd" player="vlc"/>
</rules>
</playercorefactory>

It is not working currently and so I want to know what Im doing wrong?

Thanks again everyone and have a great day
find quote
Khmerog Offline
Junior Member
Posts: 2
Joined: Jun 2012
Reputation: 0
Post: #11
For this line
<player name="vlc" type="ExternalPlayer" audio="false" video="true">

What would happen if I made audio=true instead of false? I prefer VLC becuase the audio is much louder compared to xmbc default. In the default player you can amp up the sound but I can hear some distortion when I raise it up. VLC player just sounds 5 times better at same volume as the default.

For this line
<rule filetypes="avi" filename="*.avi" player="vlc"/>

Will it only use VLC for avi files? What if I want mp4 and mkv, etc. to be played by VLC? Do I add seperate lines for each file type? or can I do this;
<rule filetypes="avi, mkv, mp4, flv" filename="*.avi, .mkv, .mp4, .flv" player="vlc"/>
If I can do the later one, is the way I typed it correct or do I not need the space before the file? (ex."avi,mkv,mp4,flv")

I haven't tried eperimenting becuase I am very new to editing files and don't want to mess it up.

Thanks for the code btw mierdatuti.
find quote
Richy Freeway Offline
Member
Posts: 58
Joined: Dec 2009
Reputation: 0
Post: #12
(2012-06-24 14:43)Khmerog Wrote:  I haven't tried eperimenting becuase I am very new to editing files and don't want to mess it up.

Make a copy of the file and try it out, if it doesn't work you can just put the original file back.

You won't cause any permanent damage!
find quote