MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2007-08-17, 17:45   #111 (permalink)
Portal Tester
 
Join Date: Aug 2006
Location: Denmark
Age: 33
Posts: 304
Thanks: 8
Thanked 14 Times in 12 Posts

Country:

My System

Default

Quote:
Originally Posted by tourettes View Post
Could you test the subtitle delay issue (after pause & seeking) with following MP core.dll?
Pausing works! Seeking still causes delay.

Regards
Seidelin
Seidelin is offline   Reply With Quote
Old 2007-08-17, 17:57   #112 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,646
Thanks: 69
Thanked 66 Times in 55 Posts


Default

Quote:
Originally Posted by Seidelin View Post
Quote:
Originally Posted by tourettes View Post
Could you test the subtitle delay issue (after pause & seeking) with following MP core.dll?
Pausing works! Seeking still causes delay.
Thanks... so they must be coming from the different issues then. The pause issue seemed to come from the fact that MP was not too "snappy" at updating the playback position.

I'll try to find the cause for the seeking issue. Unfortunately it's much harder as pausing was easy to testi with MP & VLC running simultaneuos, but getting both players to seek to same point is almost impossible
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is offline   Reply With Quote
Old 2007-08-17, 18:20   #113 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,646
Thanks: 69
Thanked 66 Times in 55 Posts


Default

Seidelin, could you this attached TsReader.ax? I disabled some video & audio related timestamp compensation. Hopefully it helps in the seeking delay. If it helps then I have to adjust the delay inside the subtitle filter according to the video delay...

Please don't use this filter version to anything else as the change I did will most likely introduce some issues.
Attached Files
File Type: zip TsReader.zip (147.8 KB, 8 views)
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is offline   Reply With Quote
Old 2007-08-17, 19:57   #114 (permalink)
Portal Tester
 
Join Date: Aug 2006
Location: Denmark
Age: 33
Posts: 304
Thanks: 8
Thanked 14 Times in 12 Posts

Country:

My System

Default

Quote:
Originally Posted by tourettes View Post
Seidelin, could you this attached TsReader.ax? I disabled some video & audio related timestamp compensation. Hopefully it helps in the seeking delay. If it helps then I have to adjust the delay inside the subtitle filter according to the video delay...

Please don't use this filter version to anything else as the change I did will most likely introduce some issues.
It solved the issue.

Regards
Seidelin
Seidelin is offline   Reply With Quote
Old 2007-08-18, 19:47   #115 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,646
Thanks: 69
Thanked 66 Times in 55 Posts


Default

First post update. Version 5 available.

