<div dir="ltr">I join Ajay's question. I found this very old and incomplete example:<div><br></div><div><a href="https://lists.libav.org/pipermail/libav-user/2009-May/003034.html">https://lists.libav.org/pipermail/libav-user/2009-May/003034.html</a><br></div><div><br></div><div>What it does it first decodes h264 from a file and writes it into stream.</div><div>The example has some code that attempts  to setup audio frame but it doesn't mux it into the ts.</div><div><br></div><div>Any pointers how to mux raw h264 bitstream with audio into ts? </div><div><br></div><div>Tnx</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 26, 2017 at 10:33 PM, Ajay Parashar <span dir="ltr"><<a href="mailto:ajay.parasha@gmail.com" target="_blank">ajay.parasha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span style="font-family:sans-serif;font-size:13.696px">Hi,</span><br style="font-family:sans-serif;font-size:13.696px"><br style="font-family:sans-serif;font-size:13.696px"><span style="font-family:sans-serif;font-size:13.696px">I am getting raw h264 encoded frames from one thread of my application in</span><span style="font-family:sans-serif;font-size:13.696px"> a buffer & getting raw PCM data buffer from the second thread.</span><br style="font-family:sans-serif;font-size:13.696px"><span style="font-family:sans-serif;font-size:13.696px">Now i want to create MPEGTS by using ffmpeg APIs in the same application.</span><br style="font-family:sans-serif;font-size:13.696px"><br style="font-family:sans-serif;font-size:13.696px"><span style="font-family:sans-serif;font-size:13.696px">I got many references to create MPEGTS by using static files but did not</span><span style="font-family:sans-serif;font-size:13.696px"> find any info how can i create MPEGTS by using h264 frame buffer and</span><span style="font-family:sans-serif;font-size:13.696px"> PCM data buffer?</span><br style="font-family:sans-serif;font-size:13.696px"><span style="font-family:sans-serif;font-size:13.696px">It would be great if you guys let me know how can i achieve the same.</span><br style="font-family:sans-serif;font-size:13.696px"><br style="font-family:sans-serif;font-size:13.696px"><span style="font-family:sans-serif;font-size:13.696px">Regards</span><span class="HOEnZb"><font color="#888888"><br style="font-family:sans-serif;font-size:13.696px"><font color="#888888" style="font-family:sans-serif;font-size:13.696px">Ajay Parashar</font></font></span></div>
<br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
<br></blockquote></div><br></div>