ffmpeg create RTP stream

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 03:40:22

After a few hours of digging in the ffmpeg source, I found the solution:

  1. Don't use the CODEC_FLAG_GLOBAL_HEADER flag
  2. Use avformat_write_header before each av_interleaved_write_frame

Now VLC plays the stream correctly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!