<div dir="ltr"><div>Hi,<br><br></div><div>I'm working on wrapping two RTP stream source (H264 and AAC-HBR ) into a MPEG Transport stream and then forward it to another 3rd party server. The source and the target are both 3rd party so I don't have control of their expectation of input and output format.<br>
</div><div><br></div><div>The video is working after study the mail list. But I'm not able to find a correct way to convert and feed a correct source into the method MPEG2TransportStreamFromESSource::addNewAudioSource().<br>
<br></div><div>My code pieces looks like:<br><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div>MPEG2TransportStreamFromESSource *pTS = MPEG2TransportStreamFromESSource::createNew(env);<br>
InsertH264StartCodeFilter *pVdoFilter = InsertH264StartCodeFilter::createNew(env, H264VideoRTPSource);<br>pTS->addNewVideoSource(pVdoFilter, 5);<br></div><div>pTS->addNewAudioSource(MPEG4GenericRTPSource, 4);<br></div>
</blockquote><div><br></div><div>MPEG4GenericRTPSource seems not proper source for addNewAudioSource here. But I couldn't figure out how to convert it correctly.<br></div><div><br></div><div>The SDP of audio part looks like:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr">m=audio 0 RTP/AVP 97
<br>b=AS:1000
<br>a=rtpmap:97 MPEG4-GENERIC/48000/2
<br>a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1190
<br>a=control:track2</div></blockquote><br></div><div>Would you provide some hint how can I convert the MPEG4GenericRTPSource into correct data which is good to feed into MPEG2TransportStreamFromESSource::addNewAudioSource()?</div>
<div><br></div><div>Thank you,<br></div>seamxr.<br></div>