Kodi Community Forum
DSPlayer (DirectShow Player for XBMC) Eden build available - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: DSPlayer (DirectShow Player for XBMC) Eden build available (/showthread.php?tid=106629)



- vicmanpergar - 2011-09-03

bananaman Wrote:whats a good setting for .ts files?

currently have:
Code:
<rule filetypes="ts|mpeg|mpg|m2ts">
       <source filter="mpegsource" />
      <splitter filter="mkvsplitter" />
       <video>
                   <video dxva="true" filter="ffdvideodxvadec" />
                   <video filter="ffdvideodec" />
       </video>
      <audio filter="ffdaudiodec" />
    </rule>

I have m2ts files running with Haali and mpcvideodec

edit: and in my case, i use ac3filter as audio filter


- liquidskin76 - 2011-09-03

0wing Wrote:DVDPlayer with DXVA2 is now working thanks to tiben20!

http://www.mediafire.com/?imm9vo99og2yji2
Mirrors: http://www.multiupload.com/15N3CF6FBC

Cheers guys! Guess theres life left in the old girl yet (dsplayer i mean!). Big Grin


- 0wing - 2011-09-03

I hadn't thought of using playercorefactory.xml, but now I realize that it's better to use it than making DSPlayer the default player for everything.
Using this config, video addons should work with the latest build.

Code:
<playercorefactory>
  <rules action="prepend">
    <rule filetypes="mkv|avi|divx|ogm|flv|mp4|mov|m4v|m2v|ts|mpeg|mpg|m2ts|wmv|rmvb|ifo|iso" player="DSPlayer">
      <rule protocols="daap|rtv|rtsp|rtmp|http|https|rtmpe|rtsp|mms" player="DVDPlayer"/>
    </rule>
  </rules>
</playercorefactory>

There might be more protocols that are used for streaming that I've missed.

Or if you already have the advancedsettings.xml set up already, you can just add this to playercorefactory.xml to get video addons to work.

Code:
<playercorefactory>
  <rules action="prepend">
      <rule protocols="daap|rtv|rtsp|rtmp|http|https|rtmpe|rtsp|mms" player="DVDPlayer"/>
  </rules>
</playercorefactory>



- Malexx - 2011-09-03

0wing Wrote:I hadn't thought of using playercorefactory.xml, but now I realize that it's better to use it than making DSPlayer the default player for everything.
Using this config, video addons should work with the latest build.

Code:
<playercorefactory>
  <players>
    <player name="DSPlayer" type="dsplayer" audio="false" video="true">
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="mkv|avi|divx|ogm|flv|mp4|mov|m4v|m2v|ts|mpeg|mpg|m2ts|wmv|rmvb|ifo|iso" player="DSPlayer"/>
    <rule protocols="daap|rtv|rtsp|rtmp|http|https|rtmpe|rtsp|mms" player="DVDPlayer">
  </rules>
</playercorefactory>

There might be more protocols that are used for streaming that I've missed.

That was my thought,i just tried with advancedsettings.
will try it later with playercorefactory.xml
Anyway thx


- &gt;&gt;X&lt;&lt; - 2011-09-03

0wing Wrote:I hadn't thought of using playercorefactory.xml, but now I realize that it's better to use it than making DSPlayer the default player for everything.
Using this config, video addons should work with the latest build.

Code:
<playercorefactory>
  <players>
    <player name="DSPlayer" type="dsplayer" audio="false" video="true">
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="mkv|avi|divx|ogm|flv|mp4|mov|m4v|m2v|ts|mpeg|mpg|m2ts|wmv|rmvb|ifo|iso" player="DSPlayer"/>
    <rule protocols="daap|rtv|rtsp|rtmp|http|https|rtmpe|rtsp|mms" player="DVDPlayer">
  </rules>
</playercorefactory>

There might be more protocols that are used for streaming that I've missed.

Another option if I remember rightly is set DSPlayer as the default player in advancedsettings.xml and then just create a playercorefactory.xml with only the prepend for DVDPlayer with out declaring any players in the playercorefactory.xml


- Malexx - 2011-09-03

Can someone tell me what i do wrong?
created playercorefactory.xml with these settings
Code:
<playercorefactory>
  <players>
    <player name="DSPlayer" type="dsplayer" audio="false" video="true">
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="mkv" videocodec="VC1|VC-1|WMV" player="DVDPlayer"/>
    <rule filetypes="mkv" videoresolution="1080|720" player="DSPlayer"/>
    <rule filetypes="avi|divx" player="DSPlayer"/>
    <rule protocols="daap|rtv|rtsp|rtmp|http|https|rtmpe|rtsp|mms" player="DVDPlayer">
  </rules>
</playercorefactory>
but all Media get played with DVDPlayer .....dont know what iam doing wrong?!


