JPEG to mp4: How to do it in a APP?

Hi all,

I would like to develop an application in C that is capable of transferring a series of images in PNG format in a video in mp4 format with all of them.

So far I have managed to do it with GStremaer directly with the pipeline:

gst-launch-1.0 multifilesrc location="images/Image_%d.png" !  pngdec ! videoconvert ! 'video/x-raw, format=(string)I420, width=(int)640, height=(int)512, pixel-aspect-ratio=1/1, interlace-mode=(string)progressive' ! videoparse format=2 width=640 height=512 !  x264enc ! mp4mux ! filesink location=last.mp4

But I am not able to translate it to code C.
So far the application that I have developed generates a non-empty video but that my players (VLC and ffmpeg) are not able to reproduce. This is the code of the application and then the debug information of the same.

#include <gst/gst.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <png.h>
#include <zlib.h>
#include <gst/app/gstappsrc.h>
#include <gst/app/gstappsink.h>
#include <malloc.h>
#define TOP 1
#define HEIGHT 512
#define WIDTH 640


int main(int argc, char *argv[])
{
	
 	GstElement *pipeline, *source, *convert, *enc, *parse, *sink, *capsFilter2, *capsFilter1;
    	GstCaps *capsConvert, *capsSource;
	GstBus *bus;
	GstMessage *msg;
	GstStateChangeReturn ret;

		  
	/* Initialize GStreamer */
	gst_init (&argc, &argv);

	/* Create the elements */
	//1-SOURCE
	source = gst_element_factory_make ("multifilesrc", NULL);
	g_object_set (G_OBJECT (source), "location", "/images/Image_%d.png",  NULL);
	g_object_set (G_OBJECT (source), "start-index", 0,  NULL);	
	g_object_set (G_OBJECT (source), "stop-index", 30,  NULL);	
	//CAPS Filter Source 
	capsFilter1 = gst_element_factory_make ("capsfilter", NULL);
	capsSource = gst_caps_new_simple ("video/x-raw",
          "format",  G_TYPE_STRING, "I420",
          "width", G_TYPE_INT, 640,
          "height", G_TYPE_INT, 512,
	  "framerate", GST_TYPE_FRACTION, 1, 1, NULL);
	g_object_set(capsFilter1, "caps", capsSource, NULL);


	//2-CONVERSION 
	convert = gst_element_factory_make ("videoconvert", NULL);
	capsFilter2 = gst_element_factory_make ("capsfilter", NULL);
	capsConvert = gst_caps_new_simple ("video/x-raw",
          "format",  G_TYPE_STRING, "I420",
          "width", G_TYPE_INT, 640,
          "height", G_TYPE_INT, 512, 
	  "framerate", GST_TYPE_FRACTION, 1, 1, NULL);
	g_object_set(capsFilter2, "caps", capsConvert, NULL);

	//3-PARSSING
	parse = gst_element_factory_make ("videoparse", "parse"); 
	g_object_set (G_OBJECT (parse), "format", 2,  NULL);
	g_object_set (G_OBJECT (parse), "height", 512,  NULL);
	g_object_set (G_OBJECT (parse), "width", 640,  NULL);
	
	//4-CODEC mp4 file
	enc = gst_element_factory_make ("omxh264enc", "enc");

 
	//5-DESTINATION
	sink = gst_element_factory_make ("filesink", "sink");
	g_object_set(G_OBJECT (sink), "location", "multifilesrc.mp4", NULL );


	/* Create the empty pipeline */
 	pipeline = gst_pipeline_new ("test-pipeline");
	 
	if (!pipeline || !source || !capsFilter1 || !convert  || !capsFilter2 || !parse || !enc || !sink) { //4 elements
	  g_printerr ("Not all elements could be created.\n"); 
	  return -1;
	}

	/* Build the pipeline */
	gst_bin_add_many (GST_BIN (pipeline), source, capsFilter1, convert, capsFilter2, parse, enc, sink, NULL);
	if (gst_element_link_many (source, capsFilter1, convert, capsFilter2, parse, enc, sink, NULL) != TRUE) { 
	    g_printerr ("Elements could not be linked.\n");
	    gst_object_unref (pipeline);
	    return -1;
	}
	/* Start playing */
	ret = gst_element_set_state (pipeline, GST_STATE_PLAYING);
	if (ret == GST_STATE_CHANGE_FAILURE) {
	    g_printerr ("Unable to set the pipeline to the playing state.\n");
	    gst_object_unref (pipeline);
	    return -1;
	}
	
	/* Wait until error or EOS */
	bus = gst_element_get_bus (pipeline);
	msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, GST_MESSAGE_ERROR | GST_MESSAGE_EOS);

	/* Parse message */
	if (msg != NULL) {
	GError *err;
	gchar *debug_info;

		switch (GST_MESSAGE_TYPE (msg)) {
			case GST_MESSAGE_ERROR:
			gst_message_parse_error (msg, &err, &debug_info);
			g_printerr ("Error received from element %s: %s\n", GST_OBJECT_NAME (msg->src), err->message);
			g_printerr ("Debugging information: %s\n", debug_info ? debug_info : "none");
			g_clear_error (&err);
			g_free (debug_info);
			break;
		      case GST_MESSAGE_EOS:
			g_print ("End-Of-Stream reached.\n");
			break;
		      default:
			/* We should not reach here because we only asked for ERRORs and EOS */
			g_printerr ("Unexpected message received.\n");
			break;
		}
	gst_message_unref (msg);
	}

	/* Free resources */
	gst_object_unref (bus);
	gst_element_set_state (pipeline, GST_STATE_NULL);
	gst_object_unref (pipeline);/* Create the empty pipeline */
	pipeline = gst_pipeline_new ("test-pipeline");



	return 0;
}

DEBUG info:

[code]
0:00:00.000190834 5108 0x1a400 INFO GST_INIT gst.c:502:init_pre: Initializing GStreamer Core Library version 1.2.4
0:00:00.000678750 5108 0x1a400 INFO GST_INIT gst.c:503:init_pre: Using library installed in /usr/lib/arm-linux-gnueabihf
0:00:00.000987750 5108 0x1a400 INFO GST_INIT gst.c:513:init_pre: Linux tegra-ubuntu 3.10.40-g877a323 #3 SMP PREEMPT Fri Sep 14 14:01:25 CEST 2018 armv7l
0:00:00.020451834 5108 0x1a400 INFO GST_INIT gstmessage.c:123:_priv_gst_message_initialize: init messages
0:00:00.020897167 5108 0x1a400 INFO GST_INIT gstcontext.c:77:_priv_gst_context_initialize: init contexts
0:00:00.027699000 5108 0x1a400 INFO GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.030343917 5108 0x1a400 INFO GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin “staticelements”
0:00:00.030417334 5108 0x1a400 INFO GST_PLUGIN_LOADING gstplugin.c:227:gst_plugin_register_static: added static plugin “staticelements”, result: 1
0:00:00.030520000 5108 0x1a400 INFO GST_REGISTRY gstregistry.c:1680:ensure_current_registry: reading registry cache: /home/ubuntu/.cache/gstreamer-1.0/registry.arm.bin
0:00:00.087545750 5108 0x1a400 INFO GST_REGISTRY gstregistrybinary.c:617:priv_gst_registry_binary_read_cache: loaded /home/ubuntu/.cache/gstreamer-1.0/registry.arm.bin in 0.056974 seconds
0:00:00.087900584 5108 0x1a400 INFO GST_REGISTRY gstregistry.c:1539:scan_and_update_registry: Validating plugins from registry cache: /home/ubuntu/.cache/gstreamer-1.0/registry.arm.bin
0:00:00.088973500 5108 0x1a400 INFO GST_PLUGIN_LOADING gstplugin.c:1449:gst_plugin_ext_dep_extract_env_vars_paths: ignoring environment variable content ‘’: either not an absolute path or not a path at all
0:00:00.090323750 5108 0x1a400 INFO GST_REGISTRY gstregistry.c:1638:scan_and_update_registry: Registry cache has not changed
0:00:00.090493917 5108 0x1a400 INFO GST_REGISTRY gstregistry.c:1715:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.090824334 5108 0x1a400 INFO GST_INIT gst.c:707:init_post: GLib runtime version: 2.40.2
0:00:00.090987500 5108 0x1a400 INFO GST_INIT gst.c:709:init_post: GLib headers version: 2.40.0
0:00:00.091144334 5108 0x1a400 INFO GST_INIT gst.c:350:gst_init_check: initialized GStreamer successfully
0:00:00.094410667 5108 0x1a400 INFO GST_PLUGIN_LOADING gstplugin.c:830:gst_plugin_load_file: plugin “/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstmultifile.so” loaded
0:00:00.094613834 5108 0x1a400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:365:gst_element_factory_create: creating element “multifilesrc”
0:00:00.095061667 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstBaseSrc@0x1480f8 adding pad ‘src’
0:00:00.102451917 5108 0x1a400 INFO GST_PLUGIN_LOADING gstplugin.c:830:gst_plugin_load_file: plugin “/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstcoreelements.so” loaded
0:00:00.102507667 5108 0x1a400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:365:gst_element_factory_create: creating element “capsfilter”
0:00:00.103262667 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstBaseTransform@0x14e090 adding pad ‘sink’
0:00:00.103329750 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstBaseTransform@0x14e090 adding pad ‘src’
0:00:00.103502834 5108 0x1a400 INFO GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.104337500 5108 0x1a400 INFO GST_PLUGIN_LOADING gstplugin.c:830:gst_plugin_load_file: plugin “/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideoconvert.so” loaded
0:00:00.104835667 5108 0x1a400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:365:gst_element_factory_create: creating element “videoconvert”
0:00:00.105316750 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstBaseTransform@0x154108 adding pad ‘sink’
0:00:00.105403667 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstBaseTransform@0x154108 adding pad ‘src’
0:00:00.105454084 5108 0x1a400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:365:gst_element_factory_create: creating element “capsfilter”
0:00:00.105513084 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstBaseTransform@0x14e2b0 adding pad ‘sink’
0:00:00.105569834 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstBaseTransform@0x14e2b0 adding pad ‘src’
0:00:00.105637584 5108 0x1a400 INFO GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.106906584 5108 0x1a400 INFO GST_PLUGIN_LOADING gstplugin.c:830:gst_plugin_load_file: plugin “/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstrawparse.so” loaded
0:00:00.106968584 5108 0x1a400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element “videoparse” named “parse”
0:00:00.107198167 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstRawParse@0x158000 adding pad ‘sink’
0:00:00.107260417 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstRawParse@0x158000 adding pad ‘src’
0:00:00.108920334 5108 0x1a400 INFO x264enc gstx264enc.c:2492:plugin_init: x264 build: 142
0:00:00.109051000 5108 0x1a400 INFO GST_PLUGIN_LOADING gstplugin.c:830:gst_plugin_load_file: plugin “/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstx264.so” loaded
0:00:00.109111084 5108 0x1a400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element “x264enc” named “enc”
0:00:00.109696917 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstVideoEncoder@0x15ce18 adding pad ‘sink’
0:00:00.109765750 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstVideoEncoder@0x15ce18 adding pad ‘src’
0:00:00.109946750 5108 0x1a400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element “filesink” named “sink”
0:00:00.110180917 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:GstBaseSink@0x160258 adding pad ‘sink’
0:00:00.110264250 5108 0x1a400 INFO filesink gstfilesink.c:286:gst_file_sink_set_location: filename : fin.mp4
0:00:00.110300750 5108 0x1a400 INFO filesink gstfilesink.c:287:gst_file_sink_set_location: uri : file:///fin.mp4
0:00:00.110340917 5108 0x1a400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element “pipeline” named “test-pipeline”
0:00:00.110562834 5108 0x1a400 INFO GST_ELEMENT_PADS gstutils.c:1543:gst_element_link_pads_full: trying to link element multifilesrc0:(any) to element capsfilter0:(any)
0:00:00.110617917 5108 0x1a400 INFO GST_PADS gstutils.c:936:gst_pad_check_link: trying to link multifilesrc0:src and capsfilter0:sink
0:00:00.110690917 5108 0x1a400 INFO GST_PADS gstpad.c:3675:gst_pad_peer_query:capsfilter0:src pad has no peer
0:00:00.110741584 5108 0x1a400 INFO GST_PADS gstutils.c:1443:prepare_link_maybe_ghosting: multifilesrc0 and capsfilter0 in same bin, no need for ghost pads
0:00:00.110817917 5108 0x1a400 INFO GST_PADS gstpad.c:2120:gst_pad_link_prepare: trying to link multifilesrc0:src and capsfilter0:sink
0:00:00.110873500 5108 0x1a400 INFO GST_PADS gstpad.c:3675:gst_pad_peer_query:capsfilter0:src pad has no peer
0:00:00.110935917 5108 0x1a400 INFO GST_PADS gstpad.c:2322:gst_pad_link_full: linked multifilesrc0:src and capsfilter0:sink, successful
0:00:00.110974250 5108 0x1a400 INFO GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.111027917 5108 0x1a400 INFO GST_EVENT gstpad.c:5083:gst_pad_send_event_unchecked:multifilesrc0:src Received event on flushing pad. Discarding
0:00:00.111089417 5108 0x1a400 INFO GST_ELEMENT_PADS gstutils.c:1543:gst_element_link_pads_full: trying to link element capsfilter0:(any) to element videoconvert0:(any)
0:00:00.111131584 5108 0x1a400 INFO GST_PADS gstutils.c:936:gst_pad_check_link: trying to link capsfilter0:src and videoconvert0:sink
0:00:00.111187334 5108 0x1a400 INFO GST_PADS gstpad.c:3675:gst_pad_peer_query:videoconvert0:src pad has no peer
0:00:00.113527084 5108 0x1a400 INFO GST_PADS gstutils.c:1443:prepare_link_maybe_ghosting: capsfilter0 and videoconvert0 in same bin, no need for ghost pads
0:00:00.113586667 5108 0x1a400 INFO GST_PADS gstpad.c:2120:gst_pad_link_prepare: trying to link capsfilter0:src and videoconvert0:sink
0:00:00.113646084 5108 0x1a400 INFO GST_PADS gstpad.c:3675:gst_pad_peer_query:videoconvert0:src pad has no peer
0:00:00.116809250 5108 0x1a400 INFO GST_PADS gstpad.c:2322:gst_pad_link_full: linked capsfilter0:src and videoconvert0:sink, successful
0:00:00.116865917 5108 0x1a400 INFO GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.116903167 5108 0x1a400 INFO GST_EVENT gstpad.c:5083:gst_pad_send_event_unchecked:capsfilter0:src Received event on flushing pad. Discarding
0:00:00.116953584 5108 0x1a400 INFO GST_ELEMENT_PADS gstutils.c:1543:gst_element_link_pads_full: trying to link element videoconvert0:(any) to element capsfilter1:(any)
0:00:00.117000750 5108 0x1a400 INFO GST_PADS gstutils.c:936:gst_pad_check_link: trying to link videoconvert0:src and capsfilter1:sink
0:00:00.117225750 5108 0x1a400 INFO GST_PADS gstpad.c:3675:gst_pad_peer_query:capsfilter1:src pad has no peer
0:00:00.117281417 5108 0x1a400 INFO GST_PADS gstutils.c:1443:prepare_link_maybe_ghosting: videoconvert0 and capsfilter1 in same bin, no need for ghost pads
0:00:00.117326000 5108 0x1a400 INFO GST_PADS gstpad.c:2120:gst_pad_link_prepare: trying to link videoconvert0:src and capsfilter1:sink
0:00:00.117533667 5108 0x1a400 INFO GST_PADS gstpad.c:3675:gst_pad_peer_query:capsfilter1:src pad has no peer
0:00:00.117587584 5108 0x1a400 INFO GST_PADS gstpad.c:2322:gst_pad_link_full: linked videoconvert0:src and capsfilter1:sink, successful
0:00:00.117625917 5108 0x1a400 INFO GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.117659750 5108 0x1a400 INFO GST_EVENT gstpad.c:5083:gst_pad_send_event_unchecked:videoconvert0:src Received event on flushing pad. Discarding
0:00:00.117703667 5108 0x1a400 INFO GST_ELEMENT_PADS gstutils.c:1543:gst_element_link_pads_full: trying to link element capsfilter1:(any) to element parse:(any)
0:00:00.117744584 5108 0x1a400 INFO GST_PADS gstutils.c:936:gst_pad_check_link: trying to link capsfilter1:src and parse:sink
0:00:00.118019417 5108 0x1a400 INFO GST_PADS gstutils.c:1443:prepare_link_maybe_ghosting: capsfilter1 and parse in same bin, no need for ghost pads
0:00:00.118068667 5108 0x1a400 INFO GST_PADS gstpad.c:2120:gst_pad_link_prepare: trying to link capsfilter1:src and parse:sink
0:00:00.118319417 5108 0x1a400 INFO GST_PADS gstpad.c:2322:gst_pad_link_full: linked capsfilter1:src and parse:sink, successful
0:00:00.118357667 5108 0x1a400 INFO GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.118390084 5108 0x1a400 INFO GST_EVENT gstpad.c:5083:gst_pad_send_event_unchecked:capsfilter1:src Received event on flushing pad. Discarding
0:00:00.118433000 5108 0x1a400 INFO GST_ELEMENT_PADS gstutils.c:1543:gst_element_link_pads_full: trying to link element parse:(any) to element enc:(any)
0:00:00.118473584 5108 0x1a400 INFO GST_PADS gstutils.c:936:gst_pad_check_link: trying to link parse:src and enc:sink
0:00:00.118540667 5108 0x1a400 INFO x264enc gstx264enc.c:509:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth
0:00:00.118594167 5108 0x1a400 INFO GST_PADS gstutils.c:1443:prepare_link_maybe_ghosting: parse and enc in same bin, no need for ghost pads
0:00:00.118639584 5108 0x1a400 INFO GST_PADS gstpad.c:2120:gst_pad_link_prepare: trying to link parse:src and enc:sink
0:00:00.118689917 5108 0x1a400 INFO x264enc gstx264enc.c:509:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth
0:00:00.118735417 5108 0x1a400 INFO GST_PADS gstpad.c:2322:gst_pad_link_full: linked parse:src and enc:sink, successful
0:00:00.118771667 5108 0x1a400 INFO GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.118813834 5108 0x1a400 INFO GST_EVENT gstpad.c:5083:gst_pad_send_event_unchecked:parse:src Received event on flushing pad. Discarding
0:00:00.118857250 5108 0x1a400 INFO GST_ELEMENT_PADS gstutils.c:1543:gst_element_link_pads_full: trying to link element enc:(any) to element sink:(any)
0:00:00.118896167 5108 0x1a400 INFO GST_PADS gstutils.c:936:gst_pad_check_link: trying to link enc:src and sink:sink
0:00:00.118951084 5108 0x1a400 INFO GST_PADS gstutils.c:1443:prepare_link_maybe_ghosting: enc and sink in same bin, no need for ghost pads
0:00:00.118998417 5108 0x1a400 INFO GST_PADS gstpad.c:2120:gst_pad_link_prepare: trying to link enc:src and sink:sink
0:00:00.119046000 5108 0x1a400 INFO GST_PADS gstpad.c:2322:gst_pad_link_full: linked enc:src and sink:sink, successful
0:00:00.119081000 5108 0x1a400 INFO GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.119113167 5108 0x1a400 INFO GST_EVENT gstpad.c:5083:gst_pad_send_event_unchecked:enc:src Received event on flushing pad. Discarding
0:00:00.119201250 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY
0:00:00.119553250 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:00.119595750 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.119662084 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘sink’ changed state to 2(READY) successfully
0:00:00.119711167 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY
0:00:00.119750000 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:00.119783167 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.119842667 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘enc’ changed state to 2(READY) successfully
0:00:00.119884084 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY
0:00:00.119922084 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:00.119954834 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.119995834 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘parse’ changed state to 2(READY) successfully
0:00:00.120037084 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY
0:00:00.120073250 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:00.120106084 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.120147334 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter1’ changed state to 2(READY) successfully
0:00:00.120188750 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY
0:00:00.120225917 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:00.120259000 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.120299500 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘videoconvert0’ changed state to 2(READY) successfully
0:00:00.120340417 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY
0:00:00.120377167 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:00.120409334 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.120449250 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter0’ changed state to 2(READY) successfully
0:00:00.120488334 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY
0:00:00.120525000 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:00.120557334 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.120598084 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘multifilesrc0’ changed state to 2(READY) successfully
0:00:00.120640667 5108 0x1a400 INFO GST_STATES gstelement.c:2303:gst_element_continue_state: committing state from NULL to READY, pending PLAYING, next PAUSED
0:00:00.120677084 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (PLAYING pending)
0:00:00.120716417 5108 0x1a400 INFO GST_STATES gstelement.c:2310:gst_element_continue_state: continue state change READY to PAUSED, final PLAYING
0:00:00.120775417 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED
0:00:00.120855667 5108 0x1a400 INFO GST_STATES gstbin.c:2662:gst_bin_change_state_func: child ‘sink’ is changing state asynchronously to PAUSED
0:00:00.120899084 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED
0:00:00.120946250 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:00.120979750 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.121019750 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘enc’ changed state to 3(PAUSED) successfully
0:00:00.121060250 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED
0:00:00.121138334 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:00.121174000 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.121214750 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘parse’ changed state to 3(PAUSED) successfully
0:00:00.121256667 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED
0:00:00.121302834 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:00.121336250 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.121377417 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter1’ changed state to 3(PAUSED) successfully
0:00:00.121419917 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED
0:00:00.121464834 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:00.121497917 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.121537584 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘videoconvert0’ changed state to 3(PAUSED) successfully
0:00:00.121578667 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED
0:00:00.121624250 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:00.121657584 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.121697500 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter0’ changed state to 3(PAUSED) successfully
0:00:00.121736584 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED
0:00:00.121787334 5108 0x1a400 INFO basesrc gstbasesrc.c:1296:gst_base_src_do_seek: seeking: bytes segment start=0, stop=-1, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0, base=0, position 0, duration -1
0:00:00.121888750 5108 0x1a400 INFO task gsttask.c:431:gst_task_set_lock: setting stream lock 0x14a0dc on task 0x163828
0:00:00.121925417 5108 0x1a400 INFO GST_PADS gstpad.c:5415:gst_pad_start_task:multifilesrc0:src created task 0x163828
0:00:00.122073250 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:00.122113917 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.122156000 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘multifilesrc0’ changed state to 3(PAUSED) successfully
0:00:00.122334500 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.122389000 5108 0x150d50 INFO GST_ELEMENT_PADS gstelement.c:894:gst_element_get_static_pad: no such pad ‘sink’ in element “multifilesrc0”
0:00:00.122464584 5108 0x150d50 FIXME default gstutils.c:3648:gst_pad_create_stream_id_printf_valist:multifilesrc0:src Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:00.122979334 5108 0x150d50 INFO GST_EVENT gstevent.c:709:gst_event_new_segment: creating segment event bytes segment start=0, stop=-1, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0, base=0, position 0, duration -1
0:00:00.123076500 5108 0x150d50 INFO basesrc gstbasesrc.c:2772:gst_base_src_loop: marking pending DISCONT
0:00:00.123512584 5108 0x150d50 INFO GST_EVENT gstevent.c:628:gst_event_new_caps: creating caps event video/x-raw, width=(int)640, height=(int)512, aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)1/1, format=(string)I420
0:00:00.124205917 5108 0x150d50 INFO basetransform gstbasetransform.c:1335:gst_base_transform_setcaps: reuse caps
0:00:00.124296167 5108 0x150d50 INFO GST_EVENT gstevent.c:628:gst_event_new_caps: creating caps event video/x-raw, width=(int)640, height=(int)512, aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)1/1, format=(string)I420
0:00:00.124415334 5108 0x150d50 INFO basetransform gstbasetransform.c:1335:gst_base_transform_setcaps: reuse caps
0:00:00.124451834 5108 0x150d50 INFO GST_EVENT gstevent.c:628:gst_event_new_caps: creating caps event video/x-raw, width=(int)640, height=(int)512, aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)1/1, format=(string)I420
0:00:00.124544750 5108 0x150d50 INFO GST_EVENT gstevent.c:709:gst_event_new_segment: creating segment event time segment start=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.124625750 5108 0x150d50 INFO GST_EVENT gstevent.c:628:gst_event_new_caps: creating caps event video/x-raw, format=(string)I420, width=(int)640, height=(int)512, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, framerate=(fraction)25/1
0:00:00.124699000 5108 0x150d50 INFO x264enc gstx264enc.c:509:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth
0:00:00.124765667 5108 0x150d50 INFO x264enc gstx264enc.c:509:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth
0:00:00.137756750 5108 0x150d50 INFO x264enc gstx264enc.c:1797:gst_x264_enc_set_format: downstream has ANY caps, outputting byte-stream
0:00:00.137925667 5108 0x150d50 INFO x264enc :0:: using SAR=1/1

0:00:00.140763584 5108 0x150d50 INFO x264enc :0:: using cpu capabilities: ARMv6 NEON FastNeonMRC

0:00:00.152191750 5108 0x150d50 INFO x264enc :0:: profile High, level 3.0

0:00:00.152536500 5108 0x150d50 INFO x264enc gstx264enc.c:1741:gst_x264_enc_set_latency: Updating latency to 0:00:01.600000000 (40 frames)
0:00:00.152623334 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.174758834 5108 0x150d50 INFO basesrc gstbasesrc.c:2668:gst_base_src_loop: pausing after gst_base_src_get_range() = eos
0:00:00.364175084 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.364266167 5108 0x150d50 INFO GST_EVENT gstevent.c:628:gst_event_new_caps: creating caps event video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)3, profile=(string)high, width=(int)640, height=(int)512, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)25/1
0:00:00.364463250 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.364644667 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.364705084 5108 0x150d50 INFO GST_STATES gstbin.c:3112:bin_handle_async_done: committing state from READY to PAUSED, old pending PLAYING
0:00:00.364755250 5108 0x150d50 INFO GST_STATES gstbin.c:3141:bin_handle_async_done: continue state change, pending PLAYING
0:00:00.364802917 5108 0x150d50 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (PLAYING pending)
0:00:00.364865750 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.364921417 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.365084584 5108 0xb5e02060 INFO GST_STATES gstbin.c:2935:gst_bin_continue_func: continue state change PAUSED to PLAYING, final PLAYING
0:00:00.365318417 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.365480667 5108 0xb5e02060 INFO GST_EVENT gstevent.c:1184:gst_event_new_latency: creating latency event 0:00:00.000000000
0:00:00.365586584 5108 0xb5e02060 INFO bin gstbin.c:2499:gst_bin_do_latency_func: configured latency of 0:00:00.000000000
0:00:00.365675584 5108 0xb5e02060 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.365851167 5108 0xb5e02060 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PLAYING
0:00:00.370045250 5108 0xb5e02060 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.370241667 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.370351417 5108 0xb5e02060 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘sink’ changed state to 4(PLAYING) successfully
0:00:00.370524000 5108 0xb5e02060 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.370685417 5108 0xb5e02060 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PLAYING
0:00:00.370861834 5108 0xb5e02060 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.370981834 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.371021334 5108 0xb5e02060 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘enc’ changed state to 4(PLAYING) successfully
0:00:00.371069000 5108 0xb5e02060 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.371109084 5108 0xb5e02060 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PLAYING
0:00:00.371143000 5108 0xb5e02060 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.371215250 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.371423667 5108 0xb5e02060 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘parse’ changed state to 4(PLAYING) successfully
0:00:00.371475917 5108 0xb5e02060 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.371595917 5108 0xb5e02060 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PLAYING
0:00:00.371630834 5108 0xb5e02060 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.371684417 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.371733750 5108 0xb5e02060 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter1’ changed state to 4(PLAYING) successfully
0:00:00.371783084 5108 0xb5e02060 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.371836000 5108 0xb5e02060 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PLAYING
0:00:00.371975500 5108 0xb5e02060 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.372030250 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.372069084 5108 0xb5e02060 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘videoconvert0’ changed state to 4(PLAYING) successfully
0:00:00.372116000 5108 0xb5e02060 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.372154417 5108 0xb5e02060 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PLAYING
0:00:00.372188667 5108 0xb5e02060 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.372240584 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.372278834 5108 0xb5e02060 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter0’ changed state to 4(PLAYING) successfully
0:00:00.372320417 5108 0xb5e02060 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.372361834 5108 0xb5e02060 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PLAYING
0:00:00.372396167 5108 0xb5e02060 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.372445417 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:00.372482084 5108 0xb5e02060 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘multifilesrc0’ changed state to 4(PLAYING) successfully
0:00:00.372526000 5108 0xb5e02060 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PLAYING
0:00:00.372559417 5108 0xb5e02060 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.372608084 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
0:00:01.467128500 5108 0x1a400 INFO GST_BUS gstbus.c:545:gst_bus_timed_pop_filtered: we got woken up, recheck for message
End-Of-Stream reached.
0:00:01.467304583 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED
0:00:01.467456583 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:01.467482333 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:00:01.467519167 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘sink’ changed state to 3(PAUSED) successfully
0:00:01.467549083 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED
0:00:01.467573083 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:01.467591667 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:00:01.467618083 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘enc’ changed state to 3(PAUSED) successfully
0:00:01.467644750 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED
0:00:01.467669000 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:01.467687250 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:00:01.467713333 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘parse’ changed state to 3(PAUSED) successfully
0:00:01.467740500 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED
0:00:01.467762917 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:01.467780750 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:00:01.467819167 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter1’ changed state to 3(PAUSED) successfully
0:00:01.467846833 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED
0:00:01.467868917 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:01.467886583 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:00:01.467911917 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘videoconvert0’ changed state to 3(PAUSED) successfully
0:00:01.467939083 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED
0:00:01.467961417 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:01.467979833 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:00:01.468005833 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter0’ changed state to 3(PAUSED) successfully
0:00:01.468030250 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED
0:00:01.468053083 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to PAUSED
0:00:01.468070667 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:00:01.468096000 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘multifilesrc0’ changed state to 3(PAUSED) successfully
0:00:01.468124250 5108 0x1a400 INFO GST_STATES gstelement.c:2303:gst_element_continue_state: committing state from PLAYING to PAUSED, pending NULL, next READY
0:00:01.468145167 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (NULL pending)
0:00:01.468169417 5108 0x1a400 INFO GST_STATES gstelement.c:2310:gst_element_continue_state: continue state change PAUSED to READY, final NULL
0:00:01.468214750 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY
0:00:01.468393083 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:01.468416417 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:00:01.468443583 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘sink’ changed state to 2(READY) successfully
0:00:01.468470250 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY
0:00:01.468520917 5108 0x150d50 INFO GST_EVENT gstpad.c:5083:gst_pad_send_event_unchecked:sink:sink Received event on flushing pad. Discarding
0:00:01.468598417 5108 0x1a400 INFO x264enc :0:: frame I:1 Avg QP:50.43 size: 68518

