[Live-devel] DeviceSource Streaming from raw living H264 byte-stream.

2015-03-30 Thread Xingjun Chen
Hi Ross and all other developers, I currently wrote my own "DeviceSource" as the video source to open the read side of a pipe and reading video stream from there, the write side of the pipe is feeded by my OMAX call back function, which keep pushing raw H264 byte-stream frame by frame, meanwhile

Re: [Live-devel] H264VideoFramer truncating frames

2015-03-30 Thread Ross Finlayson
> Then I do not see how you can make a "generic" parser without > knowing in advance whether the start code is 3 or 4 bytes. No, it’s actually quite easy. If you know that the start code is either 0x00 0x00 0x01 or 0x00 0x00 0x00 0x01, then the following code (taken from our H.264/5 stream pars

Re: [Live-devel] H264VideoFramer truncating frames

2015-03-30 Thread Gilles Chanteperdrix
On Mon, Mar 30, 2015 at 02:02:59PM +0200, Robert Smith wrote: > It's 001 Then I do not see how you can make a "generic" parser without knowing in advance whether the start code is 3 or 4 bytes. -- Gilles. ___

Re: [Live-devel] H264VideoFramer truncating frames

2015-03-30 Thread Robert Smith
It's 001 On 03/27/2015 07:11 PM, Gilles Chanteperdrix wrote: On Thu, Mar 26, 2015 at 02:32:32PM +0100, Robert Smith wrote: Ok, but I use this with other encoders too, it's only the embedded platform where the parsing cost is so critical. I think it shouldn't be a big deal to change it to check