Kodi Community Forum
[WINDOWS] Internal Directshow Based Player [NO LONGER DEVELOPED] - 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: [WINDOWS] Internal Directshow Based Player [NO LONGER DEVELOPED] (/showthread.php?tid=61355)



- blinkseb - 2010-05-31

>>X<<' Wrote:Sorry if I'm being thick so you are saying we would lose the ability to use other audio video codecs/filters like ffdshow, coreavc etc ?

Don't worry, you'll still have the choice to use whatever codec you want to. You'll just be able to choose the internal filters, just like mpc and his internal filters!


- _Andy_ - 2010-05-31

Sorry for posting this lame stuff. But i´m totaly stuck. i can´t get DSPlayer to play MKVs. My OS ist WinXP SP2. I did a fresh install with drivers only.
Downloaded the latest build (Rev30385-dx)
The KMPlayer plays fine. The dsfilterconfig.xml is default.
Any hints? Thx.

Code:
<rule filetypes="mkv">
  <source filter="mkvsource" />
  <splitter filter="mkvsplitter" />
- <video>
  <video dxva="true" filter="mpcvideodec" />
  <video filter="mpcvideodec" />
  </video>
  <audio filter="ffdaudiodec" />
- <!-- <extra>
        <extra filter="ac3filter" />
        <extra filter="dcgraphiceq" />
      </extra>
  -->
  </rule>

my xbmc.log
Code:
22:46:44 T:2508 M:1483960320  NOTICE: UDP: Listening on port 9777
22:46:45 T:2356 M:1477107712   ERROR: Texture manager unable to load file: special://temp/weather/128x128/34.png
22:47:21 T:2356 M:1481220096 WARNING: Failed to find previously selected audio sink
22:48:03 T:2356 M:1468071936   ERROR: Texture manager unable to load file: special://temp/weather/128x128/34.png
22:48:15 T:2516 M:1471270912  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
22:48:20 T:2356 M:1471328256  NOTICE: Loading filter core factory settings from special://masterprofile/dsfilterconfig.xml.
22:48:20 T:2356 M:1471328256  NOTICE: special://masterprofile/dsfilterconfig.xml does not exist. Skipping.
22:48:20 T:2356 M:1471328256  NOTICE: Loading filter core factory settings from special://xbmc/system/players/dsplayer/dsfilterconfig.xml.
22:48:20 T:2356 M:1471283200  NOTICE: Successfully loaded rules
22:48:20 T:2356 M:1471139840  NOTICE: CFGLoader::InsertAudioRenderer Successfully added "Default DirectSound Device" to the graph
22:48:20 T:2356 M:1469681664  NOTICE: CFGLoader::InsertFilter Successfully added "MKV Source" to the graph
22:48:20 T:2356 M:1469366272  NOTICE: CFGLoader::InsertSourceFilter Successfully loaded file in the splitter
22:48:20 T:2356 M:1466871808  NOTICE: CFGLoader::InsertFilter Successfully added "MPC Video Decoder" to the graph
22:48:20 T:2356 M:1463779328  NOTICE: CFGLoader::InsertFilter Successfully added "ffdshow audio decoder" to the graph
22:48:21 T:2356 M:1368346624  NOTICE: CDSConfig::LoadPropertiesPage "ffdshow audio decoder" expose ISpecifyPropertyPages
22:48:21 T:2356 M:1368346624  NOTICE: CDSConfig::LoadPropertiesPage "MPC Video Decoder" expose ISpecifyPropertyPages
22:48:21 T:2356 M:1367674880  NOTICE: CStreamsManager::LoadStreams Audio stream found : English
22:48:21 T:2356 M:1367674880  NOTICE: CStreamsManager::LoadStreams Audio stream found : Audio 02
22:48:21 T:2356 M:1367670784  NOTICE: CStreamsManager::LoadStreams Subtitle stream found : English (United States)
22:48:21 T:2356 M:1363193856  NOTICE: CSubtitleManager::SetSubtitle Successfully changed subtitle stream
22:48:21 T:2356 M:1363193856  NOTICE: CDSGraph::SetFile No chapters found!
22:48:27 T:2356 M:1288327168   ERROR: Texture manager unable to load file: special://temp/weather/128x128/34.png
22:48:31 T:2356 M:1266737152  NOTICE: Storing total System Uptime
22:48:31 T:2356 M:1266839552  NOTICE: Saving settings
22:48:31 T:2356 M:1267167232  NOTICE: stop all
22:48:31 T:2356 M:1267167232  NOTICE: ES: Stopping event server
22:48:31 T:2508 M:1264758784  NOTICE: ES: UDP Event server stopped
22:48:31 T:2356 M:1264812032  NOTICE: stop player
22:48:31 T:2356 M:1265270784  NOTICE: CDSGraph::UnloadGraph Successfully removed "XBMC Null Renderer" from the graph
22:48:31 T:2356 M:1358602240  NOTICE: CDSGraph::UnloadGraph Successfully removed "Xbmc VMR9" from the graph
22:48:31 T:2356 M:1358602240  NOTICE: CDSGraph::UnloadGraph Successfully removed "Default DirectSound Device" from the graph
22:48:31 T:2356 M:1358602240  NOTICE: CDSGraph::UnloadGraph Successfully removed "XBMC Subtitles Pass Thru" from the graph
22:48:31 T:2356 M:1358798848  NOTICE: CDSGraph::UnloadGraph Successfully removed "MPC Video Decoder" from the graph
22:48:31 T:2356 M:1358954496  NOTICE: CDSGraph::UnloadGraph Successfully removed "ffdshow audio decoder" from the graph
22:48:31 T:2356 M:1358954496  NOTICE: CDSGraph::UnloadGraph Successfully removed "MKV Source" from the graph
22:48:31 T:2356 M:1440423936  NOTICE: CDSPlayer::CloseFile DSPlayer is now closed
22:48:31 T:2356 M:1446797312  NOTICE: stop sap announcement listener
22:48:31 T:2356 M:1446797312  NOTICE: clean cached files!
22:48:31 T:2356 M:1446797312  NOTICE: unload skin
22:48:31 T:2356 M:1468833792  NOTICE: stop python
22:48:31 T:2356 M:1468833792  NOTICE: stopped
22:48:31 T:2356 M:1468833792  NOTICE: destroy
22:48:31 T:2356 M:1469386752  NOTICE: unload sections



