gst-launch

How to kill a subprocess in python

独自空忆成欢 提交于 2020-02-02 14:48:46
问题 I have code which runs a webcamera on a linux pc using the gst-launch command. When I kill the process, the webcamera window does not turn off, but the program stops running. I want the webcamera window also to be closed. Can you help me on this? import subprocess import time import os import signal cmd = "gst-launch-1.0 -v v4l2src ! video/x-raw,format=YUY2 ! videoconvert ! autovideosink" process = subprocess.Popen(cmd, shell = True) time.sleep(5) #print(subprocess.Popen.pid) #process

Feeding gstreamer fdsrc via STDIN only produces fraction of expected result

寵の児 提交于 2020-01-04 11:40:11
问题 I am using gstreamer windows port OSSBuild. I want to feed gst-launch with video data via its STDIN using the fdsrc element. Doing so it seems as if the pipline is consuming just a small fraction of the input. For instance type source.yuv | gst-launch fdsrc ! videoparse format=GST_VIDEO_FORMAT_I420 width=176 height=144 framerate=30000/1001 ! x264enc ! mpegtsmux ! filesink location=out.ts will NOT work while gst-launch filesrc location=source.yuv ! videoparse format=GST_VIDEO_FORMAT_I420 width

Feeding gstreamer fdsrc via STDIN only produces fraction of expected result

感情迁移 提交于 2020-01-04 11:40:03
问题 I am using gstreamer windows port OSSBuild. I want to feed gst-launch with video data via its STDIN using the fdsrc element. Doing so it seems as if the pipline is consuming just a small fraction of the input. For instance type source.yuv | gst-launch fdsrc ! videoparse format=GST_VIDEO_FORMAT_I420 width=176 height=144 framerate=30000/1001 ! x264enc ! mpegtsmux ! filesink location=out.ts will NOT work while gst-launch filesrc location=source.yuv ! videoparse format=GST_VIDEO_FORMAT_I420 width

How can I use gstreamer & smpte to concatenate 2 video files with gst-launch?

江枫思渺然 提交于 2019-12-24 20:26:27
问题 I have 2 video files (vid1.mov and vid2.mov), both have the same frame size and frame rate. I want to have 1 final video with shows vid1.mov and then vid2.mov, one after the other. I also want there to be a transition from one video to another (rather than an abrupt change of video), and have discovered the smpte plugin for gstreamer, which goes what I want. Using gst-launch on the ubuntu linux command line, how can I merge the 2 videos together with a transition? (Assume I want to use the

How to convert raw BGRA image to JPG using GStreamer 1.0?

依然范特西╮ 提交于 2019-12-23 01:46:31
问题 I'm trying to display a raw image (1.8MB) with gst-launch-1.0 . I understand that the data needs to be encoded to JPG before this can be achieve. If image was already stored as a jpg file the story would be quite simple: gst-launch-1.0.exe -v filesrc location=output.jpg ! decodebin ! imagefreeze ! autovideosink However, I need to assemble the pipeline to display a raw BGRA 800x600 image (looks the same as the above) that was dumped to the disk by a 3D application. This is what I've done so

gstreamer uri format on windows

谁说胖子不能爱 提交于 2019-12-13 04:43:36
问题 I am trying to play media files with gstreamer ,mp3 currently but I am getting the uri format wrong and it can't find the file. The original command from the documentation is gst-launch-1.0 playbin uri=file:///home/joe/my-random-media-file.mpeg I am trying to make it work on windows and writing gst-launch-1.0 playbin uri=file://C:\gstreamer\1.0\x86\bin\pima.mp3 This is the output I am getting Setting pipeline to PAUSED ... ERROR: Pipeline doesn't want to pause. ERROR: from element

gst-launch with tcpserversink not working

老子叫甜甜 提交于 2019-12-13 03:16:06
问题 I am trying to user gst-launch to stream mp3 audio over tcp, this is what I am trying : $ gst-launch-0.10 filesrc location="/path/to/file.mp3" ! tcpserversink host=0.0.0.0 port=3000 but it doesn't work the output is as follow : Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /GstPipeline:pipeline0/GstTCPServerSink:tcpserversink0: Internal GStreamer error: negotiation problem.

How to convert I420 frames to BGRA format with gst-launch-1.0?

随声附和 提交于 2019-12-12 03:33:20
问题 I had a raw video file named video.i420 based on I420 format. And I tried to convert it into BGRA format using gst-launch-1.0: gst-launch-1.0 filesrc location=video.i420 ! videoparse width=1920 height=816 format=2 framerate=24/1 ! videoconvert ! videoparse format=12 ! filesink location=video.bgra But the output file video.bgra sized only 48 bytes larger than the source file. Then I played the video.bgra with the followed command: gst-launch-1.0 filesrc location=video.bgra ! videoparse width

How to demux audio and video from rtspsrc and then save to file using matroska mux?

白昼怎懂夜的黑 提交于 2019-12-10 17:27:15
问题 I have been working on an application where I use rtspsrc to gather audio and video from one network camera to another. However I can not watch the stream from the camera and thereby cant verify that the stream works as intended. To verify that the stream is correct I want to record it on a SD card and then play the file on a computer. The problem is that I want the camera to do as much of the parsing, decoding, depayloading as possible since that is the purpose of the application. I thereby

How to convert raw BGRA image to JPG using GStreamer 1.0?

只谈情不闲聊 提交于 2019-12-08 18:04:24
I'm trying to display a raw image (1.8MB) with gst-launch-1.0 . I understand that the data needs to be encoded to JPG before this can be achieve. If image was already stored as a jpg file the story would be quite simple: gst-launch-1.0.exe -v filesrc location=output.jpg ! decodebin ! imagefreeze ! autovideosink However, I need to assemble the pipeline to display a raw BGRA 800x600 image (looks the same as the above) that was dumped to the disk by a 3D application. This is what I've done so far, but the problem is that it creates a completely black image on the disk: gst-launch-1.0.exe -v