[x264-devel] Bit stuffing/padding

Tim Pitman tapitman11 at gmail.com
Wed Aug 8 19:57:50 CEST 2012


I'm actually handling several different stream which are encoded on
different machines and then netcat'd to a central machine for
transmission. If I'm not going to be using pipes (netcat needs them)
what would you recommend? Sockets?

On Wed, Aug 8, 2012 at 2:10 AM, Jason Garrett-Glaser <jason at x264.com> wrote:
> On Tue, Aug 7, 2012 at 11:20 PM, Tim Pitman <tapitman11 at gmail.com> wrote:
>> So when x264 writes to the pipe it doesn't wait until it has a
>> complete NALU before writing?
>
> x264 doesn't know what a pipe is; it simply writes NAL units to a
> file. The OS keeps an internal pipe buffer; pipes are not instant,
> magical synchronous things. You're not guarantee to get complete NAL
> units out of the buffer, even if complete NAL units go in. This is how
> pipes work and has literally nothing to do with x264, nor could x264
> change this if it wanted.
>
>> I've been considering switching to using libx264 directly but my
>> source is a webcam that I'm using ffmpeg to read so I would have to
>> implement libavformat/libavcodec on that side as well. Is there a
>> better way to get webcam data into x264?
>
> The webcam is probably just using v4l, so I assume you could just call
> that, or use libav's v4l stuff.
>
> Jasosn
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel


More information about the x264-devel mailing list