Tr, Rgp 19, 2015 at 7:16 , Self User <selfuser@gmail.com> rašė:<br>
<blockquote type="cite"><div> past about extracting the TS packets (mpeg TS packets 188 bytes each)</div><div><br></div><div>as I understood from the answers I got, there is no API for that in the ffmpeg package.</div><div><br></div><div>So, trying to get them indirectly...</div><div><br></div><div>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)</div><div><br></div><div>I am meaning something like:<br></div><div><br></div><div><div>    av_register_all();</div><div>    </div><div>    avformat_network_init();</div><div>    </div></div><div>    avformat_open_input(&m_AvFormatCtx, m_srcName.c_str(), NULL, &opts);<br></div><div><br></div><div>and from here try to get the buffer endlessl</div></blockquote><br>I think that raw UDP packets can be read with <libavformat/avio.h> <div>Alternatively you just can use classic system calls to listen data on port. On Unix interface is not that difficult.</div>