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)



- therealjoeblow - 2010-06-10

(deleted - I was totally wrong here)

Cheers
The REAL Joe


- hsinchu308 - 2010-06-10

tiben20 Wrote:can you provide a sample for this file

Hi Tiben,

Thanks. I tried to provide you with a sample by cutting the file from 290 MB to about 10 MB (8 secs of video), but then dsplayer does not have any problem loading the sample. I tried again with reducing the file size to 73 MB but again dsplayer loads the file just fine.

Anyway, I've uploaded the entire file to here if you still want to take a look:
http://rapidshare.com/files/397173100/M2U00181.MPG.html

In the mean time I'll try to find you a smaller file.

Regards,


- therealjoeblow - 2010-06-10

(deleted - I'm having some problems, but described them wrong so have to start over tomorrow)

Cheers
The REAL Joe


- oldpainless - 2010-06-10

Right, still testing, but changing MPC's error recognition from carefull to very agressive has fixed the juddery playback.

K

UPDATE - spoke too soon!


- blinkseb - 2010-06-10

therealjoeblow Wrote:(deleted - I was totally wrong here)

Cheers
The REAL Joe

I've read your post before you edit it. I just want to add something very important for everyone :

First, read a little about XML : http://www.w3schools.com/xml/default.asp

Second, _always_ use an XML editor to avoid errors, like notepad++ (http://notepad-plus-plus.org/). You'll have syntaxic coloration, and the, you'll see when you edit XML in comments :p


- zilexa - 2010-06-10

blinkseb Wrote:I've read your post before you edit it. I just want to add something very important for everyone :

First, read a little about XML : http://www.w3schools.com/xml/default.asp

Second, _always_ use an XML editor to avoid errors, like notepad++ (http://notepad-plus-plus.org/). You'll have syntaxic coloration, and the, you'll see when you edit XML in comments :p

For the same reason I replaced notepad.exe file in Windows and system32 directory for Notepad2. It's not as good as a real editor like Notepad++, but more then enough for reading txt and most script/code and for doing little editing. Should be default in Windows.


- tiben20 - 2010-06-10

hsinchu308 Wrote:Hi Tiben,

Thanks. I tried to provide you with a sample by cutting the file from 290 MB to about 10 MB (8 secs of video), but then dsplayer does not have any problem loading the sample. I tried again with reducing the file size to 73 MB but again dsplayer loads the file just fine.

Anyway, I've uploaded the entire file to here if you still want to take a look:
http://rapidshare.com/files/397173100/M2U00181.MPG.html

In the mean time I'll try to find you a smaller file.

Regards,
Its fine i don't need a smaller sample.I got unlimited download and a 10mbit internet connection. I took a look at the sample and the problem is really the mpc mpeg source filter. I can read it with the demuxer i'm actually coding. Every file as a section for private data and this sample has a really really big sequence header over 200 its the first one i see like this. Haali is able to read it and my demuxer is able too so its just a question of time until im done with my demuxer to fix this one.


No Video for MKV w/ Subtitles - hsinchu308 - 2010-06-10

Hi Seb,

With R31004, my Windows 7 x86 machine with Chinese language can no longer play mkv's with subtitles in them - the audio continues but no video, because XBMC GUI stays on the screen. The same mkv plays fine on my XP machine with English language. I've tracked down the problem to line 2110 of DX9AllocatorPresentor.cpp, where the program detects the screen size:

On the Windows 7 machine, a mkv WITHOUT subtitle has the following 2 adjacent debug lines:

13:45:22 T:2976 M:915836928 DEBUG: CEVRAllocatorPresenter::GetMixerThread Render manager configured (FPS: 23.976044)
13:45:22 T:1396 M:887353344 DEBUG: CDX9AllocatorPresenter:Tongueaint Detected screen size : 1920x1080

whereas a mkv WITH subtitles has the following 2 adjacent debug lines:

13:41:42 T:3800 M:860241920 DEBUG: CEVRAllocatorPresenter::GetMixerThread Render manager configured (FPS: 23.976044)
13:41:42 T:2632 M:861757440 DEBUG: Activating window ID: 12005

So it seems the "if (....Get()->SubtitleManager)" statement in DX9AllocatorPresentor.cpp is never entered into, to get the screen size.

Can you please take a look and give me some suggestions? If you want I can put the full debug in the pastin (but it has quite a few of my own debug statements in it.)

PS. On the Win 7 machine, I get the following line:

NOTICE: CStreamsManager::LoadStreams Subtitle stream found : 英文 (美國Wink

Whereas on the XP machine I get for the same file:

NOTICE: CStreamsManager::LoadStreams Subtitle stream found : English (United States)

So your new code for detecting and displaying locality is working nicely, even inside the log file. Cool


- hsinchu308 - 2010-06-10

tiben20 Wrote:Its fine i don't need a smaller sample.I got unlimited download and a 10mbit internet connection. I took a look at the sample and the problem is really the mpc mpeg source filter. I can read it with the demuxer i'm actually coding. Every file as a section for private data and this sample has a really really big sequence header over 200 its the first one i see like this. Haali is able to read it and my demuxer is able too so its just a question of time until im done with my demuxer to fix this one.

Hi Tiben,

Ok, thanks for the help. Does this mean that I can use Haali as a splitter for these MPEG files until your demuxer is ready?


- blinkseb - 2010-06-10

hsinchu308 Wrote:Hi Seb,

With R31004, my Windows 7 x86 machine with Chinese language can no longer play mkv's with subtitles in them - the audio continues but no video, because XBMC GUI stays on the screen. The same mkv plays fine on my XP machine with English language. I've tracked down the problem to line 2110 of DX9AllocatorPresentor.cpp, where the program detects the screen size:

On the Windows 7 machine, a mkv WITHOUT subtitle has the following 2 adjacent debug lines:

13:45:22 T:2976 M:915836928 DEBUG: CEVRAllocatorPresenter::GetMixerThread Render manager configured (FPS: 23.976044)
13:45:22 T:1396 M:887353344 DEBUG: CDX9AllocatorPresenter:Tongueaint Detected screen size : 1920x1080

whereas a mkv WITH subtitles has the following 2 adjacent debug lines:

13:41:42 T:3800 M:860241920 DEBUG: CEVRAllocatorPresenter::GetMixerThread Render manager configured (FPS: 23.976044)
13:41:42 T:2632 M:861757440 DEBUG: Activating window ID: 12005

So it seems the "if (....Get()->SubtitleManager)" statement in DX9AllocatorPresentor.cpp is never entered into, to get the screen size.

Can you please take a look and give me some suggestions? If you want I can put the full debug in the pastin (but it has quite a few of my own debug statements in it.)

PS. On the Win 7 machine, I get the following line:

NOTICE: CStreamsManager::LoadStreams Subtitle stream found : 英文 (美國Wink

Whereas on the XP machine I get for the same file:

NOTICE: CStreamsManager::LoadStreams Subtitle stream found : English (United States)

So your new code for detecting and displaying locality is working nicely, even inside the log file. Cool

Th debug log on XP and 7 may be useful. It seems like the subtitle manager is not initialized, and that's is weird. Maybe it's related to my latest change for the subtitle settings. I think more of a crash than a locale issue, but why not.

hsinchu308 Wrote:Hi Tiben,

Ok, thanks for the help. Does this mean that I can use Haali as a splitter for these MPEG files until your demuxer is ready?

Haali handle these containers :
* Matroska
* MP4
* AVI
* OGG/OGM
* MPEG TS

So you can use it for you mpeg files without any problems Smile


- tiben20 - 2010-06-10

hsinchu308 Wrote:Hi Tiben,

Ok, thanks for the help. Does this mean that I can use Haali as a splitter for these MPEG files until your demuxer is ready?
Yeah like blinkseb just said haali is a really good demuxer the only problem is using compressed file with it. The mpc mpeg splitter as been developed by gabest a long time ago and change into the splitter as been really rare since he left the project.


- fincheresque - 2010-06-10

The most recent build works really well for me.
There are a couple file types that play in DVD player but not in DSplayer, but I'll try a different splitter (haali I would presume).
A little bit of jerkiness on some 1080p videos without any post processing done, but again, I'll do some more fiddling.

Regardless, very awesome.


- >>X<< - 2010-06-10

tiben20 Wrote:Yeah like blinkseb just said haali is a really good demuxer the only problem is using compressed file with it

Just for information only if you mean Rar files theres actually a directshow filter called "RarFileSource" I've used it in the past to open rar files in MPC-HC and Zoom Player while still using Haali Media Splitter

http://www.v12pwr.com/RARFileSource/

I guess its something that would need adding not something the user can just add ?

Just thought I'd mention it


- hsinchu308 - 2010-06-10

tiben20 Wrote:Yeah like blinkseb just said haali is a really good demuxer the only problem is using compressed file with it. The mpc mpeg splitter as been developed by gabest a long time ago and change into the splitter as been really rare since he left the project.

Indeed, using haali I can now open the problematic mpeg file that I sent you.

That said, however, I must tip my hat to gabest, because I performed following stress test: an 80 Mb/sec, 60 fps, MPEG2 file, keeping all settings identical (with DXVA on, so CPU speed is not an issue), except replacing mpegsource/mpegspliiter with haali,

1. gabest: rock-steady 59.94 fps from start to finish. not a single dropped frame, I think.

2. haali: dropped down to 12 fps a few seconds after the start, could barely get above 45 fps for more than a few seconds. (using 64 MByte of cache).

Now I remember why I removed haali a while back - I was having problems playing high bit-rate 720p H.264 camcorder videos with haali, but with MPC-HC's internal splitter I could do it without dropping frames (just barely, because I wasn't using DXVA, only a P4).

Tiben, I hope your demuxer is as faster (or faster) than gabest's, and as versatile as haali's. Big Grin


- hsinchu308 - 2010-06-10

blinkseb Wrote:Th debug log on XP and 7 may be useful. It seems like the subtitle manager is not initialized, and that's is weird. Maybe it's related to my latest change for the subtitle settings. I think more of a crash than a locale issue, but why not.

Hi Seb,

Pastebin for the xbmc debug log, Win 7 (Chinese Lang):
http://pastebin.com/4r346HyE

Pastebin for the xbmc debug log, Win XP (English Lang):
http://pastebin.com/httRrBnV

Thanks.