FFMPEG passthrough recording RTSP/H264 to MP4 container bad encoding
Hello, I'm using the ffmpeg 3.4.2 to record a RTSP h264 steam from an IP camera and store it in a MP4 container. I have a working C++ example however at the beginning of the MP4 video I see some corrupted images, after a couple of seconds the video is shown properly. I was wondering if this is a timing issue?
Someone told me that I may have to wait for an IDR frame before I passthrough video packets to the MP4 writer.