<div dir="ltr"><span style="color:rgb(51,51,51);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.200000762939453px;background-color:rgb(225,235,242)">Hi </span><br style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.200000762939453px;background-color:rgb(225,235,242)">
<span style="color:rgb(51,51,51);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.200000762939453px;background-color:rgb(225,235,242)">I'm trying to put H264/H265 videos in the Transport Stream by the FFMPEG API, </span><span style="color:rgb(51,51,51);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.200000762939453px;background-color:rgb(225,235,242)">especially livavformat. </span><br style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.200000762939453px;background-color:rgb(225,235,242)">
<span style="color:rgb(51,51,51);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.200000762939453px;background-color:rgb(225,235,242)">At first I had the error "first pts value must be set"; but after setting the pts value equal to the dts value, I have not seen it any more. But here is my question: how do we set the correct PTS value? I'm thinking about the decoding function in order to get the right PTS value but how can I call these functions in the Transport Stream multiplexing part in FFMPEG? </span><div>
<br style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.200000762939453px;background-color:rgb(225,235,242)">
<span style="color:rgb(51,51,51);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.200000762939453px;background-color:rgb(225,235,242)">Thanks a lot for your advice and help!</span><br>
<div><span style="color:rgb(51,51,51);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.200000762939453px;background-color:rgb(225,235,242)"><br></span></div>
<div><span style="color:rgb(51,51,51);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.200000762939453px;background-color:rgb(225,235,242)"><br></span></div>
</div></div>