- &gt;&gt;X&lt;&lt; - 2010-05-31

blinkseb Wrote:Don't worry, you'll still have the choice to use whatever codec you want to. You'll just be able to choose the internal filters, just like mpc and his internal filters!

ok many thanks for the clarification Smile


- tiben20 - 2010-05-31

>>X<<' Wrote:ok many thanks for the clarification Smile
Anyway just for the fact with the number of hours i spent on making the current filters loading system when i started the project, i would be stupid to remove this feature from the project Laugh


- zilexa - 2010-05-31

_Andy_ Wrote:Sorry for posting this lame stuff. But i´m totaly stuck. i can´t get DSPlayer to play MKVs. My OS ist WinXP SP2. I did a fresh install with drivers only.
Downloaded the latest build (Rev30385-dx)
The KMPlayer plays fine. The dsfilterconfig.xml is default.
Any hints? Thx.
Currently, there are (known) issues on xp.


- &gt;&gt;X&lt;&lt; - 2010-06-01

tiben20 Wrote:Anyway just for the fact with the number of hours i spent on making the current filters loading system when i started the project, i would be stupid to remove this feature from the project Laugh

That's what wouldn't have made any sense to me either just wanted to understand where you were heading

I guess its because I've been using it without problems for some time and love they way it works Smile


- hsinchu308 - 2010-06-01

_Andy_ Wrote:Sorry for posting this lame stuff. But i´m totaly stuck. i can´t get DSPlayer to play MKVs. My OS ist WinXP SP2. I did a fresh install with drivers only.
Downloaded the latest build (Rev30385-dx)
The KMPlayer plays fine. The dsfilterconfig.xml is default.
Any hints? Thx.

Code:
<rule filetypes="mkv">
  <source filter="mkvsource" />
  <splitter filter="mkvsplitter" />