0:00:01.468635417 5108 0x1a400 INFO x264enc :0:: frame P:6 Avg QP:51.00 size: 7348

0:00:01.468666083 5108 0x1a400 INFO x264enc :0:: mb I I16…4: 0.0% 89.6% 10.4%

0:00:01.468687750 5108 0x1a400 INFO x264enc :0:: mb P I16…4: 2.7% 4.3% 0.0% P16…4: 53.8% 8.9% 29.5% 0.0% 0.0% skip: 0.8%

0:00:01.468719167 5108 0x1a400 INFO x264enc :0:: 8x8 transform intra:81.3% inter:70.9%

0:00:01.468743250 5108 0x1a400 INFO x264enc :0:: coded y,uvDC,uvAC intra: 57.2% 100.0% 99.3% inter: 1.4% 98.6% 75.4%

0:00:01.468769333 5108 0x1a400 INFO x264enc :0:: i16 v,h,dc,p: 49% 12% 37% 1%

0:00:01.468803667 5108 0x1a400 INFO x264enc :0:: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 5% 7% 67% 4% 3% 3% 4% 3% 4%

0:00:01.468838167 5108 0x1a400 INFO x264enc :0:: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 4% 11% 47% 7% 6% 6% 7% 4% 8%

0:00:01.468869083 5108 0x1a400 INFO x264enc :0:: i8c dc,h,v,p: 94% 1% 1% 4%

