OK, gotten further with this after reading this thread - <a href="http://www.mail-archive.com/libav-user@mplayerhq.hu/msg01250.html">http://www.mail-archive.com/libav-user@mplayerhq.hu/msg01250.html</a><br><br>However, I am getting this "non monotone timestamps" error when running it.<br>
<br>I don't really understand the details of the PTS/DTS problem that is apparently causing this.  One solution suggested:<br><br>> I track 33th bit and add it by myself when it becomes 0. After this, I
subtract the first DTS value.<br><br>Any chance someone could fill in the details here?<br><br>Thanks,<br>Th<br><br><div class="gmail_quote">On Sun, Jun 5, 2011 at 7:03 PM, th exterit <span dir="ltr"><<a href="mailto:thexterit@gmail.com">thexterit@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi there.<br><br>I am trying to convert a transport stream to a program stream using the ffmpeg libs.<br><br>I have been following this tutorial - <a href="http://dranger.com/ffmpeg" target="_blank">http://dranger.com/ffmpeg</a> - but can't seem to see how I can do what I want.  <br>

It should be relatively straight forward using the libs. I presume I can just rely on the libraries to take the PES packets out of the TS for me? <br>And then how do I assemble it to a PS at the end?<br><br>Thanks,<br><font color="#888888">Th<br>

</font></blockquote></div><br>