On Tue, Dec 25, 2012 at 11:08 AM, Brian Chi <[email protected]> wrote:
> I tracked the ffmpeg code and found that in the function
> "av_write_frame->mov_write_packet->ff_mov_write_packet", it will call
> function "ff_avc_parse_nal_units" to obtain the size of nal unit, but the
> return value is very small(such as 208 bytes).

It's very natural for the first NAL unit to be small. An h264 stream
begins with configuration SPS/PPS untis that don't contain video data,
but let the decoder initialization to work. Did you continue reading
more video packets after the first one?

Alex
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to