[Libav-user] avformat_open_input - remaining data
Fabrice Alcindor
fabrice.alcindor at gmail.com
Tue Oct 21 14:54:00 CEST 2014
Hi all,
I'm still facing my issue. To help understanding my issue here a
reformulation of my previous question:
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.
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?
Thanks in advance,
Fabrice
2014-10-14 15:32 GMT+02:00 Fabrice Alcindor <fabrice.alcindor at gmail.com>:
> Hi,
>
> 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 AVFormatContext or AVIOContext. Maybe
> AVIOContext::buf_ptr
> <http://www.ffmpeg.org/doxygen/2.2/structAVIOContext.html#a3500915a7434270c42dffc80fafffa2d>
> ?
>
> Thanx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20141021/23e999d6/attachment.html>
More information about the Libav-user
mailing list