In each case - because your input source is H.264 video - your input source 
object (i.e., your subclass of "FramedSource") must deliver NAL units - 
*without* any 'start code' - one at a time to a "H264VideoStreamDiscreteFramer" 
(*not* a "H264VideoStreamFramer").

>    One is living video,  other device transfer their h264 data to my system, 
> I copied them to one queue, and the framed source would get one sample every 
> time, these sample is  h264 nalu, and isn't add start code 
> (0x00,0x00,0x00,0x01).

As noted above, you must deliver one NAL unit at a time - without a start code 
- to a "H264VideoStreamDiscreteFramer".


>    Other is VOID, every time video framed source would read one sample in mp4 
> file. This sample contains more than one nalu, and each nalu would be started 
> with (0x00,0x00,0x00,0x01)

In this case, you need to parse the input data, so that (as above) you are 
delivering one NAL unit at a time - without a start code - to a 
"H264VideoStreamDiscreteFramer".

The data that gets delivered to a "H264VideoRTPSink" - and thus across the 
network - must *never* contain a start code!


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to