<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div lang="FR" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-US" style="font-family: Arial, sans-serif;">I am trying to see what could be done with the Transport Stream Muxer provided by live555.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-US" style="font-family: Arial, sans-serif;">Starting from the sample testH264VideoToTransportStream.cpp, it seems simple, adding a H264VideoStreamFramer in a MPEG2TransportStreamFromESSource and connect the MPEG2TransportStreamFromESSource to a Sink. Well.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-US" style="font-family: Arial, sans-serif;"> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="EN-US" style="font-family: Arial, sans-serif;">But our custom FramedSource provide data NAL unit per NAL unit, then :<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -18pt;"><span lang="EN-US" style="font-family: Arial, sans-serif;"><span>-<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';"> <span class="Apple-converted-space"> </span></span></span></span><span dir="LTR"></span><span lang="EN-US" style="font-family: Arial, sans-serif;">the implementation of H264VideoStreamFramer using its internal buffer of BANK_SIZE overflow.</span></div></div></div></blockquote><div><br></div>If your "FramedSource" subclass delivers discrete NAL units (i.e., one NAL unit at a time), then you *must* use a "H264VideoStreamDiscreteFramer", not a "H264VideoStreamFramer"!</div><div><br><blockquote type="cite"><div lang="FR" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -18pt;"><span lang="EN-US" style="font-family: Arial, sans-serif;"><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -18pt;"><span lang="EN-US" style="font-family: Arial, sans-serif;"><span>-<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';"> <span class="Apple-converted-space"> </span></span></span></span><span dir="LTR"></span><span lang="EN-US" style="font-family: Arial, sans-serif;">the implementation of H264VideoStreamDiscreteFramer works but H264 start code will not added to the muxed transport stream.</span></div></div></div></blockquote><div><br></div></div>"H264VideoStreamFramer::createNew()" includes an optional parameter "includeStartCodeInOutput" (default value: False). This parameter is currently not in "H264VideoStreamDiscreteFramer::createNew()". That was an oversight. In the next release of the software, I'll add that (optional) parameter to "H264VideoStreamDiscreteFramer::createNew()". Then you'll be able to feed your "FramedSource" subclass into a "H264VideoStreamDiscreteFramer" (with "includeStartCodeInOutput": True), and then into a "MPEG2TransportStreamFromESSource", etc.<br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>