- <video>
  <video dxva="true" filter="mpcvideodec" />
  <video filter="mpcvideodec" />
  </video>
  <audio filter="ffdaudiodec" />
- <!-- <extra>
        <extra filter="ac3filter" />
        <extra filter="dcgraphiceq" />
      </extra>
  -->
  </rule>

my xbmc.log
Code:
22:46:44 T:2508 M:1483960320  NOTICE: UDP: Listening on port 9777
22:46:45 T:2356 M:1477107712   ERROR: Texture manager unable to load file: special://temp/weather/128x128/34.png
22:47:21 T:2356 M:1481220096 WARNING: Failed to find previously selected audio sink
22:48:03 T:2356 M:1468071936   ERROR: Texture manager unable to load file: special://temp/weather/128x128/34.png
22:48:15 T:2516 M:1471270912  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
22:48:20 T:2356 M:1471328256  NOTICE: Loading filter core factory settings from special://masterprofile/dsfilterconfig.xml.
22:48:20 T:2356 M:1471328256  NOTICE: special://masterprofile/dsfilterconfig.xml does not exist. Skipping.
22:48:20 T:2356 M:1471328256  NOTICE: Loading filter core factory settings from special://xbmc/system/players/dsplayer/dsfilterconfig.xml.
22:48:20 T:2356 M:1471283200  NOTICE: Successfully loaded rules
22:48:20 T:2356 M:1471139840  NOTICE: CFGLoader::InsertAudioRenderer Successfully added "Default DirectSound Device" to the graph
22:48:20 T:2356 M:1469681664  NOTICE: CFGLoader::InsertFilter Successfully added "MKV Source" to the graph
22:48:20 T:2356 M:1469366272  NOTICE: CFGLoader::InsertSourceFilter Successfully loaded file in the splitter
22:48:20 T:2356 M:1466871808  NOTICE: CFGLoader::InsertFilter Successfully added "MPC Video Decoder" to the graph
22:48:20 T:2356 M:1463779328  NOTICE: CFGLoader::InsertFilter Successfully added "ffdshow audio decoder" to the graph
22:48:21 T:2356 M:1368346624  NOTICE: CDSConfig::LoadPropertiesPage "ffdshow audio decoder" expose ISpecifyPropertyPages
22:48:21 T:2356 M:1368346624  NOTICE: CDSConfig::LoadPropertiesPage "MPC Video Decoder" expose ISpecifyPropertyPages
22:48:21 T:2356 M:1367674880  NOTICE: CStreamsManager::LoadStreams Audio stream found : English
22:48:21 T:2356 M:1367674880  NOTICE: CStreamsManager::LoadStreams Audio stream found : Audio 02
22:48:21 T:2356 M:1367670784  NOTICE: CStreamsManager::LoadStreams Subtitle stream found : English (United States)
22:48:21 T:2356 M:1363193856  NOTICE: CSubtitleManager::SetSubtitle Successfully changed subtitle stream
22:48:21 T:2356 M:1363193856  NOTICE: CDSGraph::SetFile No chapters found!
22:48:27 T:2356 M:1288327168   ERROR: Texture manager unable to load file: special://temp/weather/128x128/34.png
22:48:31 T:2356 M:1266737152  NOTICE: Storing total System Uptime
22:48:31 T:2356 M:1266839552  NOTICE: Saving settings
22:48:31 T:2356 M:1267167232  NOTICE: stop all
22:48:31 T:2356 M:1267167232  NOTICE: ES: Stopping event server
22:48:31 T:2508 M:1264758784  NOTICE: ES: UDP Event server stopped
22:48:31 T:2356 M:1264812032  NOTICE: stop player
22:48:31 T:2356 M:1265270784  NOTICE: CDSGraph::UnloadGraph Successfully removed "XBMC Null Renderer" from the graph
22:48:31 T:2356 M:1358602240  NOTICE: CDSGraph::UnloadGraph Successfully removed "Xbmc VMR9" from the graph
22:48:31 T:2356 M:1358602240  NOTICE: CDSGraph::UnloadGraph Successfully removed "Default DirectSound Device" from the graph
22:48:31 T:2356 M:1358602240  NOTICE: CDSGraph::UnloadGraph Successfully removed "XBMC Subtitles Pass Thru" from the graph
22:48:31 T:2356 M:1358798848  NOTICE: CDSGraph::UnloadGraph Successfully removed "MPC Video Decoder" from the graph
22:48:31 T:2356 M:1358954496  NOTICE: CDSGraph::UnloadGraph Successfully removed "ffdshow audio decoder" from the graph
22:48:31 T:2356 M:1358954496  NOTICE: CDSGraph::UnloadGraph Successfully removed "MKV Source" from the graph
22:48:31 T:2356 M:1440423936  NOTICE: CDSPlayer::CloseFile DSPlayer is now closed
22:48:31 T:2356 M:1446797312  NOTICE: stop sap announcement listener
22:48:31 T:2356 M:1446797312  NOTICE: clean cached files!
22:48:31 T:2356 M:1446797312  NOTICE: unload skin
22:48:31 T:2356 M:1468833792  NOTICE: stop python
22:48:31 T:2356 M:1468833792  NOTICE: stopped
22:48:31 T:2356 M:1468833792  NOTICE: destroy
22:48:31 T:2356 M:1469386752  NOTICE: unload sections

