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="gibman" data-source="post: 314195" data-attributes="member: 25430"><p>thx.</p><p></p><p>look at;</p><p></p><p>private void AudioVideoEventHandler(PidType pidType)</p><p>{</p><p> Log.Info("audioVideoEventHandler {0}", pidType);</p><p> // we are only interested in video and audio PIDs</p><p> if( pidType == PidType.Audio )</p><p> {</p><p> _eventAudio.Set();</p><p> }</p><p></p><p> if (pidType == PidType.Video)</p><p> {</p><p> _eventVideo.Set();</p><p> }</p><p>}</p><p></p><p></p><p>it seems like only the audio event seen event is being caught by c# code.</p><p></p><p>are u able to compile the c++ filters ?</p><p></p><p>in tswriter.cpp</p><p></p><p>STDMETHODIMP CMpTs:<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" />etVideoAudioObserver(int handle, IVideoAudioObserver* callback)</p><p>{</p><p> CTsChannel* pChannel=GetTsChannel(handle);</p><p> if (pChannel==NULL) return S_FALSE;</p><p> pChannel->m_pTimeShifting->SetVideoAudioObserver(callback);</p><p> return S_OK;</p><p>}</p><p></p><p>It seems like the </p><p> "pChannel->m_pTimeShifting->SetVideoAudioObserver(callback);"</p><p>comes too late, since the first video PID has already been detected.</p><p></p><p>I can see this by looking at tswriter.log</p><p></p><p>13-10-2008 13:41:55.335 Recorder: TIMESHIFT start of video detected</p><p>13-10-2008 13:41:55.350 Recorder: TIMESHIFT SetVideoAudioObserver observer ok</p><p>13-10-2008 13:41:55.397 Recorder: TIMESHIFT start of audio detected</p><p></p><p>so the video is detected but the videoaudioobserver is still not connected, so no events to c# code.</p><p></p><p>then the videoaudioobserver is connected.</p><p>and audio is detected and c# is notified.</p><p></p><p></p><p></p><p></p><p></p><p></p><p>/gibman</p></blockquote><p></p>
[QUOTE="gibman, post: 314195, member: 25430"] thx. look at; private void AudioVideoEventHandler(PidType pidType) { Log.Info("audioVideoEventHandler {0}", pidType); // we are only interested in video and audio PIDs if( pidType == PidType.Audio ) { _eventAudio.Set(); } if (pidType == PidType.Video) { _eventVideo.Set(); } } it seems like only the audio event seen event is being caught by c# code. are u able to compile the c++ filters ? in tswriter.cpp STDMETHODIMP CMpTs::SetVideoAudioObserver(int handle, IVideoAudioObserver* callback) { CTsChannel* pChannel=GetTsChannel(handle); if (pChannel==NULL) return S_FALSE; pChannel->m_pTimeShifting->SetVideoAudioObserver(callback); return S_OK; } It seems like the "pChannel->m_pTimeShifting->SetVideoAudioObserver(callback);" comes too late, since the first video PID has already been detected. I can see this by looking at tswriter.log 13-10-2008 13:41:55.335 Recorder: TIMESHIFT start of video detected 13-10-2008 13:41:55.350 Recorder: TIMESHIFT SetVideoAudioObserver observer ok 13-10-2008 13:41:55.397 Recorder: TIMESHIFT start of audio detected so the video is detected but the videoaudioobserver is still not connected, so no events to c# code. then the videoaudioobserver is connected. and audio is detected and c# is notified. /gibman [/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