FFMpeg encoding RGB images to H264

前端 未结 1 2012
生来不讨喜
生来不讨喜 2021-02-10 19:40

I\'m developing a DirectShow filter which has 2 input pins (1 for audio, 1 for video). I\'m using libavcodec/libavformat/libavutil of FFMpeg for encoding the video to H264, audi

相关标签:
1条回答
  • 2021-02-10 20:01

    Try checking out the code in HandBrake. Specifically, this file muxmp4.c, which was a jem I found working with FFMpeg / RTP. Be sure and use av_interleaved_write_frame() and the extradata fields correctly. Those were some key differences I remember for RTP.

    Still, I had some stability issues with RTP/RTSP with FFMpeg, (I'm sure it's getting better). I had much better luck with live555, and you can look at the code in VLC and MPlayer for good examples on how to use it.

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