If the symptom is video freezing at the first frame, then I would suggest using the MPCVideoDec.ax from the previous build, or download the latest from xvidvideo.ru (standalone_filters-svnXXXX_x86 inside the column on the right).


- robinsj - 2010-06-01

Does Dsplayer support subtitles inside MKV files? Forced Subs?


DXVA with ArcSoft decoders! (source is Hauppauge HDPVR 1212) - ajp8164 - 2010-06-01

Hi all -

First off... great, awesome enhancement to XBMC! I looked at going with XBMC over MP a few years ago and not having dxva support was a deciding factor for me to go with MP; that and no TV/PVR support in XBMC. Since both are moving ahead very well I am now re-looking at XBMC..

I have installed XBMCSetup-Rev30385-dx.exe and I have to say, it works pretty darn great! The only thing I did to get hardware acceleration was to add my video and audio codecs to the dsfilterconfig.xml. Added ArcSoft audio and video decoders, modified the rule for use by .ts files and it worked first time. Took my cpu usage down from 50-60% to 8-16%. Also verified connections and properties with GraphStudio. I get 59+ fps of 720p with an idle cpu!

I have noticed something in the video rendering though. When I have a graphic overlay (the info OSD, of the debug data for instance) turned on the video starts to flicker or tear. It's not continuous but sometimes it's so bad you don't want to watch it. Removing the OSD and cycling pause/play eliminates the problem. I'm pretty sure this only occurs when an OSD is rendered because I watched 30 minutes of video without and OSD and had no problems, I watched less than 5 minutes with the OSD (same video source) and notice the problem. Is this a known issue?

Setup: XP Pro sp3, 2GB RAM, AMD 5050e, ATI3200HD, source h.264 is Hauppauge HDPVR 1212 connected to Directv H21 at 720p.

Thanks for great work!

-Andy


- robinsj - 2010-06-01

Just compiled the latest build and so far its great. I have a h55-itx board with a i3 cpu, and a ATI 5450 card. At first a was seeing some slight "stutter", which was only really noticeable if you really concentrated to see it. Then I saw the post about the dsrenderersettings file with Vsync disabled and I tried it... and its gone.... plays smooth now. Played avatar in a mkv file that is uncompressed which bitrates can get pretty high.

I used MakeMKV to build it from the bluray, and included the subs, but I still can't get subs to play. If I use mkvsource/mkvsplitter then it doesn't even show there is a sub. If I change it to haali/haali for the splitter and source and play it, then it shows there are subs available but I don't get anything on screen.

Is there something else I should be doing/trying?


- robinsj - 2010-06-01

Okay, so been doing some more testing. If you don't want any of this info, just let me know and I will not post it anymore.

Setup: Windows 7, Zotac H55-ITX, i3-530 cpu, ati 5450 with 10.5 drivers.

