<div dir="ltr">Hi all,<div><br></div><div>I'm still facing my issue. To help understanding my issue here a reformulation of my previous question:</div><div><br></div><div>It seems that avformat_open_input / av_read_frame only deals with complete video frame. Let me know if i'm wrong. In other hand, my application receives RTP packets that encapsulate  7 TS packets according to wifi-display standard. However, we don't know how many  TS packets containts a full PES neither a full Access unit. </div><div>Actually, my real purpose is to get the payload of the TS packets and demux it according to the PID.  Does libavformat support this simple operation?</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Fabrice</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-14 15:32 GMT+02:00 Fabrice Alcindor <span dir="ltr"><<a href="mailto:fabrice.alcindor@gmail.com" target="_blank">fabrice.alcindor@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>For a streaming application  I would  use data chunk from a buffer using custom I/O. My understanding is that while opening the file with avformat_open_input(), stream is split in packets. However data chunk might not be complete packet. I'm looking for a way to manage remaining data of incomplete packet to ensure continuity of the stream. Is there something related to this in <span style="background-color:rgb(249,250,252);color:rgb(0,0,0);font-family:Roboto,sans-serif;line-height:19px">AVFormatContext or </span><span style="background-color:rgb(249,250,252);color:rgb(0,0,0);font-family:Roboto,sans-serif;line-height:19px">AVIOContext</span><span style="background-color:rgb(249,250,252);color:rgb(0,0,0);font-family:Roboto,sans-serif;line-height:19px">. Maybe </span><span style="background-color:rgb(249,250,252);color:rgb(0,0,0);font-family:Roboto,sans-serif;line-height:19px">AVIOContext::</span><a href="http://www.ffmpeg.org/doxygen/2.2/structAVIOContext.html#a3500915a7434270c42dffc80fafffa2d" style="color:rgb(70,101,162);font-family:Roboto,sans-serif;line-height:19px" target="_blank">buf_ptr</a>?<span style="background-color:rgb(249,250,252);color:rgb(0,0,0);font-family:Roboto,sans-serif;line-height:19px"> </span></div><div><span style="background-color:rgb(249,250,252);color:rgb(0,0,0);font-family:Roboto,sans-serif;line-height:19px"><br></span></div><div><span style="background-color:rgb(249,250,252);color:rgb(0,0,0);font-family:Roboto,sans-serif;line-height:19px">Thanx</span></div></div>
</blockquote></div><br></div>