I’ve started testing encoding h264 into a mp4 file.
I have an app which build a picture and sends to encoder, later through ffmpeg I save the file into a mp4 container. This process must be in realtime.
I’ve found some problems doing this:
- Encoding frames seems to be out of order even when I’ve ordered with frame number param in OnEndFrame callback (I’ve tested with a millisecond timer showing on screen so capturing in sequential order, but playing encoded file shows different order)
- I see a lot of edge areas where motion changes, so it looks strange on those points; not sure if there are any settings to help on this
- I think was asked before but GetSPSPPS() returns an invalid format data, it have a 2 bytes separator which I don’t understand the values; I’ve done a hack to change that, but not sure of that.
Thanks in advance,