- vicmanpergar - 2011-09-03

When i got problems with playercorefactory, it was all about the location i was saving the file. If i remember right, u must put it in /users/xxx/XBMC/..... not in c:\program files\XBMC\.....


- Malexx - 2011-09-03

i run in portable mode,its in
C:\Program Files (x86)\XBMC11-DS\portable_data\userdata


- &gt;&gt;X&lt;&lt; - 2011-09-03

Malexx Wrote:Can someone tell me what i do wrong?
created playercorefactory.xml with these settings
Code:
<playercorefactory>
  <players>
    <player name="DSPlayer" type="dsplayer" audio="false" video="true">
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="mkv" videocodec="VC1|VC-1|WMV" player="DVDPlayer"/>
    <rule filetypes="mkv" videoresolution="1080|720" player="DSPlayer"/>
    <rule filetypes="avi|divx" player="DSPlayer"/>
    <rule protocols="daap|rtv|rtsp|rtmp|http|https|rtmpe|rtsp|mms" player="DVDPlayer">
  </rules>
</playercorefactory>
but all Media get played with DVDPlayer .....dont know what iam doing wrong?!

When you don't have DSPlayer as the default player in advancedsettings.xml there's no need to put any rules for DVDPlayer you only need the rules for DSPlayer

This should work for you

Code:
<playercorefactory>
  <players>
    <player name="DSPlayer" type="dsplayer" audio="false" video="true">
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="mkv" videoresolution="1080|720" player="DSPlayer"/>
    <rule filetypes="avi|divx" player="DSPlayer"/>
  </rules>
</playercorefactory>



- 0wing - 2011-09-03

>>X<<' Wrote:When you don't have DSPlayer as the default player in advancedsettings.xml there's no need to put any rules for DVDPlayer you only need the rules for DSPlayer

This should work for you

Code:
<playercorefactory>
  <players>
    <player name="DSPlayer" type="dsplayer" audio="false" video="true">
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="mkv" videoresolution="1080|720" player="DSPlayer"/>
    <rule filetypes="avi|divx" player="DSPlayer"/>
  </rules>
</playercorefactory>

Oh yeah, that's right. Lol, I didn't think far enough on that one Big Grin.

EDIT: No it's not right, man I'm tired.

Some video addons, like SVTPlay, don't work with DSPlayer.
Without the DVDPlayer rules for protocols XBMC will try to use DSPlayer for them, IF you setup DSPlayer to be the default player for all filetypes defined in mediasconfig.xml.


- &gt;&gt;X&lt;&lt; - 2011-09-03

0wing Wrote:Oh yeah, that's right. Lol, I didn't think far enough on that one Big Grin.

EDIT: No it's not right, man I'm tired.

Some video addons, like SVTPlay, don't work with DSPlayer.
Without the DVDPlayer rules for protocols XBMC will try to use DSPlayer for them, IF you setup DSPlayer to be the default player for all filetypes defined in mediasconfig.xml.

I said without DSPlayer set as default player in my last post it shouldn't happen then ?

The previous post to you I said the reverse DSPlayer as default with just the rules for DVDPlayer


- 0wing - 2011-09-03

>>X<<' Wrote:I said without DSPlayer set as default player in my last post it shouldn't happen then ?

The previous post to you I said the reverse DSPlayer as default with just the rules for DVDPlayer

Yes that's right, sorry for confusing things and not reading.

So in conclusion for those I have confused now.

If you have DSPlayer as default player in advancedsettings.xml you only need to add this to playercorefactory.xml to get most video addons to work correctly.

Code:
<playercorefactory>
  <rules action="prepend">
    <rule protocols="daap|rtv|rtsp|rtmp|http|https|rtmpe|rtsp|mms" player="DVDPlayer"/>
  </rules>
</playercorefactory>

Or you can setup everything in playercorefactory if you need some special rules for certain filetypes.


- &gt;&gt;X&lt;&lt; - 2011-09-03

Yeah that's right you only need to override the default player which ever that might be

I only mentioned it as its slightly easier and means less code so less chance of mistakes but either way will work Smile


- Malexx - 2011-09-03

thx >>X<< that did the trick.
Now all is working with perfect setup.
no advanced config,just playercorefactory
VC1 will play with DXVA2
720p will get upscaled with ffdshow
avi will get upscaled with ffdshow
1080 content will be played with ffdshow
and the Video Addons will get played with normal dvdplayer

Code:
<playercorefactory>
  <players>
    <player name="DSPlayer" type="dsplayer" audio="false" video="true">
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="mkv" videocodec="h264" player="DSPlayer"/>
    <rule filetypes="avi|divx" player="DSPlayer"/>
  </rules>
</playercorefactory>

thx for help!


- 0wing - 2011-09-03

The videoresolution="720|1080" attribute doesn't seem to be working for some reason.