Hi Ross,<br><br>in attach my modified transport stream multiplexor to handle h264 stream type ... <br><br>It works for me ... Is this correct ?<br><br>Thanks ...<br><br>Massimo<br><br><br>*** MPEG2TransportStreamMultiplexor.cpp 2009-04-07 04:19:00.000000000 +0200<br>
--- MPEG2TransportStreamMultiplexor.cpp.new     2009-05-27 15:24:43.000000000 +0200<br>***************<br>*** 109,115 ****<br>        // Instead, set the stream&#39;s type to default values, based on whether<br>        // the stream is audio or video, and whether it&#39;s MPEG-1 or MPEG-2:<br>
        if ((stream_id&amp;0xF0) == 0xE0) { // video<br>!       streamType = mpegVersion == 1 ? 1 : mpegVersion == 2 ? 2 : 0x10;<br>        } else if ((stream_id&amp;0xE0) == 0xC0) { // audio<br>        streamType = mpegVersion == 1 ? 3 : mpegVersion == 2 ? 4 : 0xF;<br>
        } else if (stream_id == 0xBD) { // private_stream1 (usually AC-3)<br>--- 109,115 ----<br>        // Instead, set the stream&#39;s type to default values, based on whether<br>        // the stream is audio or video, and whether it&#39;s MPEG-1 or MPEG-2:<br>
        if ((stream_id&amp;0xF0) == 0xE0) { // video<br>!       streamType = mpegVersion == 1 ? 1 : mpegVersion == 2 ? 2 : mpegVersion == 4 ? 0x10 : 0x1B;<br>        } else if ((stream_id&amp;0xE0) == 0xC0) { // audio<br>
        streamType = mpegVersion == 1 ? 3 : mpegVersion == 2 ? 4 : 0xF;<br>        } else if (stream_id == 0xBD) { // private_stream1 (usually AC-3)<br>***************<br>*** 121,127 ****<br>  <br>      if (fPCR_PID == 0) { // set it to this stream, if it&#39;s appropriate:<br>
        if ((!fHaveVideoStreams &amp;&amp; (streamType == 3 || streamType == 4 || streamType == 0xF))/* audio stream */ ||<br>!         (streamType == 1 || streamType == 2 || streamType == 0x10)/* video stream */) {<br>        fPCR_PID = fCurrentPID; // use this stream&#39;s SCR for PCR<br>
        }<br>      }<br>--- 121,127 ----<br>  <br>      if (fPCR_PID == 0) { // set it to this stream, if it&#39;s appropriate:<br>        if ((!fHaveVideoStreams &amp;&amp; (streamType == 3 || streamType == 4 || streamType == 0xF))/* audio stream */ ||<br>
!         (streamType == 1 || streamType == 2 || streamType == 0x10 || streamType == 0x1B)/* video stream */) {<br>        fPCR_PID = fCurrentPID; // use this stream&#39;s SCR for PCR<br>        }<br>      }<br><br>