gstreamer-1.0

gstreamer error when streaming side-by-side 720p

我只是一个虾纸丫 提交于 2021-02-11 18:22:45
问题 gstreamer raises an error when trying to stream side-by-side video from a stereoscopic UVC camera. I have a stereoscopic camera attached via USB to an ARM board, but on the highest resolution setting that the camera allows gstreamer is raising an Invalid Dimension 0x0 error. v4l2-ctl --list-formats-ext -d /dev/video2 ioctl: VIDIOC_ENUM_FMT Index : 0 Type : Video Capture Pixel Format: 'MJPG' (compressed) Name : Motion-JPEG Size: Discrete 2560x960 Interval: Discrete 0.017s (60.000 fps) Interval

Gstreamer duplicate 2channel audio

若如初见. 提交于 2021-02-11 14:49:50
问题 I would like to generate 2 audio tones using audiotestsrc but then duplicate those two channels across 16 channels (i.e 8channels of the one tone and 8channels of the other). I have a command that generates 2 tones for 2 channels: gst-launch-1.0 interleave name=i ! audioconvert ! wavenc ! filesink location=file.wav audiotestsrc wave=0 freq=100 volume=0.4 ! decodebin ! audioconvert ! "audio/x-raw,channels=1,channel-mask=(bitmask)0x1" ! queue ! i.sink_0 audiotestsrc wave=1 freq=150 volume=0.4 !

Adding/Inserting a GstBuffer to the Gstbuffer pool

﹥>﹥吖頭↗ 提交于 2021-02-11 14:29:27
问题 can any one guide me on how do we can add/insert the Gstbufffer to the GstBuffer pool? The GstBuffer Pool configuration is as shown below. pool = gst_buffer_pool_new(); config = gst_buffer_pool_get_config(pool); size = 420*420*3; // size of the pool buffer min_ = 1; max_ = 5; caps = gst_caps_from_string("video/x-raw"); gst_buffer_pool_config_set_params (config, caps, size, min_, max_); gst_caps_unref(caps); if ( gst_buffer_pool_set_config (pool, config)){ std::cout << "[INFO] Pool

Custom Gstreamer plugin - To support multiple (2) source pad

人走茶凉 提交于 2021-01-29 17:32:15
问题 Hope all are doing great! I wanted to know your valuable inputs and suggestions on the Gstreamer pipeline requirement mentioned below. My requirement is to design the custom plugin which can support two different input frames to perform the custom operation on it. The one frame will be coming from the scalar element and the second frame from the decoder element . Is it feasible to design a custom GStreamer plugin to support multiple source pads? If yes then can anyone guide me on how do it is

hls generated with gst (ts m3u8) not playing on safari (but working on chrome)

混江龙づ霸主 提交于 2020-12-15 05:34:42
问题 i'm trying to use gst to generate an hls video from frames within an existing pipeline. once i get the frame as a numpy array i use the following to create the ts and m3u8 file : appsrc emit-signals=True do-timestamp=true is-live=True caps={DEFAULT_CAPS}".format(**locals()) ! "queue" ! "videoconvert" ! "x264enc" ! "mpegtsmux" ! f"hlssink location={playlist}.%04d.ts " ! f"playlist-location={playlist}.m3u8"]) where default caps = "video/x-raw,format={VIDEO_FORMAT},width={WIDTH},height={HEIGHT}

Where are Gstreamer bus log messages?

落花浮王杯 提交于 2020-05-16 05:53:29
问题 I am trying to stream a .mp4 to a RTSP server using Gstreamer in python import sys import gi gi.require_version('Gst', '1.0') gi.require_version('GstRtspServer', '1.0') gi.require_version('GstRtsp', '1.0') from gi.repository import Gst, GstRtspServer, GObject, GLib, GstRtsp loop = GLib.MainLoop() Gst.init(None) file_path = "test.mp4" class TestRtspMediaFactory(GstRtspServer.RTSPMediaFactory): def __init__(self): GstRtspServer.RTSPMediaFactory.__init__(self) def do_create_element(self, url):

How to close GStreamer application automatic?

我与影子孤独终老i 提交于 2020-04-18 03:59:10
问题 I'm new in GStreamer. I do some applications follow tutorial and make my own application to write video. But my application can not close automatically after write video successfully and camera is still live (camera led is still light). I must do extra command is Ctrl + C to close. So how can I know the flag or signal output get from video writer when finish and close my application ? This is my code: #include <gst/gst.h> #include <stdio.h> #include <stdlib.h> //static GMainLoop *loop; int

realtime v4l2src for deepstream test1 c application does not work

大城市里の小女人 提交于 2020-03-05 04:57:07
问题 So my pipeline is as such which works with gst_parse_launch in the c code below but I wanted to use dynamic pipelines, and I am not getting error but at the same time, I am not getting the desired output too. gst-launch-1.0 v4l2src ! 'video/x-raw,format=(string)YUY2' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=(string)NV12' ! nvvidconv ! 'video/x-raw,format=(string)NV12' ! nvvideoconvert ! 'video/x-raw(memory:NVMM),format=(string)NV12' ! mux.sink_0 nvstreammux live-source=1 name=mux batch