- Fixed pausing playback causing the subtitle timing to go off
- Fixed seeking causing the subtitle timing to go off
- Fixed channel changing was not resetting the subtitle cache on MP side (subtitles could be displayed on wrong channel)
- Adjusted the maximum subtitle timeout (now it's 5 seconds)
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is offline   Reply With Quote
Old 2007-08-19, 00:38   #116 (permalink)
Portal Tester
 
Join Date: Aug 2006
Location: Denmark
Age: 33
Posts: 304
Thanks: 8
Thanked 14 Times in 12 Posts

Country:

My System

Default

Quote:
Originally Posted by tourettes View Post
First post update. Version 5 available.

- Fixed pausing playback causing the subtitle timing to go off
- Fixed seeking causing the subtitle timing to go off
- Fixed channel changing was not resetting the subtitle cache on MP side (subtitles could be displayed on wrong channel)
- Adjusted the maximum subtitle timeout (now it's 5 seconds)
Multi-seat works flawlessly. Tested for many hours. Single seat shows an issue with freezing subtitle, and subtitles not showing for some time or until a seek is performed. Subtitle timing is perfect.

Logs attached.

Regards
Seidelin
Attached Files
File Type: zip Dissappearing and freezing subtitles in singleseat.zip (113.0 KB, 3 views)
Seidelin is offline   Reply With Quote
Old 2007-08-19, 00:46   #117 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,646
Thanks: 69
Thanked 66 Times in 55 Posts


Default

Quote:
Originally Posted by Seidelin View Post
Quote:
Originally Posted by tourettes View Post
First post update. Version 5 available.

- Fixed pausing playback causing the subtitle timing to go off
- Fixed seeking causing the subtitle timing to go off
- Fixed channel changing was not resetting the subtitle cache on MP side (subtitles could be displayed on wrong channel)
- Adjusted the maximum subtitle timeout (now it's 5 seconds)
Multi-seat works flawlessly. Tested for many hours. Single seat shows an issue with freezing subtitle, and subtitles not showing for some time or until a seek is performed. Subtitle timing is perfect.
Looks like MP side (SubtitleRenderer.cs) is for some reason not clearing the subtitles...

2007-08-19 01:17:58.687500 [Debug][18]: SubtitleRenderer: Subtitle added, now have 2 subtitles in cache
2007-08-19 01:02:04.125000 [Debug][18]: SubtitleRenderer: Subtitle added, now have 166 subtitles in cache

Dunno why it happens. Maybe Ziphnor has some good guesses?
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is offline   Reply With Quote
Old 2007-08-19, 01:02   #118 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,646
Thanks: 69
Thanked 66 Times in 55 Posts


Default

...next SVN MediaPortal build should contain some more debug info... Please try to reproduce the issue with it.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is offline   Reply With Quote
Old 2007-08-19, 01:14   #119 (permalink)
Portal Developer
 
ziphnor's Avatar
 
Join Date: Aug 2005
Location: Copenhagen
Age: 29
Posts: 709
Thanks: 0
Thanked 9 Times in 6 Posts

Country:

My System

Default

Quote:
Originally Posted by tourettes View Post
Looks like MP side (SubtitleRenderer.cs) is for some reason not clearing the subtitles...

2007-08-19 01:17:58.687500 [Debug][18]: SubtitleRenderer: Subtitle added, now have 2 subtitles in cache
2007-08-19 01:02:04.125000 [Debug][18]: SubtitleRenderer: Subtitle added, now have 166 subtitles in cache

Dunno why it happens. Maybe Ziphnor has some good guesses?
If the same subtitle is displayed (ie frozen) for ever the most obvious reason ( i suppose ) is confusion as to the current position in the file (or in the present time of the file subtitle, but judging from the log that looks ok ).

It might be a good idea to log player.CurrentPosition as subtitles are added to the cache to see what position the subtitle render believes is current.
ziphnor is offline   Reply With Quote
Old 2007-08-19, 01:32   #120 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,646
Thanks: 69
Thanked 66 Times in 55 Posts


Default

Quote:
Originally Posted by ziphnor View Post
Quote:
Originally Posted by tourettes View Post
Looks like MP side (SubtitleRenderer.cs) is for some reason not clearing the subtitles...

2007-08-19 01:17:58.687500 [Debug][18]: SubtitleRenderer: Subtitle added, now have 2 subtitles in cache
2007-08-19 01:02:04.125000 [Debug][18]: SubtitleRenderer: Subtitle added, now have 166 subtitles in cache

Dunno why it happens. Maybe Ziphnor has some good guesses?
If the same subtitle is displayed (ie frozen) for ever the most obvious reason ( i suppose ) is confusion as to the current position in the file (or in the present time of the file subtitle, but judging from the log that looks ok ).

It might be a good idea to log player.CurrentPosition as subtitles are added to the cache to see what position the subtitle render believes is current.
...well, something like this?

public int OnSubtitle(ref SUBTITLE sub)
{
Log.Debug("OnSubtitle - current position " +player.CurrentPosition);

...that was the debug logging that I added. My assumption is that the current position skips backwards in the TsReader for some odd reason. So this could be related to the seeking issues I and other people are seen with TsReader.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"

Last edited by tourettes; 2007-08-19 at 01:35.
tourettes is offline   Reply With Quote
Reply

Bookmarks

Tags
based, dvb, filter, subtitle, tsreader

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtitle for DVB-s/-t/-c ? Anonymous Improvement Suggestions 27 2008-01-31 22:30
DVB-C subtitle and general quality? Bjur General Talk 4 2007-07-16 11:08
Configuration stops subtitle filter functionality emphatic 0.2.3.0 RC1 and SVN Builds 0 2007-06-17 13:32
DVB-T Danish Subtitle support mail_dkmaste General Support 0 2007-02-25 21:35
DVB subtitle teampirkko Improvement Suggestions 1 2005-05-15 21:38


All times are GMT +1. The time now is 22:22.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress