gstreamer

Gstreamer 1.0 saving rtsp stream to file

纵饮孤独 提交于 2020-01-01 19:05:09
问题 Hi I tried to create pipeline in which I get rtsp stream ,encode it to x264 and save it to mp4 file format but it doesn't seem to work . gst-launch-1.0 rtspsrc location=rtsp://ip/url ! videoconvert ! queue ! x264enc ! mp4mux ! filesink location=test.mp4 回答1: Okey I got it: gst-launch-1.0 rtspsrc location=rtsp://ip/url ! rtph264depay ! h264parse ! mp4mux ! filesink location=file.mp4 Explanation: With rtph264depay we extract h264 streams from RTSP then we parse it with h264parse we use mp4 as

Images Slideshow in Gstreamer

只愿长相守 提交于 2020-01-01 15:36:19
问题 I want to make a GStreamer application which takes a xml file process its content which provides information like image url, its weight and the duration for which it is going to be displayed on the screen. The xml file can be clearly processed in C using libxml. But how can we create a slideshow of the images using the GStreamer libraries. I want to use GStreamer because the hardware and the SDK I am using provide native support for GStreamer. Are there any GStreamer plugins to do the same.

Multithreaded Gstreamer w/ PyGTK crashing (xcb_xlib_threads_sequence_lost)

本秂侑毒 提交于 2020-01-01 12:13:06
问题 I understand that one is not supposed to update the UI from other threads in gtk , or face consequences, but I am not sure how I can avoid that while using gstreamer . My application crashes from time to time during video stream initialization with a following complaint: [xcb] Unknown sequence number while processing queue [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. python: ../../src/xcb_io.c:274: poll_for_event:

Multithreaded Gstreamer w/ PyGTK crashing (xcb_xlib_threads_sequence_lost)

烈酒焚心 提交于 2020-01-01 12:13:04
问题 I understand that one is not supposed to update the UI from other threads in gtk , or face consequences, but I am not sure how I can avoid that while using gstreamer . My application crashes from time to time during video stream initialization with a following complaint: [xcb] Unknown sequence number while processing queue [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. python: ../../src/xcb_io.c:274: poll_for_event:

Bizarre Intermittent Error on Video (GStreamer)

耗尽温柔 提交于 2020-01-01 05:45:08
问题 I have a project that runs Python 2.7, PyGTK 2.24, and the most recent version of PyGST. I am getting a weird intermittent error in the following code. With the first, longer error, the video will play just fine, and the error will only appear AFTER I close the video window. The second prevents the window from opening at all. import pygtk pygtk.require('2.0') import gtk, pango import pygst pygst.require('0.10') import gst import Trailcrest import os, sys class Video: def __init__(self): def

CMake linking problem

我怕爱的太早我们不能终老 提交于 2020-01-01 05:21:10
问题 I am trying to use CMake to compile a C++ application that uses the C library GStreamer. My main.cpp file looks like this: extern "C" { #include <gst/gst.h> #include <glib.h> } int main(int argc, char* argv[]) { GMainLoop *loop; GstElement *pipeline, *source, *demuxer, *decoder, *conv, *sink; GstBus *bus; /* Initialisation */ gst_init (&argc, &argv); return 0; } This works: g++ -Wall $(pkg-config --cflags --libs gstreamer-0.10) main.cpp -o MPEG4GStreamer How to I make it with CMake? My

Why can I stream h264 encoded video from webcam to BOTH display and file, but NOT raw video?

ぃ、小莉子 提交于 2020-01-01 00:43:10
问题 I want to stream raw video from a Logitech C920 webcam and while both displaying and saving the video to file using GStreamer 1.0. This works if I stream h264 encoded video from the camera (the camera provides hardware encoded h264), but it fails if I stream raw video from the camera. However, if I only display, or only save to file, streaming raw video works. Why does it work with a h264 video stream but not with a raw video stream? h264 encoded video stream from camera to BOTH display and

Combine multiple videos into one

泪湿孤枕 提交于 2019-12-31 23:13:26
问题 I have three videos: a lecture that was filmed with a video camera a video of the desktop capture of the computer used in the lecture and the video of the whiteboard I want to create a final video with those three components taking up a certain region of the screen. Is open-source software that would allow me to do this (mencoder, ffmpeg, virtualdub..)? Which do you recommend? Or is there a C/C++ API that would enable me to create something like that programmatically? Edit There will be

interfacing gobject with C++

僤鯓⒐⒋嵵緔 提交于 2019-12-31 06:58:47
问题 I’m trying to create a custom audio sink plugin for gstreamer using the Gst::AudioSink as a base class. For me this involves multiple learning curves as I’m new to gstreamer, gstreamermm and gobject. Also I have no background or real interest in gtkmm as I’m not working on GUI code at present. I am trying to create a class along the lines of: class MyAudioSink: public Gst::AudioSink { public: explicit MyAudioSink(KantarAudioSink *gobj); virtual ~MyAudioSink(); static void class_init(Gst:

rtsp streaming on java

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-31 03:36:24
问题 can anyone please help me with a tutorial on how to implement a RTSP streaming server in java using gstreamer. link text 回答1: RTSP build up procedure Server (The code is in C but look at my client code to see how gstreamer-java APIs are used. It should be fairly straight forward) I modified the code from the URL http://www.ip-sense.com/linuxsense/how-to-develop-a-rtsp-server-in-linux-using-gstreamer/ /* GStreamer * Copyright (C) 2008 Wim Taymans <wim.taymans at gmail.com> * Copyright (c) 2012