[Libav-user] Extracting raw data form ffmpeg

Ignas Brašiškis ignas.brasiskis at gmail.com
Wed Aug 19 18:47:01 CEST 2015


Tr, Rgp 19, 2015 at 7:16 , Self User <selfuser at gmail.com> rašė:
> 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:
> 
>     av_register_all();
> 
>     avformat_network_init();
> 
>     avformat_open_input(&m_AvFormatCtx, m_srcName.c_str(), NULL, 
> &opts);
> 
> and from here try to get the buffer endlessl

I think that raw UDP packets can be read with <libavformat/avio.h>
Alternatively you just can use classic system calls to listen data on 
port. On Unix interface is not that difficult.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150819/72039eb7/attachment.html>


More information about the Libav-user mailing list