When using nvv4l2h264enc
with bit-packetization=true
, after taking H.264 data for about 7 minutes failed to allocate
will occur.
Is there something wrong with my settings?
NG Command and result
$ time sudo gst-launch-1.0 -q videotestsrc is-live=true ! videorate ! video/x-raw,width=1920,height=1080,framerate=15/1 ! nvvidconv ! nvv4l2h264enc iframeinterval=15 bitrate=3000000 bit-packetization=true slice-header-spacing=1024 insert-sps-pps=true insert-vui=true ! video/x-h264,stream-format=byte-stream ! queue ! h264parse ! queue ! filesink location=dump.h264
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66, Level = 0
NVMEDIA_ENC: bBlitMode is set to TRUE
(gst-launch-1.0:24534): GLib-ERROR **: 22:53:12.957: ../../../../glib/gmem.c:105: failed to allocate 3110551 bytes
Trace/breakpoint trap
real 7m36.660s
user 2m32.128s
sys 1m43.924s
If I remove bit-packetization=true
and slice-header-spacing=1024
, the error is not occur.
OK Command
$ gst-launch-1.0 -q videotestsrc is-live=true ! videorate ! video/x-raw,width=1920,height=1080,framerate=15/1 ! nvvidconv ! nvv4l2h264enc iframeinterval=15 bitrate=3000000 insert-sps-pps=true insert-vui=true ! video/x-h264,stream-format=byte-stream ! queue ! h264parse ! queue ! filesink location=dump.h264
Environment
- Jetson TX2 Developer Kit
- NVIDIA L4T 32.7.2
$ cat /etc/nv_tegra_release
# R32 (release), REVISION: 7.2, GCID: 30192233, BOARD: t186ref, EABI: aarch64, DATE: Sun Apr 17 09:53:50 UTC 2022