filesink and tcpserversink

Akmal Hisyam akmalhisyam36 at gmail.com
Wed Jul 11 09:06:29 UTC 2018


Hello everyone,

I'm currently using GStreamer 1.8.3 on Jetson TX2 Linux. By using the
pipeline below on command line, it works perfectly.

gst-launch-1.0 nvcamerasrc aeLock=true sensor-id=0 fpsRange='30.0 30.0'
> intent=3 ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080,
> format=(string)I420, framerate=(fraction)30/1' ! tee name=t ! omxh264enc
> bitrate=400000 control-rate=constant-skip-frames ! mpegtsmux name=mux !
> filesink location=test.mp4 t. ! queue ! nvtee ! nvvidconv ! 'video/x-raw,
> width=(int)640, height=(int)480' ! x264enc tune=zerolatency
> byte-stream=true ! tcpserversink host=192.168.x.x port=7001


But when I'm using the same pipeline in gst_parse_launch in a C/C++
program,

gst_parse_launch("nvcamerasrc aeLock=true sensor-id=0 fpsRange='30.0 30.0'
> intent=3 ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080,
> format=(string)I420, framerate=(fraction)30/1' ! tee name=t ! omxh264enc
> bitrate=400000 control-rate=constant-skip-frames ! mpegtsmux name=mux !
> filesink location=test.mp4 t. ! queue ! nvtee ! nvvidconv ! 'video/x-raw,
> width=(int)640, height=(int)480' ! x264enc tune=zerolatency
> byte-stream=true ! tcpserversink host=192.168.x.x port=7001", NULL);


It gives me these kinds of errors and warning :

(gstleopard:4137): GStreamer-CRITICAL **: gst_element_make_from_uri:
> assertion 'gst_uri_is_valid (uri)' failed
> (gstleopard:4137): GStreamer-CRITICAL **: gst_element_make_from_uri:
> assertion 'gst_uri_is_valid (uri)' failed
> (gstleopard:4137): GStreamer-WARNING **: Trying to link elements t and
> queue0 that don't share a common ancestor: queue0 hasn't been added to a
> bin or pipeline, and t is in pipeline0


Anybody knows some tricks to make it work on C/C++ program?

Thanks in advance
Akmal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180711/d43117fb/attachment.html>


More information about the gstreamer-devel mailing list