ffmpeg生产rtp流

录像文件转成h264的rtp流,当下主流的流媒体服务器可识别的rtp流:


ffmpeg -re -i input -an -f rtp -c:v libx264 -profile baseline -slices 10 -rtpflags h264_mode0 -payload_type 97 -pkt_size 1460 -slice-max-size 1400 rtp://IP:Port


 -profile:设置编码等级,baseline,main,high

-payload_type :rtp的pt值

-pkt_size:rtp发送的最大长度

-slice-max-size:一个nula包数据的最大长度

rtp打包模式packetizition-mode=0



欢迎访问 个人网站    http://ttmoon.com

posted on 2017-10-12 21:26  zhuxian2009  阅读(321)  评论(0编辑  收藏  举报

导航