I am using FFMPEG to encode live video. If I can't keep up with the live encoding, I need to drop frames. Currently, I just skip the encoding of a raw frame, and the PTS for the next frame is the same. Meaning, even if there is a skipped frame, the pts is always 1,2,3,4,5,6....
This causes the playback of the file to skip ahead in time. Instead, I would like to add blank frames to the muxed file. I tried making PTS indicate a skipped frame by setting it to 1,2,4,5,8,...., but the FFMPEG h264 encoders depend on PTS being consecutive.
How do I pass empty data to my mp4/container, indicating a blank space in time, so that decoders won't appear to jump ahead in time, but instead just see a delay/freeze.