Video recording issue with omxh264enc

Hello,

i am trying to record video using following pipeline which is working fine:
pipeline 1:

gst-launch-1.0 -v v4l2src device=“/dev/video3” do-timestamp=true ! video/x-raw,width=640,height=480,framerate=30/1,format=I420 ! x264enc tune=zerolatency key-int-max=30 ! rtph264pay ! shmsink socket-path=/tmp/test shm-size=10000000 sync=true wait-for-connection=false

pipeline 2:

gst-launch-1.0 -v -e shmsrc socket-path=/tmp/test is-live=true do-timestamp=true ! application/x-rtp,clock-rate=90000 ! rtph264depay ! h264parse ! matroskamux ! filesink location=parth.mkv sync=false

now if i change the encoder to omxh264enc i am not abel to play the recorded video. please let me know what can change so it can record and working fine.

It may be a known issue with h264 parsing with nvv4l2decoder. Have a look to this post.

Hi,
We are deprecating omx plugins. Please try nvv4l2h264enc.

For information, please share your release version( $ head -1 /etc/nv_tegra_release )

Hi, DaneLLL

below is my release no:

R28 (release), REVISION: 2.0, GCID: 10567845, BOARD: t210ref, EABI: aarch64, DATE: Fri Mar 2 04:58:16 UTC 2018

Hi,
v4l2 plugins are added on r32 releases. On r28, please use omxh264enc. You can configure the properties and give it a try:

  insert-sps-pps      : Insert H.264 SPS, PPS at every IDR frame
                        flags: readable, writable
                        Boolean. Default: false
  insert-aud          : Insert H.264 Access Unit Delimiter(AUD)
                        flags: readable, writable
                        Boolean. Default: false
  insert-vui          : Insert H.264 VUI(Video Usability Information) in SPS
                        flags: readable, writable
                        Boolean. Default: false