[Libav-user] Split encoded x264 frame into nal units?

Christian Brümmer christian.bruemmer at gmx.de
Sat Jun 16 01:10:56 CEST 2012


Hi!

I'm using Live555 for RTSP streaming but i need to pass single nal units
to the sink. I know a ffmpeg x264 frame may consists of several nal
units. How can i split the payload into the nals?

Another question: each frame begins with the h264 start code - i have to
get rid of it before parsing to the live555 sink. How can i cut off the
start code from the payload? It is always the first 4 bytes?

Best regards,
Christian



More information about the Libav-user mailing list