omxh264enc does not send keyframes at regular intervals

Hi piperak,
Besides, I tried to run with x264enc and the result also looks wrong. Have you also tried x264enc?
The pipeline:

Using launch string: videotestsrc is-live=true ! video/x-raw, width=800, height=600, format=(string)I420 ! x264enc ! video/x-h264, stream-format=(string)byte-stream ! h264parse config-interval=1 ! splitmuxsink location=/home/nvidia/test-%02d.avi muxer=avimux max-files=5 max-size-time=10000000000
nvidia@tegra-ubuntu:~$ exiftool test-00.avi
ExifTool Version Number         : 10.10
File Name                       : test-00.avi
Directory                       : .
File Size                       : 6.6 MB
File Modification Date/Time     : 2018:09:17 03:30:20+00:00
File Access Date/Time           : 2018:09:17 03:36:18+00:00
File Inode Change Date/Time     : 2018:09:17 03:30:20+00:00
File Permissions                : rw-rw-r--
File Type                       : AVI
File Type Extension             : avi
MIME Type                       : video/x-msvideo
Frame Rate                      : 30
Max Data Rate                   : 4.219e+04 kB/s
Frame Count                     : 802
Stream Count                    : 1
Stream Type                     : Video
Video Codec                     : H264
Video Frame Rate                : 30
Video Frame Count               : 802
Quality                         : 0
Sample Size                     : Variable
Image Width                     : 800
Image Height                    : 600
Planes                          : 1
Bit Depth                       : 24
Compression                     : H264
Image Length                    : 480000
Pixels Per Meter X              : 0
Pixels Per Meter Y              : 0
Num Colors                      : Use BitDepth
Num Important Colors            : All
Total Frame Count               : 802
Software                        : x264
<b>Duration                        : 26.73 s</b>
Image Size                      : 800x600
Megapixels                      : 0.480

I think for ‘max-size-time=10000000000’, the duration should be 10 second. Is my understanding correct?

I found http://gstreamer-devel.966125.n4.nabble.com/splitmuxsink-with-rtspsrc-EOS-problem-td4680078.html

It is an issue in splitmuxsink itself and not an issue in NVIDIA omxh264enc

Hi,

I have finally figured out what is wrong with this pipeline. The EOS signals are not reaching any of the sink ports of the splitmuxsink element.
I resent the signal every time the stream is stopped. This work fine for video, but if you muxing audio as well it does not.
The file splitting issue is already registered as a bug in the gstreamer bug database.
I will not spend any more time on this issue, I will just file a bug to gstreamer and wait for a fix. Thanks for the assistance.

Joseph