home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
UnSupported tryout for NoVideoAudio & Scrambled errors.
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="te3hpurp" data-source="post: 314095" data-attributes="member: 82806"><p>I've been looking and testing and testing these annoying NoVideoAudio & Channel is scrambled</p><p>that are popped every now or then. There is also some wreid hangs after channel change,</p><p>when one must manually use skip button to skip to the end of timeshifting before live tv starts</p><p>again. these problems are related to the communication between TsWriter filter and Timeshifter.cs codeblock.</p><p></p><p>When TimeShifter.cs starts to wait for audio video pids in line 587 for radio and for tv in line 607,</p><p>things too often starts to go wrong. This is mainly because, events are not triggered, even when</p><p>tswriter filter sends them, they never arrive to TimeShifter.cs codeblock. very quick&dirty hack is to comment out</p><p>this waiting part and manually reset these events. For me it works. i made this small change and tested it with stress tesing by doing 600 channell changes and i got picture every time, with no errors. It should not affect for detecting scrambled channels, but it's not yet tested. it reduced average zapping time close to 1 second. </p><p>testing was done with FTA channels.</p><p></p><p>Of course In real releases this should be fixed by more sophisticated way. Shoud there be for example a blocking direct function call to filter through interface or what ?, i don't know, but current solution is not performing wery well.</p><p></p><p>// changed in TimeShifter.cs</p><p> //if (isRadio)</p><p> //{</p><p> // Log.Write("card: WaitForTimeShiftFile - waiting _eventAudio");</p><p> // // wait for audio PID to be seen</p><p> // if (_eventAudio.WaitOne(waitForEvent, true))</p><p> // {</p><p> // // start of the video & audio is seen</p><p> // Log.Write("card: WaitForTimeShiftFile - start of audio is seen");</p><p> // _eventVideo.Reset();</p><p> // _eventAudio.Reset();</p><p></p><p> // // give some breathing room for TsReader</p><p> // Thread.Sleep(200);</p><p> // return true;</p><p> // }</p><p> //}</p><p> //else</p><p> //{</p><p> Log.Write("card: WaitForTimeShiftFile - waiting _eventAudio & _eventVideo");</p><p> // block until video & audio PIDs are seen or the timeout is reached</p><p> //if (_eventAudio.WaitOne(waitForEvent, true))</p><p> //{</p><p> // _eventAudio.Reset();</p><p> // if (_eventVideo.WaitOne(waitForEvent, true))</p><p> // {</p><p> // // start of the video & audio is seen</p><p> // Log.Write("card: WaitForTimeShiftFile - start of the video & audio is seen");</p><p> // _eventVideo.Reset();</p><p></p><p> // // give some breathing room for TsReader</p><p> // Thread.Sleep(200);</p><p> // return true;</p><p> // }</p><p> //}</p><p> _eventAudio.Reset();</p><p> _eventVideo.Reset();</p><p> //}</p><p></p><p>added:</p><p> return true; // a teh end of method..... :-(</p><p>regs, </p><p>te3hpurp</p></blockquote><p></p>
[QUOTE="te3hpurp, post: 314095, member: 82806"] I've been looking and testing and testing these annoying NoVideoAudio & Channel is scrambled that are popped every now or then. There is also some wreid hangs after channel change, when one must manually use skip button to skip to the end of timeshifting before live tv starts again. these problems are related to the communication between TsWriter filter and Timeshifter.cs codeblock. When TimeShifter.cs starts to wait for audio video pids in line 587 for radio and for tv in line 607, things too often starts to go wrong. This is mainly because, events are not triggered, even when tswriter filter sends them, they never arrive to TimeShifter.cs codeblock. very quick&dirty hack is to comment out this waiting part and manually reset these events. For me it works. i made this small change and tested it with stress tesing by doing 600 channell changes and i got picture every time, with no errors. It should not affect for detecting scrambled channels, but it's not yet tested. it reduced average zapping time close to 1 second. testing was done with FTA channels. Of course In real releases this should be fixed by more sophisticated way. Shoud there be for example a blocking direct function call to filter through interface or what ?, i don't know, but current solution is not performing wery well. // changed in TimeShifter.cs //if (isRadio) //{ // Log.Write("card: WaitForTimeShiftFile - waiting _eventAudio"); // // wait for audio PID to be seen // if (_eventAudio.WaitOne(waitForEvent, true)) // { // // start of the video & audio is seen // Log.Write("card: WaitForTimeShiftFile - start of audio is seen"); // _eventVideo.Reset(); // _eventAudio.Reset(); // // give some breathing room for TsReader // Thread.Sleep(200); // return true; // } //} //else //{ Log.Write("card: WaitForTimeShiftFile - waiting _eventAudio & _eventVideo"); // block until video & audio PIDs are seen or the timeout is reached //if (_eventAudio.WaitOne(waitForEvent, true)) //{ // _eventAudio.Reset(); // if (_eventVideo.WaitOne(waitForEvent, true)) // { // // start of the video & audio is seen // Log.Write("card: WaitForTimeShiftFile - start of the video & audio is seen"); // _eventVideo.Reset(); // // give some breathing room for TsReader // Thread.Sleep(200); // return true; // } //} _eventAudio.Reset(); _eventVideo.Reset(); //} added: return true; // a teh end of method..... :-( regs, te3hpurp [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
UnSupported tryout for NoVideoAudio & Scrambled errors.
Contact us
RSS
Top
Bottom