live camera h264enc does not work

The camera works for overlay display.

The encoding of videotestsrc works, too.

~$ gst-launch-1.0 videotestsrc ! ‘video/x-raw, format=(string)I420,width=(int)640, height=(int)480’ ! omxh264enc ! ‘video/x-h264, stream-format=(string)byte-stream’ ! h264parse ! qtmux ! filesink location=test.mp4 -e

However the encoding of live nvcamerasrc generates an exception.

~$ gst-launch-1.0 nvcamerasrc fpsRange=“30.0 30.0” ! ‘video/x-raw(memory:NVMM), format=(string)I420,width=(int)1920, height=(int)1080’ ! omxh264enc ! ‘video/x-h264, stream-format=(string)byte-stream’ ! h264parse ! qtmux ! filesink location=test.mp4 -e

Setting pipeline to PAUSED …
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingInside NvxLiteH265DecoderLowLatencyInitNvxLiteH265DecoderLowLatencyInit set DPB and Mjstreaming
Available Sensor modes :
2592 x 1944 FR=30.000000 CF=0x10d9208a isAohdr=0
2592 x 1458 FR=30.000000 CF=0x10d9208a isAohdr=0
1280 x 720 FR=120.000000 CF=0x10d9208a isAohdr=0
2592 x 1944 FR=24.000000 CF=0x10d9208a isAohdr=1
Pipeline is live and does not need PREROLL …

NvCameraSrc: Trying To Set Default Camera Resolution. Selected 1920x1080 FrameRate = 30.000000 …

Setting pipeline to PLAYING …
New clock: GstSystemClock
Framerate set to : 0 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
5346 Floating point exception

Hello,
Try this command line:
gst-launch-1.0 nvcamerasrc fpsRange=“30.0 30.0” ! ‘video/x-raw(memory:NVMM), format=(string)I420,width=(int)1920, height=(int)1080,framerate=(fraction)30/1’ ! omxh264enc ! ‘video/x-h264, stream-format=(string)byte-stream’ ! h264parse ! qtmux ! filesink location=test.mp4 -e

br
ChenJian

I’m also receiving the same error as @0neview. Is there another encoder parameter to set when using nvcamerasrc?

Hi electronique, just to confirm, you tried jachen’s instructions and you still got the same error?