0:00:01.468893167 5108 0x1a400 INFO x264enc :0:: Weighted P-Frames: Y:0.0% UV:0.0%

0:00:01.468917583 5108 0x1a400 INFO x264enc :0:: ref P L0: 71.0% 1.1% 21.6% 6.4%

0:00:01.468937750 5108 0x1a400 INFO x264enc :0:: kb/s:3217.26

0:00:01.472269333 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:01.472324333 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:00:01.472373500 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘enc’ changed state to 2(READY) successfully
0:00:01.472419833 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY
0:00:01.472510500 5108 0x150d50 INFO task gsttask.c:300:gst_task_func:multifilesrc0:src Task going to paused
0:00:01.472548000 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:01.472608833 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:00:01.472652500 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘parse’ changed state to 2(READY) successfully
0:00:01.472697083 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY
0:00:01.472758583 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:01.472804167 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:00:01.472847333 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter1’ changed state to 2(READY) successfully
0:00:01.472890417 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY
0:00:01.472950250 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:01.472984917 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:00:01.473026667 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘videoconvert0’ changed state to 2(READY) successfully
0:00:01.473070167 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY
0:00:01.473127583 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:01.473162833 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:00:01.473204250 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter0’ changed state to 2(READY) successfully
0:00:01.473245083 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY
0:00:01.473299750 5108 0x150d50 INFO task gsttask.c:302:gst_task_func:multifilesrc0:src Task resume from paused
0:00:01.473369750 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to READY
0:00:01.474017500 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:00:01.474067750 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘multifilesrc0’ changed state to 2(READY) successfully
0:00:01.474115500 5108 0x1a400 INFO GST_STATES gstelement.c:2303:gst_element_continue_state: committing state from PAUSED to READY, pending NULL, next NULL
0:00:01.474156667 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (NULL pending)
0:00:01.474196833 5108 0x1a400 INFO GST_STATES gstelement.c:2310:gst_element_continue_state: continue state change READY to NULL, final NULL
0:00:01.474259083 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL
0:00:01.474569000 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to NULL
0:00:01.474612500 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.474657417 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘sink’ changed state to 1(NULL) successfully
0:00:01.474702000 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL
0:00:01.474747000 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to NULL
0:00:01.474780250 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.474836083 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘enc’ changed state to 1(NULL) successfully
0:00:01.474878333 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL
0:00:01.474922000 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to NULL
0:00:01.474955333 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.474996167 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘parse’ changed state to 1(NULL) successfully
0:00:01.475038333 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL
0:00:01.475082167 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to NULL
0:00:01.475116500 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.475157667 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter1’ changed state to 1(NULL) successfully
0:00:01.475199250 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL
0:00:01.475242250 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to NULL
0:00:01.475275500 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.475316750 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘videoconvert0’ changed state to 1(NULL) successfully
0:00:01.475358750 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL
0:00:01.475402167 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to NULL
0:00:01.475435250 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.475476250 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘capsfilter0’ changed state to 1(NULL) successfully
0:00:01.475516333 5108 0x1a400 INFO GST_STATES gstbin.c:2227:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL
0:00:01.475558167 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to NULL
0:00:01.475591750 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.475632583 5108 0x1a400 INFO GST_STATES gstbin.c:2656:gst_bin_change_state_func: child ‘multifilesrc0’ changed state to 1(NULL) successfully
0:00:01.475745250 5108 0x1a400 INFO GST_STATES gstelement.c:2328:gst_element_continue_state: completed state change to NULL
0:00:01.475781917 5108 0x1a400 INFO GST_STATES gstelement.c:2233:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.475856083 5108 0x1a400 INFO GST_ELEMENT_PADS gstpad.c:1877:gst_pad_unlink: unlinking enc:src(0x14ad60) and sink:sink(0x14aea8)
0:00:01.475907417 5108 0x1a400 INFO GST_ELEMENT_PADS gstpad.c:1931:gst_pad_unlink: unlinked enc:src and sink:sink
0:00:01.475957167 5108 0x1a400 INFO GST_PARENTAGE gstbin.c:1556:gst_bin_remove_func: removed child “sink”
0:00:01.476001000 5108 0x1a400 INFO GST_REFCOUNTING gstelement.c:2873:gst_element_dispose: dispose
0:00:01.476034917 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:766:gst_element_remove_pad: removing pad ‘sink’
0:00:01.476082500 5108 0x1a400 INFO GST_REFCOUNTING gstelement.c:2917:gst_element_dispose: parent class dispose
0:00:01.476119583 5108 0x1a400 INFO GST_REFCOUNTING gstelement.c:2948:gst_element_finalize: finalize
0:00:01.476151250 5108 0x1a400 INFO GST_REFCOUNTING gstelement.c:2953:gst_element_finalize: finalize parent
0:00:01.476189583 5108 0x1a400 INFO GST_ELEMENT_PADS gstpad.c:1877:gst_pad_unlink: unlinking parse:src(0x14aad0) and enc:sink(0x14ac18)
0:00:01.476236833 5108 0x1a400 INFO GST_ELEMENT_PADS gstpad.c:1931:gst_pad_unlink: unlinked parse:src and enc:sink
0:00:01.476288083 5108 0x1a400 INFO GST_PARENTAGE gstbin.c:1556:gst_bin_remove_func: removed child “enc”
0:00:01.476328667 5108 0x1a400 INFO GST_REFCOUNTING gstelement.c:2873:gst_element_dispose: dispose
0:00:01.476361083 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:766:gst_element_remove_pad: removing pad ‘sink’
0:00:01.476402000 5108 0x1a400 INFO GST_ELEMENT_PADS gstelement.c:766:gst_element_remo

Hi,
You may try to launch a pipeline in C code. Below is a sample for your reference:
https://devtalk.nvidia.com/default/topic/1015571/jetson-tx2/what-is-maximum-video-encoding-resolution-in-pixels-/post/5253760/#5253760

It is pure gstreamer issue, you can also go to gstreamer forum
http://gstreamer-devel.966125.n4.nabble.com/