AW: AW: Gstreamer output to a buffer then file On Jetson tegra Tx2

aasim mdamirraza at gmail.com
Fri Feb 2 11:08:06 UTC 2018


Hi Thornton, 

I solved it,  Grate thanks for point me in right direction.   
*i have added. below code*

	/* get sink */
sink = gst_bin_get_by_name (GST_BIN (gst_pipeline), "sink");
g_object_set(G_OBJECT(sink), "emit-signals", TRUE, "sync", FALSE, NULL);
g_signal_connect(sink, "new-sample", G_CALLBACK(on_new_sample_from_sink),
NULL);

*But video is fast forward need to work on command *


	sprintf(launch_string_,
			"appsrc name=mysource !
video/x-h264,width=%d,height=%d,stream-format=byte-stream !",
			STREAM_SIZE.width(), STREAM_SIZE.height());

	sprintf(launch_string_ + strlen(launch_string_),
			" h264parse ! flvmux name=mux alsasrc device=plughw:2 ! audioresample !
audio/x-raw,rate=48000,channels=1 ! queue ! voaacenc bitrate=32000 ! queue !
mux. mux.  ! queue ! "
			"appsink name=sink ");






 



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list