<div style="font-size:10pt; font-family:Gulim;"><p>Thanks, Anshul.  </p><p>But, the key point of my question is that I can't update PTS/DTS when H.264 packets are remuxed to MPEGTS. </p><p>Is there any API which generates a new PTS/DTS when H.264 packets are remuxed to MPEGTS ?</p><p style="padding: 0px 0px 0px 10pt; font-family: Gulim,AppleGothic,sans-serif; font-size: 10pt;"><span>-----Original Message-----</span><br><b>From:</b> "Anshul"<anshul.ffmpeg@gmail.com> <br><b>To:</b> "This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter."<libav-user@ffmpeg.org>; <br><b>Cc:</b> <br><b>Sent:</b> 2014-04-10 (목) 23:43:20<br><b>Subject:</b> Re: [Libav-user] Need some help!!!<br><br>"김영환" <wandb>@naver.com> wrote:<br>>Actually, This question may sound be very stupid, but Please understand<br>>me as I'm a novice for FFMPEG. <br>> <br>>My problem is that with already-encoded H.264 frames, I watn to convert<br>>it a TS stream (muxing)<br>>That is, there are some packets encoded in H.264 in memory buffers, and<br>>I want to convert it to a TS stream and save it a file. <br>>As you know, there is no time stamp such as PTS/DTS in H.264, when I<br>>tried, It displays some messages such as no pts. <br>>How can I try to solve this problem?<br>>Actually, I've tried to solve this problem using AVIOContext but only<br>>to fail. <br>> <br>><br>><br>>------------------------------------------------------------------------<br>><br>>_______________________________________________<br>>Libav-user mailing list<br>>Libav-user@ffmpeg.org<br>><a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><br><br><br>You may use file attached at #2716<br><a href="http://trac.ffmpeg.org/ticket/2716">http://trac.ffmpeg.org/ticket/2716</a><br><br>For your requirement, you would notice that output  is also written in buffer. So u might want to change that.<br><br>An example muxing.c which comes with ffmpeg src can be refrenced for knowing how to output in file.<br><br>-Anshul<br><br>Top post are considered rude in this mailing list.<br><br>_______________________________________________<br>Libav-user mailing list<br>Libav-user@ffmpeg.org<br><a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a> </p></div>
<table style="display:none"><tr><td><img src="http://mail.naver.com/readReceipt/notify/?img=HPbsM435MBb9pAUqKq2YaA00FqioMqEXF6MZp4t9MrpoFo2dM6kgMX%2B0Mour74lR74lcWNFlbX30WLloWrdQarwGM4Jr7BkqpBigp4pRbzkN74eZpm%3D%3D.gif" border="0"></td></tr></table>