[Live-devel] H264DiscreteFramer from custom source
James Norris
norris.j at gmail.com
Tue Nov 8 06:44:59 PST 2011
Hey all,
Quick question I wonder if you could help with. I would like to send
H.264 frames from a custom source over RTSP, most of my code is
working, just have a query with regards to the framer behaviour.
>From what I gather the H264DiscreteFramer expects individual NALs
(that might not individually translate to a complete frame, e.g.
non-VCL NALs like SPS). Inside the DeviceSource template code I have
implemented, libx264 generates a number of NALs for each frame (i.e.
it contains the odd SPS/PPS), and I would like to feed these into the
framer for sending. Pretty standard.
Should I schedule a deliverFrame (and FramedSource::afterGetting( ..)
for each NAL, i.e. making a queue of NALs and repeatedly scheduling
deliverFrame in order to send a single frame. Or should I package the
NALs into a single buffer somehow, and call FramedSource::afterGetting
( .. ) only once. Or something else.
Much appreciated, thanks,
James
More information about the live-devel
mailing list