[Libav-user] Extracting raw data form ffmpeg

Self User selfuser at gmail.com
Wed Aug 19 18:16:43 CEST 2015

Hi all,

I am using c++ under redhat/ubuntu OS.

I asked in the past about extracting the TS packets (mpeg TS packets 188
bytes each)

as I understood from the answers I got, there is no API for that in the
ffmpeg package.

So, trying to get them indirectly...

Is there any way in the ffmpeg package to take the raw data that comes from
the UDP source (or other source) - means the pure origin data as it comes -
and I will parse it myself (find the 0x47 header and from there extract
what I need)

I am meaning something like:



    avformat_open_input(&m_AvFormatCtx, m_srcName.c_str(), NULL, &opts);

and from here try to get the buffer endlessly

while (1)
    read raw buffer() - that is actually what I need from ffmpeg API.
    check 0x47
    parse TS packet

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150819/0b59d4d5/attachment.html>

More information about the Libav-user mailing list