<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><p class="ecxp1" style="line-height: 21px; margin-bottom: 1.35em; color: rgb(68, 68, 68); font-size: 15px;">I have a TS file that presently includes 3 streams:</p><p class="ecxp1" style="line-height: 21px; margin-bottom: 1.35em; color: rgb(68, 68, 68); font-size: 15px;">1) h264 Video </p><p class="ecxp1" style="line-height: 21px; margin-bottom: 1.35em; color: rgb(68, 68, 68); font-size: 15px;">2) aac audio </p><p class="ecxp1" style="line-height: 21px; margin-bottom: 1.35em; color: rgb(68, 68, 68); font-size: 15px;">3) See Below</p><p class="ecxp2" style="line-height: 21px; margin-bottom: 1.35em; color: rgb(68, 68, 68); font-size: 15px;"><br></p><p class="ecxp1" style="line-height: 21px; margin-bottom: 1.35em; color: rgb(68, 68, 68); font-size: 15px;">The third stream contains some data that is being presented in ID3 format.  The stream has a stream-ID of 0xBD (stream type private??). There are several packets (e.g. 5) of this type spread throughout the file, each with it own PTS.  </p><p class="ecxp1" style="line-height: 21px; margin-bottom: 1.35em; color: rgb(68, 68, 68); font-size: 15px;"><br></p><p class="ecxp1" style="margin-bottom: 1.35em;">







<p class="p1" style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21px;">"avformat_open_input()" does not identify (unknown type) this third stream and "avformat_find_stream_info()" guesses it is an audio mp3 stream. Since I know the stream is data, I have tried overriding the stream type to AVMEDIA_TYPE_NB, AVMEDIA_TYPE_DATA, and AVMEDIA_TYPE_ATTACHMENT. I do not need a decoder for this stream since I can see the data in the packets returned from "av_read_frame()" and I can decode the data myself, however there is a problem that appears regardless my stream type overrides:</p>







<p class="p1" style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21px;"><br></p><p class="p1" style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21px;">"av_read_frame" seems to be saving up the data from all 5 of the packets and presenting them all to me as one packet with the PTS of the first one.  I would really like each of the packets in the file to return from "av_read_frame()" individually, each with its own PTS. </p><p class="p1" style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21px;"><br></p><p class="p1"><font color="#444444"><span style="font-size: 15px; line-height: 21px;">Does anyone know why av_read_frame() might be concatenating data packets and consolidating them into a single packet?</span></font></p><p class="p1"><font color="#444444"><span style="font-size: 15px; line-height: 21px;"><br></span></font></p><p class="p1"><font color="#444444"><span style="font-size: 15px; line-height: 21px;">Thank You,</span></font></p><p class="p1"><font color="#444444"><span style="font-size: 15px; line-height: 21px;">This has been a hard one for me.</span></font></p>















</p>                                        </div></body>
</html>