How to fragment H264 Packets in RTP compliant with RFC3984

后端 未结 2 946
[愿得一人]
[愿得一人] 2020-12-29 10:59

I have the FFMPEG streaming baseline h264 video, which I have to encapsulate in RTP and send to SIP phones for their decoding. I am using Linphone with the h264 plugin for W

2条回答
  •  旧巷少年郎
    2020-12-29 11:08

    In x264, I believe the int i_slice_max_size in x264_param_t can be used to control the size. Have a look in x264.h I can't remember where I read this, but the post said this structure member can be used to control the NAL size, but I haven't tried it myself.

    int i_slice_max_size; /* Max size per slice in bytes; includes estimated NAL overhead. */

    EDIT: I found the source

    http://mailman.videolan.org/pipermail/x264-devel/2011-February/008263.html

提交回复
热议问题