I have never gotten video to display using dvdplayer, which to me is fine because I am not using this dsplayer version to use dvdplayer. But I do get audio, and then Forced PGS subs that are inside the MKV play also. So no video, but do get audio and Forced PGS subs with playing with dvdplayer.

With Dsplayer I get HD audio passthrough, Video, but no subs, in fact, it doesn't even show that there is subtitles available.

I don't really know to much about filters, and decoders and splitters. But whatever dvdplayer is using, is seeing the subs inside the mkv file, dsplayer is not.

Anyway Dsplayer is AWESOME. When I bring up the on screen display, on my 40gb MKV of Avatar, cpu usage maybe gets to 5-6%.... All other MKVs I have tested that are around the 10-15gb mark, cpu usage is around 2-3%...


- _Andy_ - 2010-06-02

with the help of hsinchu308 i got some mkvs to work. fine.
I guess i tested with a crapy file.

I have a question about the filter chain. i have a file xxx.mkv. if i open with kmplayer the file plays fine. In the setup of kmplayer i have the following:
Spliter: KMP Matroska Spliter
Video decoder: Core AVC.

With graphstudio i connected the coredecoder to the hali splitter and the decoder output to the video renderer.

but the video doesn´t play. so i assume the error is the splitter or the video renderer. am i right?

how can i solve this chain?


- &gt;&gt;X&lt;&lt; - 2010-06-02

_Andy_ Wrote:with the help of hsinchu308 i got some mkvs to work. fine.
I guess i tested with a crapy file.

I have a question about the filter chain. i have a file xxx.mkv. if i open with kmplayer the file plays fine. In the setup of kmplayer i have the following:
Spliter: KMP Matroska Spliter
Video decoder: Core AVC.

With graphstudio i connected the coredecoder to the hali splitter and the decoder output to the video renderer.

but the video doesn´t play. so i assume the error is the splitter or the video renderer. am i right?

how can i solve this chain?

Have you checked the Wiki "Using Haali Media Splitter for mkv"

If you use Haali Media Splitter and CoreAVC it should work fine I did this for someone without issue on an asrock ion but you must use the latest nvidia drivers or you don't get the benefit of CUDA


- Handa - 2010-06-03

nvm


- hsinchu308 - 2010-06-03

blinkseb Wrote:Well, there's no font size calculation for ASS/SSA subtitles. Font-size in point is specified directly in the file, and used without changes. (See line 1410 in STS.cpp (project 'subtitles'). I'll look at it tuesday!

EDIT: I had a look, and it seems that's subtitles font size didn't match between dsplayer and dvdplayer. I've tried with an old south park episode, and dsplayer was too small. Damn! If you want to test it more, you're more than welcome :p



It seems that there're some issues with mpc video dec.

The auto refresh rate is labeled 'Adjust display refresh rate to match video'. It works fine on Vista+, but apparently not on XP. Please disable it if it's activated!

Hi Seb,

I did some more investigation of the font size issue in dsplayer and discovered another problem (as well as the solution, which will fix the problem with the SSA subtitle font size as well). Previously I said that font size for plain text subtitles is matched between dsplayer and dvdplayer, after the last revision r30385. However, this is not true if you are not using the default Windows display setting of 96 dpi. When I switched to 144 dpi (150%) in Windows, the font size for plain text subtitles is again much bigger in dsplayer, but unchanged in dvdplayer.

The solution: (I hope you don't mind me posting it here but the change is only a few characters):

1. Remove the "//" at the start of line 47 of RTS.cpp (// lf.lfHeight = (LONG)(style.fontSize + 0.5);

2. In line 787 of StreamManager.cpp, change 27.1 / 72.0 to 50.0 / 72.0.

These two changes will make it so that font size in dsplayer the same regardless of Windows display dpi setting (in addition to screen resolution), just like dvdplayer.

Also, this will make the font size for SSA subtitles the same between dsplayer and MPC-HC, in full screen (dsplayer font size was about 50% bigger than MPC-HC's before the change). However, it will not make the font size for SSA subtitles the same between dsplayer and dvdplayer, because dvdplayer ignores the font size, font name, etc. of SSA subtitles (though it will make the font size difference between dsplayer and dvdplayer much smaller than before Laugh).

Regard,