gstreamer

How to cross-compile an application with library dependencies for Yocto Linux?

走远了吗. 提交于 2021-02-08 10:30:45
问题 I wrote an application on my laptop (Ubuntu 14.04) that depends on GStreamer and would like to cross-compile it for my Yocto Linux target (iMX6S-Wandboard). How do I cross-compile the application so that it runs on the target board and is able to use the GStreamer libraries? Thank you, Toan UDPATE: My Makefile: PACKAGES = gstreamer-1.0 override CFLAGS += `pkg-config --cflags $(PACKAGES)` -Wall -Wextra "-DDATADIR=\"$(DATADIR)/\"" -ffunction-sections -fdata-sections override LIBS += `pkg-config

No decoder available for type 'video/x-h264

隐身守侯 提交于 2021-02-07 06:25:09
问题 I am trying to run one of qt sample apps without any modification. It is called player and it is a multimedia widget demonstration. My system is Ubuntu 16.04 64bit. When I try to play a video, I see the following error in the console: No decoder available for type 'video/x-h264 Here is the full error after trying two different videos: Starting /home/aras/Qt5.7.0_Sept2016/Examples/Qt-5.7/multimediawidgets/build-player-Sept2016-Debug/player... Warning: "No decoder available for type 'video/x

Write image frames into gstreamer rtp pipeline

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-29 17:38:24
问题 I am trying to use the gstreamer pipeline to view an rtp stream in vlc on my computer. I mostly looked into this thread. My end result is something like this #!/usr/bin/env python import gi import numpy as np gi.require_version('Gst', '1.0') from gi.repository import Gst, GObject import time class RtpPipeline(object): def __init__(self): self.number_frames = 0 self.fps = 30 self.duration = 1 / self.fps * Gst.SECOND # duration of a frame in nanoseconds self.launch_string = 'appsrc name=source

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

How to record video and take picture at the same time with single camera in GStreamer?

风格不统一 提交于 2021-01-29 11:48:58
问题 I'm trying to record video and take picture at the same time with single camera in GStreamer. But I have an issue. I use tee to use both record video and take a picture. To set video duration, I use num-buffers , assume that I set 100. When take picture, the num-buffers needed is only 1 . But when using tee , num-buffers of take picture pipeline is also 100. So It's mean, my program take 100 picture and my image file is up to 5Mb(320x240). I just want it's take a single picture each 1 minute

Handling errors with gst-rtsp-server Python bindings

ⅰ亾dé卋堺 提交于 2021-01-29 11:30:41
问题 I have a simple Python program creates an RTSP stream using gst-rtsp-server. It works, but as-is there's no error handling. If the pipeline has a typo or there's some issue connecting to the video source, I don't see a stack trace or any logging. Where would I hook in code to handle problems like this? I should mention that I'm a complete beginner to the GObject world. I suspect there is a standard way for these libraries to report errors but I haven't been able to find anything in the

How to stream pc webcam with rtsp and GStreamer on python

蹲街弑〆低调 提交于 2021-01-29 06:26:29
问题 I'm trying to stream my laptop webcam frames with rtsp with python. To do this I'm using GStreamer. Browsing some examples on the web, I get the following code and I tested it with a local video in .mp4 format #!/usr/bin/env python import sysimport gi gi.require_version('Gst', '1.0') gi.require_version('GstRtspServer', '1.0') from gi.repository import Gst, GstRtspServer, GObject, GLib loop = GLib.MainLoop() Gst.init(None) class TestRtspMediaFactory(GstRtspServer.RTSPMediaFactory): def __init_

GStreamer - RTSP to HLS / mp4

穿精又带淫゛_ 提交于 2021-01-28 08:06:42
问题 I try to save RTSP h.264 stream to HLS mp4 files: gst-launch-1.0 rtspsrc location="rtsp://....." ! rtph264depay ! h264parse ! matroskamux ! hlssink max-files=0 playlist-length=0 location="/home/user/ch%05d.mp4" playlist-location="/home/user/list.m3u8" target-duration=15 As a result - there is only one file ch00000.mp4, which includes the whole videostream (3min instead of 15sec in "target-duration"). If I save to mpegtsmux / ts files - all is ok for the same command. What is wrong? Thanks in

How to use properties on gstreamer

人盡茶涼 提交于 2021-01-28 06:09:37
问题 I am new using g streamer, and i try to use the emit-stats properties in tsdemux How can I do to use this in my pipeline? I'm trying to get the program clock reference value of a signal transport stream but no way to get it. 回答1: Properties in GStreamer are normally accessed by using the normal GLib APIs : g_object_set and g_object_get. Doing g_object_set (v1_demux, "emit-stats", TRUE, NULL); , supposing that v1_demux is a GstTSDemux* , will start emitting messages containing the PTS and DTS

Linking against external libraries in gstreamer plugin using autotools

血红的双手。 提交于 2021-01-27 06:29:53
问题 I have written a gstreamer plugin using the boilerplate template refrenced in the gstreamer plugin writers guide (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-building-boiler.html). I first built the plugin without full implementation of the chain function (basically an empty plugin that passed data from the source to sink with no changes). I am now implementing the chain function to perform a basic filtering on the data in the buffer. The filtering uses an