<div dir="ltr">Hi all,<div><br></div><div>I am using c++ under redhat/ubuntu OS.</div><div><br></div><div>I asked in the 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 endlessly</div><div><br></div><div>while (1)</div><div>{</div><div><font color="#ff0000">    read raw buffer() - that is actually what I need from ffmpeg API.</font></div><div>    check 0x47</div><div>    parse TS packet</div><div>}</div><div><br></div><div>Thanks</div><div><br></div><div><br></div></div>