gstreamer

place external live video frames from non supported V4L file into Gstreamer Qt , C++ Qthreads

空扰寡人 提交于 2019-12-22 13:34:52
问题 OS : Ubuntu 14.04 SDK : Qt GStreamer : > 1.0 I am wondering how would I put continuously captured frames from a non supported V4L camera into GStreamer. Actually my task is to grab frames from the camera and use only GStreamer to send them to different computer via UDP. But at the moment, I just want to display it on my machine. What I did so far: a) Implemented code in Qt for an IDS camera that captures frames and displays then on Qt as live streaming. b) Separately, I have written ( or

place external live video frames from non supported V4L file into Gstreamer Qt , C++ Qthreads

谁都会走 提交于 2019-12-22 13:32:09
问题 OS : Ubuntu 14.04 SDK : Qt GStreamer : > 1.0 I am wondering how would I put continuously captured frames from a non supported V4L camera into GStreamer. Actually my task is to grab frames from the camera and use only GStreamer to send them to different computer via UDP. But at the moment, I just want to display it on my machine. What I did so far: a) Implemented code in Qt for an IDS camera that captures frames and displays then on Qt as live streaming. b) Separately, I have written ( or

gStreamer Video Recording Memory Leak

此生再无相见时 提交于 2019-12-22 11:11:08
问题 HI I am trying to record rtsp stream coming from camera(H264 format). I am using following gst command to do recording in MPEG4 Format gst-launch -e rtspsrc location=rtsp://10.17.8.136/mediainput/h264 latency=100 ! decodebin ! ffenc_mpeg4 ! avimux ! filesink location=test.mp4 and H264 format gst-launch-0.10 -e rtspsrc location="rtsp://10.17.8.136/mediainput/h264" latency=100 ! rtph264depay byte-stream=false ! capsfilter caps="video/x-h264,width=1920,height=1080,framerate=(fraction)25/1" !

PyQt5 - Can't play video using QVideoWidget

白昼怎懂夜的黑 提交于 2019-12-22 11:08:05
问题 from PyQt5.QtWidgets import * from PyQt5.QtMultimedia import * from PyQt5.QtMultimediaWidgets import * from PyQt5.QtCore import * import sys app = QApplication(sys.argv) w = QVideoWidget() w.resize(300, 300) w.move(0, 0) w.show() player = QMediaPlayer() player.setMedia(QMediaContent(QUrl.fromLocalFile("/home/doflamingo /Documents/Nisemono/got.avi"))) player.setVideoOutput(w) player.play() sys.exit(app.exec_()) This very simple code give the following output on ArchLinux : GStreamer; Unable to

gstreamer flvmux and rtmp error

二次信任 提交于 2019-12-22 09:38:25
问题 I trying to stream rtmp from rasberrypi, the omx hardware encoder worked really nice, by the way, so I'm running: gst-launch-1.0 v4l2src ! «video/x-raw,width=640,height=480,framerate=30/1» !\ omxh264enc target-bitrate=1000000 control-rate=variable !\ video/x-h264,profile=high ! h264parse ! queue ! \ flvmux name=mux alsasrc device=plughw:1 ! audioresample ! \ audio/x-raw,rate=48000,channels=1 ! queue ! voaacenc bitrate=32000 ! queue ! mux. mux. !\ rtmpsink location='rtmp://my_rtmp_for_ustream

Missing plugin for GStreamer for Android SDK

江枫思渺然 提交于 2019-12-22 05:54:19
问题 I changed the stream url in the included Tutorial 5 (a basic media player) to a h.264/mp3 media stream (from its original ogv stream) and it started complaining about some missing plugins. After doing some googling I found Prajnashi's gst-ffmpeg plugin for Android https://github.com/prajnashi/gst-ffmpeg but it is certainly not suitable for the SDK. If the SDK does not have the required plugin how do I go about resolving this? I am new to GStreamer and have no idea how to compile any of the

converting wav to mp3 (and vice versa) using GStreamer

℡╲_俬逩灬. 提交于 2019-12-21 22:48:09
问题 I am using Python bindings for Gstreamer and am using the following pipeline to convert a wav file to mp3. I used one of the suggestions in this question , with some modifications (as I was getting some errors when original syntax was used) gst.parse_launch("filesrc location=C:\\music.wav ! decodebin ! audioconvert ! lame ! filesink location=C:\\music.mp3") When I run this code in Python, I get no errors. However, it doesn't generate music.mp3 file. What else do I need to do so that it

How do I use gstreamer to make an audio clip from a segment of a longer source?

烈酒焚心 提交于 2019-12-21 20:49:42
问题 I would like to use gstreamer to save an arbitrary clip from one audio file to a new file. For example, a segment from 1 minute to 2 minutes in the original. How do I do it? 回答1: You need gnonlin. See http://www.jonobacon.org/2006/12/27/using-gnonlin-with-gstreamer-and-python/ You won't need a gnlcomposition because you only want one segment. Use a gnlfilesource with its start and duration set to 0, 1 minute, and media-start and media-duration set to 1 minute, 1 minute. All times and

How to add subtitles from a SRT file on a video and play it with Gstreamer in a c program

拈花ヽ惹草 提交于 2019-12-21 19:57:46
问题 I want to play a video with a C program using Gstreamer and adding subtitles from a SRT file. I'm new to gstreamer and I somehow figured out who to make it work in command-line : gst-launch filesrc location=video.srt ! subparse ! \ overlay. filesrc location=video.ogv ! oggdemux name=demux \ demux. ! queue ! vorbisdec ! audioconvert ! autoaudiosink \ demux. ! queue ! theoradec ! ffmpegcolorspace ! subtitleoverlay name=overlay ! autovideosink; The problem is that I can play the video from a C

Calling Gstreamer inside openCV

懵懂的女人 提交于 2019-12-21 19:54:29
问题 I need to call Gstremaer inside an openCV code (opening a video camera essentially). As I looked through the source code, modules/highgui/src/cap_gstreamer.cpp seems to be the file I'm looking for. I compiled OpenCV with Gstreamer flag. GStreamer: -- base: YES (ver 1.2.3) -- video: YES (ver 1.2.3) -- app: YES (ver 1.2.3) -- riff: YES (ver 1.2.3) -- pbutils: YES (ver 1.2.3) but I'm not able to call a Gstreamer-related functions (e.g. cvCreateCapture_GStreamer which is defined inside cap