ffmpeg create RTP stream

前端 未结 1 701
暖寄归人
暖寄归人 2021-02-06 14:09

I\'m trying to encode and stream using ffmpeg (libavcodec/libavformat - MSVC x64 with Zeranoe builds)

Here is my code, largely adapted from the encoding example, error h

相关标签:
1条回答
  • 2021-02-06 14:17

    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

    0 讨论(0)
提交回复
热议问题