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
Support
General Support
MP1.2.1: Cannot start graph
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="mm1352000" data-source="post: 886643" data-attributes="member: 82144"><p>Hmmm, problem seems to be that the stream with PID 0x30 (with stream type 0x80) is incorrectly detected as video.</p><p> </p><p>PmtParser.cpp:</p><p>[code] if (stream_type==SERVICE_TYPE_DCII_OR_LPCM && !lpcm_audio_found)</p><p> {</p><p> VideoPid pid;</p><p> pid.Pid=elementary_PID;</p><p> pid.VideoServiceType=SERVICE_TYPE_VIDEO_MPEG2;</p><p> m_pidInfo.videoPids.push_back(pid);</p><p> }[/code]</p><p> </p><p>Obviously this is not a DC II stream, but in that context I don't know if we are able to distinguish properly. Anybody know anything about distinguishing between DC II and DVB MPEG transport streams? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p> </p><p>I can think of two possible "solutions":</p><p>1. Only allow one video PID to be recognised at the PMT parsing stage. Since the rest of the TsReader doesn't seem to support multiple video streams, this would likely be appropriate... although there is still the problem of selecting the correct PID.</p><p>2. TsReader is likely to be encountering DC II streams on a considerably (and increasingly) rarer basis than it would DVB streams... and DC II streams are also unlikely to have 2 video streams. We could prioritise the stream that we *know* is video over the stream that is possibly DC II video by doing the following:</p><p> </p><p>[code] if(stream_type==SERVICE_TYPE_VIDEO_MPEG1</p><p> || stream_type==SERVICE_TYPE_VIDEO_MPEG2</p><p> || stream_type==SERVICE_TYPE_VIDEO_MPEG4</p><p> || stream_type==SERVICE_TYPE_VIDEO_H264 )</p><p> {</p><p> VideoPid pid;</p><p> pid.Pid=elementary_PID;</p><p> pid.VideoServiceType=stream_type;</p><p> [B]m_pidInfo.videoPids.insert(m_pidInfo.videoPids.begin(), pid);[/B]</p><p> }[/code]</p><p> </p><p>Not a particularly "nice" solution, but it works! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p>And in fact, now that I think about it this is exactly the modification that I had in my TsReader to deal with the problem from --><a href="https://forum.team-mediaportal.com/threads/hd-channels-and-some-sd-channels-are-not-working.97296/" target="_blank">this</a><-- thread (similar issue). <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p> </p><p>Tony: the internal discussion about that thread that Rik refers to is --><a href="https://forum.team-mediaportal.com/threads/how-does-mp-handle-programs-with-multiple-video-streams.97310/" target="_blank">here</a><--. Interestingly, <a href="https://forum.team-mediaportal.com/threads/hd-channels-and-some-sd-channels-are-not-working.97296/#post-753429" target="_blank">the sample provided</a> now plays with audio and video (when the above tweak is applied). I think that is a testament to some <strong>great work</strong> that you've done in TsReader. You're a star mate! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite24" alt="(y)" title="Thumbs Up (y)" loading="lazy" data-shortname="(y)" /></p><p>I've now only got one other TS sample to hand that doesn't play correctly in MP...</p><p> </p><p>mm</p></blockquote><p></p>
[QUOTE="mm1352000, post: 886643, member: 82144"] Hmmm, problem seems to be that the stream with PID 0x30 (with stream type 0x80) is incorrectly detected as video. PmtParser.cpp: [code] if (stream_type==SERVICE_TYPE_DCII_OR_LPCM && !lpcm_audio_found) { VideoPid pid; pid.Pid=elementary_PID; pid.VideoServiceType=SERVICE_TYPE_VIDEO_MPEG2; m_pidInfo.videoPids.push_back(pid); }[/code] Obviously this is not a DC II stream, but in that context I don't know if we are able to distinguish properly. Anybody know anything about distinguishing between DC II and DVB MPEG transport streams? :D I can think of two possible "solutions": 1. Only allow one video PID to be recognised at the PMT parsing stage. Since the rest of the TsReader doesn't seem to support multiple video streams, this would likely be appropriate... although there is still the problem of selecting the correct PID. 2. TsReader is likely to be encountering DC II streams on a considerably (and increasingly) rarer basis than it would DVB streams... and DC II streams are also unlikely to have 2 video streams. We could prioritise the stream that we *know* is video over the stream that is possibly DC II video by doing the following: [code] if(stream_type==SERVICE_TYPE_VIDEO_MPEG1 || stream_type==SERVICE_TYPE_VIDEO_MPEG2 || stream_type==SERVICE_TYPE_VIDEO_MPEG4 || stream_type==SERVICE_TYPE_VIDEO_H264 ) { VideoPid pid; pid.Pid=elementary_PID; pid.VideoServiceType=stream_type; [B]m_pidInfo.videoPids.insert(m_pidInfo.videoPids.begin(), pid);[/B] }[/code] Not a particularly "nice" solution, but it works! ;) And in fact, now that I think about it this is exactly the modification that I had in my TsReader to deal with the problem from -->[URL='https://forum.team-mediaportal.com/threads/hd-channels-and-some-sd-channels-are-not-working.97296/']this[/URL]<-- thread (similar issue). :D Tony: the internal discussion about that thread that Rik refers to is -->[URL='https://forum.team-mediaportal.com/threads/how-does-mp-handle-programs-with-multiple-video-streams.97310/']here[/URL]<--. Interestingly, [URL='https://forum.team-mediaportal.com/threads/hd-channels-and-some-sd-channels-are-not-working.97296/#post-753429']the sample provided[/URL] now plays with audio and video (when the above tweak is applied). I think that is a testament to some [B]great work[/B] that you've done in TsReader. You're a star mate! (y) I've now only got one other TS sample to hand that doesn't play correctly in MP... mm [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
MP1.2.1: Cannot start graph
Contact us
RSS
Top
Bottom