gstreamer

Gstreamer: Pausing/resuming video in RTP streams

时光总嘲笑我的痴心妄想 提交于 2019-12-01 00:58:29
I'm constructing a gstreamer pipeline that receives two RTP streams from an networked source: ILBC Audio stream + corresponding RTCP stream H263 Video stream + corresponding RTCP stream Everything is put into one gstreamer pipeline so it will use the RTCP from both streams to synchronize audio/video. So far I've come up with this (using gst-launch for prototyping): gst-launch -vvv gstrtpbin name=rtpbin udpsrc caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-2000" port=40000 ! rtpbin.recv_rtp_sink_0 rtpbin. ! rtph263pdepay ! ffdec_h263 ! xvimagesink

GStreamer: how to connect dynamic pads

天涯浪子 提交于 2019-11-30 20:31:57
I'm trying to use GStreamer to play MP4 video from a file. I have managed to play the file using playbin2 and from the command prompt using: gst-launch filesrc location=bbb.mp4 ! decodebin2 ! autovideosink I am expecting in the future that I will need to create more complicated pipelines and hence why I'm attempting to 'program' the pipeline. In my program I am attempting to replicate the pipeline above, however I have an issue which I suspect is related to connecting the dynamic or "sometimes" source pad of decodebin2 to the autovideo sink. I am using these elements only to keep things as

Unable to build GStreamer for Android Tutorials

£可爱£侵袭症+ 提交于 2019-11-30 19:50:01
I'm running into a number of issues attempting to build the GStreamer Android tutorials. My environment is: Mac OS X 7 Android SDK version 17 Android NDK 8d I am able to build and run the NDK samples both in Eclipse and from the command line. I have downloaded http://cdn.gstreamer.com/android/arm/gstreamer-sdk-android-arm-debug-2012.11.tar.bz2 and added the GSTREAMER_SDK_ROOT_ANDROID environment variable to my .bash_profile. When I try to build android-tutorial-1 via Eclipse I get the following error: 12:12:05 **** Incremental Build of configuration Default for project Tutorial1 **** /apps

DrawingArea Cannot Get XID

社会主义新天地 提交于 2019-11-30 19:39:28
问题 I have the following Python 2.7/PyGObject 3.0/PyGST 0.10 module: from gi.repository import Gtk, Gdk, GdkPixbuf import pango import pygst pygst.require('0.10') import gst import Trailcrest import os, sys import cairo from math import pi class Video: def __init__(self): def on_message(bus, message): if message.type == gst.MESSAGE_EOS: # End of Stream player.seek(1.0, gst.FORMAT_TIME, gst.SEEK_FLAG_FLUSH, gst.SEEK_TYPE_SET, 5000000000, gst.SEEK_TYPE_NONE, 6000000000) elif message.type == gst

GStreamer gst_element_factory_make fails

一曲冷凌霜 提交于 2019-11-30 19:24:28
问题 I'm trying out a GStreamer test application, but at runtime the following line fails: demuxer = gst_element_factory_make ("oggdemux", "ogg-demuxer"); // returns NULL I am using MacOSX and installed GStreamer, libogg and vorbis-tools through MacPorts. So I don't see why it fails. Any suggestions on how to make it work? EDIT: SOLVED! The problem was that I needed to install the autodetect plugin from the gst-plugins-good package. Here's a list of actions that made it work: Remove the MacPorts

Installing Gstreamer-1.0 on Mac OS X Mavericks

两盒软妹~` 提交于 2019-11-30 09:48:46
I want to install Gstreamer-1.0 on Mac OS X Mavericks. So I already install gstreamer-1.0-1.6.0-x86_64.pkg and gstreamer-1.0-devel-1.6.0-x86_64.pkg from here . After that I tried to run something like this: gst-launch-1.0 fakesrc ! fakesink But got error: -bash: gst-launch-1.0: command not found So how I can install and use Gstreamer-1.0 on Mac OS X Mavericks? Som From https://stackoverflow.com/a/30873313/1162305 Try installing them with the following commands from your terminal: brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-ffmpeg The package

Gstreamer tcpserversink v0.10 vs 1.0 and HTML5 video tag

拈花ヽ惹草 提交于 2019-11-30 07:38:31
I am embedding a HTML5 video tag in my site, the source being a gstreamer stream. I have a pipeline working on gst 0.10: gst-launch-0.10 -v videotestsrc ! theoraenc ! oggmux ! queue ! tcpserversink port=8080 sync-method=2 I can connect to this stream via vlc like so: vlc tcp://localhost:8080 And I can also use the URL in a HTML5 video tag and the video is displayed as expected. Now I try to adapt this for gst 1.0: gst-launch-1.0 -v videotestsrc ! theoraenc ! oggmux ! queue ! tcpserversink port=8080 sync-method=2 Again I can connect to the stream with vlc, BUT I can not use this stream in a

Write in Gstreamer pipeline from opencv in python

删除回忆录丶 提交于 2019-11-30 07:36:41
I'm trying to stream some images form opencv using gstreamer and I got ome issues with the pipeline. I'm new to gstreamer and opencv in general. I compiled opencv 3.2 with gstreamer for python3 on a raspberry pi 3. I have a little bash script that I use with raspivid raspivid -fps 25 -h 720 -w 1080 -vf -n -t 0 -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.1.27 port=5000 I wanted to translate this pipeline in order to use it from opencv and feed into it images that my algorithm manipulates. I did some research

How do I add a delay to a live stream sourced from webcam (v4l2) with FFMPEG?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 06:08:20
问题 How can I use FFMPEG to add a delay to a stream being sent from a (v4l2) webcam to a media server? The use case here is something like a security camera where I want to be able to stream video to a server when something is detected in the video. The easiest way to ensure the event of interest is captured on the video is to use FFMPEG to stream from the camera to a virtual loopback device with an added delay. That loopback device can then be used to initiate live streaming when an even of

Looping a video with gstreamer and gst-launch?

两盒软妹~` 提交于 2019-11-30 05:30:52
问题 I am able to play a video on the command line with gstreamer's gst-launch like this: gst-launch gnlfilesource location=file:///tmp/myfile.mov start=0 duration=2000000000 ! autovideosink This plays the first 2 seconds of the file in /tmp/myfile.mov, afterwards the video playback stops. Is there anyway to get this to loop repeatidly? i.e. turn the 2 second long gnlfilesource into an infinite length video that plays those 2 seconds again and again and again? 回答1: Assuming bash... Wrap it in a