Gstreamer: temporal-tradeoff=2

So I ran a command with temporal-tradeoff=2 to try drop frames to reach desired bitrate but it just crashed.

Command:
gst-launch-1.0 videotestsrc num-buffers=300 ! video/x-raw,width=640,height=420,framerate=30/1,format=I420 ! omxh264enc bitrate=500000 iframeinterval=60 temporal-tradeoff=2 ! qtmux ! filesink location=a.mp4

Error:

0:00:00.000144693 19838   0x5581369a00 INFO                GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.16.2
0:00:00.000232978 19838   0x5581369a00 INFO                GST_INIT gst.c:587:init_pre: Using library installed in /home/ubuntu/gst-1.16.2/lib/aarch64-linux-gnu
0:00:00.000288657 19838   0x5581369a00 INFO                GST_INIT gst.c:607:init_pre: Linux localhost 4.9.140-tegra #1 SMP PREEMPT Tue Oct 27 21:02:37 PDT 2020 aarch64
0:00:00.000783260 19838   0x5581369a00 INFO                GST_INIT gstmessage.c:128:_priv_gst_message_initialize: init messages
0:00:00.001839759 19838   0x5581369a00 INFO                GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.002596924 19838   0x5581369a00 INFO      GST_PLUGIN_LOADING gstplugin.c:318:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.002793182 19838   0x5581369a00 INFO      GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.002828965 19838   0x5581369a00 INFO      GST_PLUGIN_LOADING gstplugin.c:228:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.002884175 19838   0x5581369a00 INFO            GST_REGISTRY gstregistry.c:1720:ensure_current_registry: reading registry cache: /home/ubuntu/.cache/gstreamer-1.0/registry.aarch64.bin
0:00:00.038832923 19838   0x5581369a00 INFO            GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/ubuntu/.cache/gstreamer-1.0/registry.aarch64.bin in 0.035883 seconds
0:00:00.038973866 19838   0x5581369a00 INFO            GST_REGISTRY gstregistry.c:1579:scan_and_update_registry: Validating plugins from registry cache: /home/ubuntu/.cache/gstreamer-1.0/registry.aarch64.bin
0:00:00.045569905 19838   0x5581369a00 INFO            GST_REGISTRY gstregistry.c:1678:scan_and_update_registry: Registry cache has not changed
0:00:00.045616261 19838   0x5581369a00 INFO            GST_REGISTRY gstregistry.c:1755:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.045647200 19838   0x5581369a00 INFO                GST_INIT gst.c:807:init_post: GLib runtime version: 2.56.4
0:00:00.045684961 19838   0x5581369a00 INFO                GST_INIT gst.c:809:init_post: GLib headers version: 2.56.4
0:00:00.045709337 19838   0x5581369a00 INFO                GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:00.045785851 19838   0x5581369a00 INFO            GST_PIPELINE gstparse.c:337:gst_parse_launch_full: parsing pipeline description 'videotestsrc num-buffers=300 ! video/x-raw,width=640,height=420,framerate=30/1,format=I420 ! omxh264enc bitrate=500000 iframeinterval=60 temporal-tradeoff=2 ! qtmux ! filesink location=a.mp4 '
0:00:00.047402320 19838   0x5581369a00 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/home/ubuntu/gst-1.16.2/lib/aarch64-linux-gnu/gstreamer-1.0/libgstvideotestsrc.so" loaded
0:00:00.047457999 19838   0x5581369a00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "videotestsrc"
0:00:00.047923018 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstelement.c:669:gst_element_add_pad:<GstBaseSrc@0x558158eaa0> adding pad 'src'
0:00:00.082207742 19838   0x5581369a00 WARN                     omx gstomx.c:2826:plugin_init: Failed to load configuration file: Valid key file could not be found in search dirs (searched in: /home/ubuntu/.config:/etc/xdg as per GST_OMX_CONFIG_DIR environment variable, the xdg user config directory (or XDG_CONFIG_HOME) and the system config directory (or XDG_CONFIG_DIRS)
0:00:00.082282954 19838   0x5581369a00 INFO                     omx gstomx.c:2831:plugin_init: Using default configuration
0:00:00.082920947 19838   0x5581369a00 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/home/ubuntu/gst-1.16.2/lib/aarch64-linux-gnu/gstreamer-1.0/libgstomx.so" loaded
0:00:00.082972668 19838   0x5581369a00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "omxh264enc"
0:00:00.083462114 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstelement.c:669:gst_element_add_pad:<GstVideoEncoder@0x55815e0f20> adding pad 'sink'
0:00:00.083540346 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstelement.c:669:gst_element_add_pad:<GstVideoEncoder@0x55815e0f20> adding pad 'src'
0:00:00.086903030 19838   0x5581369a00 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/home/ubuntu/gst-1.16.2/lib/aarch64-linux-gnu/gstreamer-1.0/libgstisomp4.so" loaded
0:00:00.086969647 19838   0x5581369a00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "qtmux"
0:00:00.087365392 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstelement.c:669:gst_element_add_pad:<GstQTMux@0x55815f2000> adding pad 'src'
0:00:00.088504186 19838   0x5581369a00 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/home/ubuntu/gst-1.16.2/lib/aarch64-linux-gnu/gstreamer-1.0/libgstcoreelements.so" loaded
0:00:00.088559188 19838   0x5581369a00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "filesink"
0:00:00.088785812 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstelement.c:669:gst_element_add_pad:<GstBaseSink@0x55815f8860> adding pad 'sink'
0:00:00.088884201 19838   0x5581369a00 INFO                filesink gstfilesink.c:293:gst_file_sink_set_location:<filesink0> filename : a.mp4
0:00:00.088925453 19838   0x5581369a00 INFO                filesink gstfilesink.c:294:gst_file_sink_set_location:<filesink0> uri      : file:///home/ubuntu/a.mp4
0:00:00.088977903 19838   0x5581369a00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "pipeline"
0:00:00.089231871 19838   0x5581369a00 INFO            GST_PIPELINE grammar.y:652:gst_parse_perform_link: linking some pad of GstVideoTestSrc named videotestsrc0 to some pad of GstOMXH264Enc-omxh264enc named omxh264enc-omxh264enc0 (0/0) with caps "video/x-raw, width=(int)640, height=(int)420, framerate=(fraction)30/1, format=(string)I420"
0:00:00.089286404 19838   0x5581369a00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "capsfilter"
0:00:00.089504850 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstelement.c:669:gst_element_add_pad:<GstBaseTransform@0x55815fe160> adding pad 'sink'
0:00:00.089583082 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstelement.c:669:gst_element_add_pad:<GstBaseTransform@0x55815fe160> adding pad 'src'
0:00:00.089642668 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2090:gst_bin_get_state_func:<pipeline0> getting state
0:00:00.089721057 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<capsfilter0> completed state change to NULL
0:00:00.089786840 19838   0x5581369a00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
0:00:00.089840332 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstutils.c:1774:gst_element_link_pads_full: trying to link element videotestsrc0:(any) to element capsfilter0:sink
0:00:00.089943982 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:sink
0:00:00.089987577 19838   0x5581369a00 INFO                GST_PADS gstutils.c:1588:prepare_link_maybe_ghosting: videotestsrc0 and capsfilter0 in same bin, no need for ghost pads
0:00:00.090045236 19838   0x5581369a00 INFO                GST_PADS gstpad.c:2378:gst_pad_link_prepare: trying to link videotestsrc0:src and capsfilter0:sink
0:00:00.090104717 19838   0x5581369a00 INFO                GST_PADS gstpad.c:4237:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.090176960 19838   0x5581369a00 INFO                GST_PADS gstpad.c:2586:gst_pad_link_full: linked videotestsrc0:src and capsfilter0:sink, successful
0:00:00.090205294 19838   0x5581369a00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
0:00:00.090245348 19838   0x5581369a00 INFO               GST_EVENT gstpad.c:5813:gst_pad_send_event_unchecked:<videotestsrc0:src> Received event on flushing pad. Discarding
0:00:00.090300142 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstutils.c:1774:gst_element_link_pads_full: trying to link element capsfilter0:src to element omxh264enc-omxh264enc0:(any)
0:00:00.090340300 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:src
0:00:00.090392020 19838   0x5581369a00 INFO                GST_PADS gstutils.c:1035:gst_pad_check_link: trying to link capsfilter0:src and omxh264enc-omxh264enc0:sink
0:00:00.090499837 19838   0x5581369a00 INFO                GST_PADS gstutils.c:1588:prepare_link_maybe_ghosting: capsfilter0 and omxh264enc-omxh264enc0 in same bin, no need for ghost pads
0:00:00.090550412 19838   0x5581369a00 INFO                GST_PADS gstpad.c:2378:gst_pad_link_prepare: trying to link capsfilter0:src and omxh264enc-omxh264enc0:sink
0:00:00.090645989 19838   0x5581369a00 INFO                GST_PADS gstpad.c:2586:gst_pad_link_full: linked capsfilter0:src and omxh264enc-omxh264enc0:sink, successful
0:00:00.090682709 19838   0x5581369a00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
0:00:00.090721304 19838   0x5581369a00 INFO               GST_EVENT gstpad.c:5813:gst_pad_send_event_unchecked:<capsfilter0:src> Received event on flushing pad. Discarding
0:00:00.090782713 19838   0x5581369a00 INFO            GST_PIPELINE grammar.y:652:gst_parse_perform_link: linking some pad of GstOMXH264Enc-omxh264enc named omxh264enc-omxh264enc0 to some pad of GstQTMux named qtmux0 (0/0) with caps "(NULL)"
0:00:00.090804745 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstutils.c:1774:gst_element_link_pads_full: trying to link element omxh264enc-omxh264enc0:(any) to element qtmux0:(any)
0:00:00.090986575 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstelement.c:669:gst_element_add_pad:<qtmux0> adding pad 'video_0'
0:00:00.091044806 19838   0x5581369a00 INFO                GST_PADS gstutils.c:1588:prepare_link_maybe_ghosting: omxh264enc-omxh264enc0 and qtmux0 in same bin, no need for ghost pads
0:00:00.091095433 19838   0x5581369a00 INFO                GST_PADS gstpad.c:2378:gst_pad_link_prepare: trying to link omxh264enc-omxh264enc0:src and qtmux0:video_0
0:00:00.091148352 19838   0x5581369a00 INFO                GST_PADS gstpad.c:2586:gst_pad_link_full: linked omxh264enc-omxh264enc0:src and qtmux0:video_0, successful
0:00:00.091181374 19838   0x5581369a00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
0:00:00.091197989 19838   0x5581369a00 INFO               GST_EVENT gstpad.c:5813:gst_pad_send_event_unchecked:<omxh264enc-omxh264enc0:src> Received event on flushing pad. Discarding
0:00:00.091250700 19838   0x5581369a00 INFO            GST_PIPELINE grammar.y:652:gst_parse_perform_link: linking some pad of GstQTMux named qtmux0 to some pad of GstFileSink named filesink0 (0/0) with caps "(NULL)"
0:00:00.091288514 19838   0x5581369a00 INFO        GST_ELEMENT_PADS gstutils.c:1774:gst_element_link_pads_full: trying to link element qtmux0:(any) to element filesink0:(any)
0:00:00.091326848 19838   0x5581369a00 INFO                GST_PADS gstutils.c:1035:gst_pad_check_link: trying to link qtmux0:src and filesink0:sink
0:00:00.091358048 19838   0x5581369a00 INFO                GST_PADS gstutils.c:1588:prepare_link_maybe_ghosting: qtmux0 and filesink0 in same bin, no need for ghost pads
0:00:00.091401226 19838   0x5581369a00 INFO                GST_PADS gstpad.c:2378:gst_pad_link_prepare: trying to link qtmux0:src and filesink0:sink
0:00:00.091446541 19838   0x5581369a00 INFO                GST_PADS gstpad.c:2586:gst_pad_link_full: linked qtmux0:src and filesink0:sink, successful
0:00:00.091477584 19838   0x5581369a00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
0:00:00.091493990 19838   0x5581369a00 INFO               GST_EVENT gstpad.c:5813:gst_pad_send_event_unchecked:<qtmux0:src> Received event on flushing pad. Discarding
Setting pipeline to PAUSED ...
0:00:00.091639204 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<filesink0> current NULL pending VOID_PENDING, desired next READY
0:00:00.091792804 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<filesink0> completed state change to READY
0:00:00.091845463 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<filesink0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.091915049 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'filesink0' changed state to 2(READY) successfully
0:00:00.091960988 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<qtmux0> current NULL pending VOID_PENDING, desired next READY
0:00:00.091998177 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<qtmux0> completed state change to READY
0:00:00.092018594 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<qtmux0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.092061669 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'qtmux0' changed state to 2(READY) successfully
0:00:00.092102608 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<omxh264enc-omxh264enc0> current NULL pending VOID_PENDING, desired next READY
0:00:00.096313085 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<omxh264enc-omxh264enc0> completed state change to READY
0:00:00.096384650 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<omxh264enc-omxh264enc0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.096456372 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'omxh264enc-omxh264enc0' changed state to 2(READY) successfully
0:00:00.096512884 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<capsfilter0> current NULL pending VOID_PENDING, desired next READY
0:00:00.096555959 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<capsfilter0> completed state change to READY
0:00:00.096597419 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.096636483 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 2(READY) successfully
0:00:00.096681485 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<videotestsrc0> current NULL pending VOID_PENDING, desired next READY
0:00:00.096727997 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<videotestsrc0> completed state change to READY
0:00:00.096768415 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<videotestsrc0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.096821438 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'videotestsrc0' changed state to 2(READY) successfully
0:00:00.096874096 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2651:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PAUSED, next PAUSED
0:00:00.096916025 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed NULL to READY (PAUSED pending)
0:00:00.096981913 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2658:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PAUSED
0:00:00.097058427 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<filesink0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.097121294 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2961:gst_bin_change_state_func:<pipeline0> child 'filesink0' is changing state asynchronously to PAUSED
0:00:00.097173431 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<qtmux0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.097226558 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<qtmux0> completed state change to PAUSED
0:00:00.097263278 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<qtmux0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.097308749 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'qtmux0' changed state to 3(PAUSED) successfully
0:00:00.097334219 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<omxh264enc-omxh264enc0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.097383491 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<omxh264enc-omxh264enc0> completed state change to PAUSED
0:00:00.097419899 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<omxh264enc-omxh264enc0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.097462140 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'omxh264enc-omxh264enc0' changed state to 3(PAUSED) successfully
0:00:00.097503183 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<capsfilter0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.097532560 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<capsfilter0> completed state change to PAUSED
0:00:00.097567769 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.097610323 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 3(PAUSED) successfully
0:00:00.097633553 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<videotestsrc0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.097733713 19838   0x5581369a00 INFO                 basesrc gstbasesrc.c:1373:gst_base_src_do_seek:<videotestsrc0> seeking: time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999
0:00:00.097819706 19838   0x5581369a00 INFO                    task gsttask.c:453:gst_task_set_lock: setting stream lock 0x55815821e0 on task 0x5581619050
0:00:00.097838874 19838   0x5581369a00 INFO                GST_PADS gstpad.c:6159:gst_pad_start_task:<videotestsrc0:src> created task 0x5581619050
0:00:00.098066122 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<videotestsrc0> completed state change to PAUSED
0:00:00.098158001 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<videotestsrc0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.098219670 19838   0x55815eaa30 INFO        GST_ELEMENT_PADS gstelement.c:913:gst_element_get_static_pad: no such pad 'sink' in element "videotestsrc0"
0:00:00.098278683 19838   0x55815eaa30 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<videotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:00.098240660 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'videotestsrc0' changed state to 3(PAUSED) successfully
Pipeline is PREROLLING ...
0:00:00.098645572 19838   0x55815eaa30 INFO               GST_EVENT gstevent.c:820:gst_event_new_caps: creating caps event video/x-raw, format=(string)I420, width=(int)640, height=(int)420, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
0:00:00.098856257 19838   0x55815eaa30 INFO           basetransform gstbasetransform.c:1317:gst_base_transform_setcaps:<capsfilter0> reuse caps
0:00:00.098920218 19838   0x55815eaa30 INFO               GST_EVENT gstevent.c:820:gst_event_new_caps: creating caps event video/x-raw, format=(string)I420, width=(int)640, height=(int)420, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
0:00:00.099085849 19838   0x55815eaa30 FIXME           videoencoder gstvideoencoder.c:668:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0> GstVideoEncoder::reset() is deprecated
0:00:00.099181687 19838   0x55815eaa30 INFO                    task gsttask.c:453:gst_task_set_lock: setting stream lock 0x5581582680 on task 0x55816195f0
0:00:00.099215177 19838   0x55815eaa30 INFO                GST_PADS gstpad.c:6159:gst_pad_start_task:<omxh264enc-omxh264enc0:src> created task 0x55816195f0
Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
0:00:00.101325885 19838   0x55815eaa30 WARN             omxvideoenc gstomxvideoenc.c:1860:gst_omx_video_enc_set_format:<omxh264enc-omxh264enc0> Error setting temporal_tradeoff 2 : Vendor specific error (0x00000001)
0:00:00.101365314 19838   0x55815eaa30 INFO                     omx gstomx.c:1936:gst_omx_port_set_enabled_unlocked:<omxh264enc-omxh264enc0> Setting encoder port 1 to disabled
0:00:00.101418649 19838   0x55815eaa30 INFO                     omx gstomx.c:1984:gst_omx_port_set_enabled_unlocked:<omxh264enc-omxh264enc0> Set encoder port 1 to disabled: None (0x00000000)
0:00:00.101500735 19838   0x55815eaa30 INFO                     omx gstomx.c:2223:gst_omx_port_wait_enabled_unlocked:<omxh264enc-omxh264enc0> Waiting for encoder port 1 to be disabled
0:00:00.101564175 19838   0x55815eaa30 INFO                     omx gstomx.c:2298:gst_omx_port_wait_enabled_unlocked:<omxh264enc-omxh264enc0> encoder port 1 is disabled: None (0x00000000)
0:00:00.101616625 19838   0x55815eaa30 INFO                     omx gstomx.c:798:gst_omx_component_set_state:<omxh264enc-omxh264enc0> Setting encoder state from Loaded to Idle
0:00:00.101666784 19838   0x55815eaa30 INFO                     omx gstomx.c:1695:gst_omx_port_allocate_buffers_unlocked:<omxh264enc-omxh264enc0> Allocating 6 buffers of size 403200 for encoder port 0
0:00:00.101794184 19838   0x55815eaa30 INFO                     omx gstomx.c:1760:gst_omx_port_allocate_buffers_unlocked:<omxh264enc-omxh264enc0> Allocated buffers for encoder port 0: None (0x00000000)
0:00:00.101842832 19838   0x7f94004400 INFO                    task gsttask.c:312:gst_task_func:<omxh264enc-omxh264enc0:src> Task going to paused
0:00:00.104910400 19838   0x55815eaa30 INFO                     omx gstomx.c:235:gst_omx_component_handle_messages:<omxh264enc-omxh264enc0> encoder state change to Idle finished
0:00:00.104985090 19838   0x55815eaa30 INFO                     omx gstomx.c:798:gst_omx_component_set_state:<omxh264enc-omxh264enc0> Setting encoder state from Idle to Executing
H264: Profile = 66, Level = 40
0:00:00.105061500 19838   0x55815eaa30 INFO                     omx gstomx.c:235:gst_omx_component_handle_messages:<omxh264enc-omxh264enc0> encoder state change to Executing finished
0:00:00.105148743 19838   0x55815eaa30 INFO                     omx gstomx.c:1936:gst_omx_port_set_enabled_unlocked:<omxh264enc-omxh264enc0> Setting encoder port 1 to enabled
0:00:00.105255465 19838   0x55815eaa30 INFO                     omx gstomx.c:1984:gst_omx_port_set_enabled_unlocked:<omxh264enc-omxh264enc0> Set encoder port 1 to enabled: None (0x00000000)
0:00:00.105307707 19838   0x55815eaa30 INFO                     omx gstomx.c:1695:gst_omx_port_allocate_buffers_unlocked:<omxh264enc-omxh264enc0> Allocating 6 buffers of size 403476 for encoder port 1
0:00:00.105522716 19838   0x55815eaa30 INFO                     omx gstomx.c:1760:gst_omx_port_allocate_buffers_unlocked:<omxh264enc-omxh264enc0> Allocated buffers for encoder port 1: None (0x00000000)
0:00:00.105592979 19838   0x55815eaa30 INFO                     omx gstomx.c:2223:gst_omx_port_wait_enabled_unlocked:<omxh264enc-omxh264enc0> Waiting for encoder port 1 to be enabled
0:00:00.107246637 19838   0x55815eaa30 INFO                     omx gstomx.c:2298:gst_omx_port_wait_enabled_unlocked:<omxh264enc-omxh264enc0> encoder port 1 is enabled: None (0x00000000)
0:00:00.107337057 19838   0x55815eaa30 INFO                     omx gstomx.c:2347:gst_omx_port_mark_reconfigured:<omxh264enc-omxh264enc0> Marking encoder port 1 is reconfigured
0:00:00.107381226 19838   0x55815eaa30 INFO                     omx gstomx.c:2374:gst_omx_port_mark_reconfigured:<omxh264enc-omxh264enc0> Marked encoder port 1 as reconfigured: None (0x00000000)
0:00:00.107483730 19838   0x7f94004400 INFO                    task gsttask.c:314:gst_task_func:<omxh264enc-omxh264enc0:src> Task resume from paused
0:00:00.112402568 19838   0x55815eaa30 INFO               GST_EVENT gstevent.c:901:gst_event_new_segment: creating segment event time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999
0:00:00.112499759 19838   0x55815eaa30 INFO                 basesrc gstbasesrc.c:2962:gst_base_src_loop:<videotestsrc0> marking pending DISCONT
0:00:00.123547326 19838   0x7f94004400 INFO               GST_EVENT gstevent.c:820:gst_event_new_caps: creating caps event video/x-h264, alignment=(string)au, profile=(string)baseline, level=(string)4, stream-format=(string)avc, width=(int)640, height=(int)420, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
0:00:00.123704207 19838   0x7f94004400 WARN                   qtmux gstqtmux.c:5662:gst_qt_mux_video_sink_set_caps:<qtmux0> no codec_data in h264 caps
0:00:00.123777595 19838   0x7f94004400 WARN                   qtmux gstqtmux.c:6032:gst_qt_mux_video_sink_set_caps:<qtmux0> pad video_0 refused caps video/x-h264, alignment=(string)au, profile=(string)baseline, level=(string)4, stream-format=(string)avc, width=(int)640, height=(int)420, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
0:00:00.123901767 19838   0x7f94004400 WARN                   qtmux gstqtmux.c:5662:gst_qt_mux_video_sink_set_caps:<qtmux0> no codec_data in h264 caps
0:00:00.123957706 19838   0x7f94004400 WARN                   qtmux gstqtmux.c:6032:gst_qt_mux_video_sink_set_caps:<qtmux0> pad video_0 refused caps video/x-h264, alignment=(string)au, profile=(string)baseline, level=(string)4, stream-format=(string)avc, width=(int)640, height=(int)420, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
0:00:00.124006042 19838   0x7f94004400 WARN                GST_PADS gstpad.c:4231:gst_pad_peer_query:<omxh264enc-omxh264enc0:src> could not send sticky events
0:00:00.124162037 19838   0x7f94004400 INFO               GST_EVENT gstevent.c:820:gst_event_new_caps: creating caps event video/x-h264, alignment=(string)au, profile=(string)baseline, level=(string)4, stream-format=(string)avc, width=(int)640, height=(int)420, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, codec_data=(buffer)014240150301000a6742402895a0280dfe7401000468ce3c80, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
0:00:00.124840345 19838   0x7f94004400 INFO               GST_EVENT gstevent.c:901:gst_event_new_segment: creating segment event time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999
0:00:00.124946130 19838   0x7f94004400 FIXME               basesink gstbasesink.c:3248:gst_base_sink_default_event:<filesink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
0:00:00.125049780 19838   0x7f94004400 INFO               GST_EVENT gstevent.c:820:gst_event_new_caps: creating caps event video/quicktime, variant=(string)apple
0:00:00.125142805 19838   0x7f94004400 INFO                   qtmux gstqtmux.c:2366:gst_qt_mux_downstream_is_seekable:<qtmux0> downstream is seekable
0:00:00.125175046 19838   0x7f94004400 WARN                   qtmux gstqtmux.c:2982:gst_qt_mux_start_file:<qtmux0> Robust muxing requires reserved-moov-update-period to be set
0:00:00.125221402 19838   0x7f94004400 INFO               GST_EVENT gstevent.c:901:gst_event_new_segment: creating segment event bytes segment start=0, offset=0, stop=-1, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0, base=0, position 0, duration -1
0:00:00.125341510 19838   0x7f94004400 INFO              GST_STATES gstbin.c:3425:bin_handle_async_done:<pipeline0> committing state from READY to PAUSED, old pending PAUSED
0:00:00.125375678 19838   0x7f94004400 INFO              GST_STATES gstbin.c:3445:bin_handle_async_done:<pipeline0> completed state change, pending VOID
0:00:00.125409274 19838   0x7f94004400 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
0:00:00.125988775 19838   0x5581369a00 INFO               GST_EVENT gstevent.c:1450:gst_event_new_latency: creating latency event 0:00:00.000000000
0:00:00.126080498 19838   0x5581369a00 INFO                     bin gstbin.c:2784:gst_bin_do_latency_func:<pipeline0> configured latency of 0:00:00.000000000
0:00:00.126146542 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<filesink0> current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.126201700 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<filesink0> completed state change to PLAYING
0:00:00.126244775 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<filesink0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.126301444 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'filesink0' changed state to 4(PLAYING) successfully
0:00:00.126321497 19838   0x7f94004400 INFO               videometa gstvideometa.c:937:gst_video_time_code_meta_api_get_type: registering
0:00:00.126355248 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<qtmux0> current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.126499577 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<qtmux0> completed state change to PLAYING
0:00:00.126542703 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<qtmux0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.126591924 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'qtmux0' changed state to 4(PLAYING) successfully
0:00:00.126639009 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<omxh264enc-omxh264enc0> current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.126679063 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<omxh264enc-omxh264enc0> completed state change to PLAYING
0:00:00.126717033 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<omxh264enc-omxh264enc0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.126761566 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'omxh264enc-omxh264enc0' changed state to 4(PLAYING) successfully
0:00:00.126805630 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<capsfilter0> current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.126845736 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<capsfilter0> completed state change to PLAYING
0:00:00.126878706 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.126905686 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 4(PLAYING) successfully
0:00:00.126929750 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2507:gst_bin_element_set_state:<videotestsrc0> current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.126949594 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<videotestsrc0> completed state change to PLAYING
0:00:00.126968293 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<videotestsrc0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.126993294 19838   0x5581369a00 INFO              GST_STATES gstbin.c:2955:gst_bin_change_state_func:<pipeline0> child 'videotestsrc0' changed state to 4(PLAYING) successfully
0:00:00.127014440 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2676:gst_element_continue_state:<pipeline0> completed state change to PLAYING
0:00:00.127032774 19838   0x5581369a00 INFO              GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
New clock: GstSystemClock
Caught SIGSEGV
#0  0x0000007f9e267e28 in __GI___poll (fds=0x5581603960, nfds=548115272248, timeout=<optimised out>) at ../sysdeps/unix/sysv/linux/poll.c:41
#1  0x0000007f9e374e08 in  () at /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0
#2  0x0000005581520ae0 in  ()
Spinning.  Please run 'gdb gst-launch-1.0 19838' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

Hi,
We are deprecating omx plugins. Please use v4l2 plugins and try to set the property:

  EnableTwopassCBR    : Enable two pass CBR while encoding
                        flags: readable, writable, changeable only in NULL or READY state
                        Boolean. Default: false

If setting it gives more precise bitrate, you don’t need to drop frames.

I need to drop frames as Its reached the max compression

Hi,
We have the implementation in jetson_multimedia_api. Please check 01_video encode sample. There is an option:

        -tt <level>           Temporal Tradeoff level [Default = 0]

Supported Temporal Tradeoff levels:
0:Drop None       1:Drop 1 in 5      2:Drop 1 in 3
3:Drop 1 in 2     4:Drop 2 in 3