Tr, Rgp 19, 2015 at 7:16 , Self User <[email protected]> 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.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user