Raw H264 frames in mpegts container using libavcodec
I believe if you set the following, you will see video playback. packet.flags |= AV_PKT_FLAG_KEY; packet.pts = packet.dts = 0; You should really set packet.flags according to the h264 packet headers. You might try this fellow stack overflowian’s suggestion for extracting directly from the stream. If you are also adding audio, then pts/dts is going … Read more