<div style>Thanks very much for your assistance!</div><div style><br></div><div style><span style="color:rgb(0,0,0);font-family:arial;font-size:small">I do the "H264VideoRTPSource -> H264VideoFileSink -> </span><span style="background-color:transparent">testH264VideoToTransportStream</span><span style="color:rgb(0,0,0);font-family:arial;font-size:small">" test and yes, VLC can play the </span><span style="background-color:transparent">generated file successful.</span></div>
<div style><span style="color:rgb(255,0,0);font-family:arial;font-size:small"><br></span></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
<div style="font-family:Calibri;font-size:16px"><font color="#3366ff" style="background-color:rgb(255,255,255)"><span style="font-family:arial;font-size:small">This *should* work, with one modification: You will need to add a 'start code' (i.e., 0x00 0x00 0x00 0x01) before each NAL unit that comes out of the "H264VideoRTPSource". You will need to do this - using a separate filter class (that you would write) - before you feed the output into a "</span><span style="font-family:arial;font-size:small">MPEG2TransportStreamFromESSour</span><span style="font-family:arial;font-size:small">ce".</span></font></div>
</blockquote><div style><span style="color:rgb(0,0,0);font-family:arial;font-size:small"><br></span></div><div style>when I try to follow your suggestion, I found it's too hard for me to write such a filter class. I tried to implement a new subclass of "FramedFilter", but don't know what virtual functions should I overridden to insert the start code at each NALU's head just as "H264VideoFileSink::afterGettingFrame1()" does. </div>
<div style><br></div><div style>Is there any example or test program I can refer to? Could you give me any suggestion on this matter? </div>