[Live-devel] Query on H.264 Streaming out in real-time systems

Ganesh V ganesh_vijayan at yahoo.com
Sun Jun 14 07:23:40 PDT 2009


Dear Experts,

I am currently building a real-time system where in an encoder is connected to a streaming server. The encoded data in H.264 format is streamed out using Livemedia library.

For the same, I have implemented a class which derives FramedSource. In "doGetNextFrame" function of my class, I am transfering data to the buffer provided by Livemedia library which is then sent over network. I have a doubt as below.

I would like to transfer frame after frame (each a slice / NALU). However, in case of IDR/I frames, I get SPS, PPS along with slice. This is to ensure that any receiver connecting at anytime should be able to receive and decode data. However, I can pass only one NALU per call of my doGetNextFrame function call. Hence, to transfer an IDR frame, I require 3 calls to doGetNextFrame. 

This causes buffer management and latency issues in my system. Hence, I would like to know if it possible to send more than one NALU per call of my instance or if there is a way to preempt the call to my doGetNextFrame? If there is an example which provides me some insight into either of the approaches, it would be great.

Thanks in advance for your inputs.

Ganesh


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090614/aebb066c/attachment-0001.html>


More information about the live-devel mailing list