All Questions
Tagged with gstreamer gst-launch
103
questions
6
votes
2
answers
9k
views
Which elements are contained in decodebin?
I'm looking to decode and demux an mp4 file with gst-launch-1.0. Instead of using a bin - decodebin - I'd rather work with the seperate elements. Unfortunately, I did not find this.
My question is ...
6
votes
1
answer
14k
views
WARNING: erroneous pipeline: could not link customsrc0 to mpegtsmux0
I cannot create a pipeline with gstreamer and I don't know how I can debug it further.
gst-launch-1.0 --gst-debug=GST_CAPS:4 -v -e customsrc num-buffers=1000 ! video/x-h264,width=600,height=600,...
5
votes
2
answers
5k
views
How can I create a live steam using gstreamer?
I would like to stream my webcam, I tried with vlc, but I'm getting a 10-15s delay between the server and client on the same network
vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 ...
5
votes
1
answer
10k
views
Use gstreamer to stream video and audio of Logitech C920
I'm quite a newbie on using gstreamer. I want to stream video and audio from my C920 webcam to another PC but I keep getting wrong in combining things..
I can now stream h264 video from my C920 to ...
5
votes
0
answers
526
views
GStreamer: no element
I am trying to run UDP streaming from a Raspberry Pi 4, and have installed gstreamer using this, found on gstreamer's docs:
$ sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \...
5
votes
0
answers
3k
views
Syncing audio and video when mp4muxing in gst-launch-1.0
I have a Logitech C920 webcam that provides properly formatted h264 video, and a mic hooked up to an ASUS Xonar external USB sound card. I can read both and mux their data into a single file like this:...
4
votes
1
answer
20k
views
playing a raw video using gst-launch
I've created a raw video file using filesink, I am able to play the file with vlc with the following command
vlc --demux rawvideo --rawvid-fps 24 --rawvid-width 1920 --rawvid-height 816 --rawvid-...
4
votes
1
answer
9k
views
How to use gst-launch to streaming mp4 audio and video via rtp and play it?
I use these commands to send and recieve rtp data:
Send rtp data to UDP port 5000
gst-launch-1.0 -v filesrc location = haizeiwang.mp4 ! decodebin ! x264enc ! rtph264pay ! udpsink host=192.168.1.101 ...
4
votes
1
answer
5k
views
Gstreamer RSTP server
I want to setup a RTSP server stream with Gstreamer 1.0 (gst-launch-1.0).
My "Server" currently looks like this
gst-launch-1.0.exe videotestsrc ! x264enc ! rtph264pay ! udpsink host=localhost port=...
4
votes
1
answer
6k
views
How to demux audio and video from rtspsrc and then save to file using matroska mux?
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 ...
4
votes
2
answers
4k
views
How to play .flv(h.264 aac) file without playbin2 in gstreamer?
I've got a FLV file and the gstreamer playbin2 could work well, but if I try to manually construct the pipeline, the result is negative.
Can anyone show me what's wrong with my pipeline? Or, how to ...
3
votes
1
answer
7k
views
Gst-launch: Saving every image of a video stream while watching it
I'm currently trying to save a video stream into files using gst-launch while simultaneously watching the video itself (using v4l2src). As of now I got this by doing a work around with saving the ...
3
votes
1
answer
7k
views
Gstreamer Tee with different capabilities on each branch
I have a gstreamer pipeline similar to this.
Queue -> videoscale -> videosink
/
appsrc -> h264_decoder -> Tee
...
3
votes
1
answer
9k
views
Gstreamer pipeline in Opencv videoCapture()
I'm trying to open an IP camera in OpenCV using gstreamer pipleine.
I can open the IPcamera using Gstreamer in terminal, using :
gst-launch-1.0 -v rtspsrc location="rtsp://192.168.0.220:554/user=...
3
votes
2
answers
4k
views
Convert gst-launch command to Python program
How do I implement the following gst-launch command into a Python program using the PyGST module?
gst-launch-0.10 v4l2src ! \
'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! \
tee name=t_vid !...
3
votes
1
answer
11k
views
How to change aspect-ratio with gstreamer?
I have this command:
gst-launch-1.0 ximagesrc startx=1920 starty=0 endx=2943 endy=768 use-damage=0\
! video/x-raw,framerate=15/1 \
! videoscale method=0 \
! video/x-raw,width=640,height=360 \
! ...
3
votes
0
answers
2k
views
Gstreamer how to record, take screenshot of a stream
I am streaming video from my raspberry using gstreamer and h264 decoder as below:
raspivid -t 999999 -h 720 -w 1080 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay ...
3
votes
1
answer
3k
views
Feeding gstreamer fdsrc via STDIN only produces fraction of expected result
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 ...
2
votes
2
answers
10k
views
Streaming Mp4 video through RTP protocol using Gstreamer in Ubuntu
I'm trying to fetch the video file from my local directory,enable the stream from server and capture these frames from my Client side.I have used the following pipelines:
Server side:
gst-launch -v ...
2
votes
2
answers
10k
views
how to find the device index of external camera for gstreamer?
gst-device-monitor-1.0 is displaying devices of class Audio/Source only.
it does not display Video/Source devices at all,
In addition it fails when asking explicitly for video devices only.
gst-...
2
votes
2
answers
2k
views
How to use level plugin of GStreamer to get peak and rms value of a particular audio file
I want to detect peak and rms value of particular audio files (format can be .opus, .wav etc., or it can be input from mic as well without recording a voice). Using GStreamer's good 'level' plugin I ...
2
votes
2
answers
18k
views
How to use gstreamer for transcoding and resizing from mp4(h264/aac) to mp4(h264/mp3)?
I want to transcode and resize mp4.(mp4-h264_1920x1080/aac => mp4-h264_640x480/mp3) using gstreamer. I wrote down this command.
$ gst-launch-0.10 filesrc location=./gain_1.mp4 ! qtdemux name=demux ...
2
votes
1
answer
389
views
gst_parse_launch there is no proper conversion function from string to gchar
I have a simple code with c++ using gstreamer to read rtsp video.
I'm new to gstreamer, I couldn't concatenate gst_parse_launch() with a URL_RTSP variable for my rtsp links.
here is no variable ...
2
votes
1
answer
464
views
How can I choose which stream to display using gst-launch-1.0?
I have a parrot drone that has 4 cameras being streamed with RTSP. The 4 cameras are being streamed by the same location (rtsp://192.168.53.1:554/live). Is it possible to choose which stream I want to ...
2
votes
2
answers
1k
views
gst-launch return value
What will be the return value of gst-launch application? Will it return '0' on success and non-negative number (ERROR CODE) on failure? Where can I fild list of all possible error codes of gst-launch.
2
votes
2
answers
7k
views
gstreamer rtmpsrc to rtmpsink
I want to capture the live incoming flash media stream generated via webcam from client machine using gstreamer rtmpsrc plugin and convert it to some processable format.
The problem is when i try to ...
2
votes
0
answers
748
views
Gstreamer pipeline hangs at EOS
I'm developing a video recording application on NVIDIA Jetson Nano. My application runs on more than 200 Jetson Nano devices, each record 3-10 videos per day. A single device usually records 40-45 ...
2
votes
0
answers
4k
views
How to change rtp payload type when using gst-launch with rtph264pay
I'm streaming h264 from a file using gst for python and triggering the video sending using gst.parse_launch(...). I need to change the payload type to 35 from default 96. According to examples and ...
2
votes
2
answers
4k
views
Creating a virtual webcam from jpeg using GStreamer
I'm trying to use a jpg-File as a virtual webcam for Skype (or similar). The image file is reloading every few seconds and the Pipeline should also transmit always the newest image.
I started creating ...
1
vote
2
answers
10k
views
Gstreamer on OSX
I'm trying to create a very simply Gstreamer pipeline where I have a source element that is my FaceTime camera and a sink element that is a udp sink.
I first install Gstreamer using the instructions ...
1
vote
1
answer
6k
views
How to convert raw BGRA image to JPG using GStreamer 1.0?
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 ...
1
vote
2
answers
3k
views
I want to create a HLS (HTTP Live Streaming) Stream using Gstreamer but Audio only
what I want to do is create an m3u8-file out of an alsa soundcard input.
Like:
arecord hw:1,0 -d 10 test.wav | gst-launch-1.0 ....
I tried this for testing:
gst-launch-1.0 audiotestsrc ! ...
1
vote
1
answer
6k
views
gstreamer recording m3u8 stream
I'm trying to record stream from m3u8 file.
This pipeline works:
gst-launch-0.10 -e souphttpsrc location=(mysrc.m3u8) ! queue ! hlsdemux ! queue ! mpegtsparse ! queue ! mpegtsdemux ! queue ! audio/...
1
vote
1
answer
3k
views
How to get Pipeline created by playbin in Gstreamer?
i am creating a player which uses playbin2 to create pipeline.
in my code I'm using the following line to create the pipeline.
pipeline = gst_parse_launch("playbin2", &error);
so pipeline will ...
1
vote
1
answer
644
views
Why can't I receive an RTP video stream produced by GStreamer's appsrc?
I'm trying to use the GStreamer's appsrc element with rtpbin and udpsink to create an RTP sender using the VP8 codec (vp8enc).
This program creates a fake video stream by switching black and white ...
1
vote
1
answer
2k
views
GStreamer and RTSP stream
I'm trying to view an rtsp stream trough gstreamer but when i run this command:
gst-launch-1.0 rtspsrc location=rtsp://admin:@192.168.1.27:554/ch0_0.264 ! videoconvert ! video/x-raw ! autovideosink
...
1
vote
1
answer
1k
views
gst-launch and multiple lines of text
how do i set multiple lines of text in the textoverlay pipe in gst-launch?
I want to set up a pipeline and want to have multiple lines of text both vertically and horizontally centered. I'm able to ...
1
vote
1
answer
7k
views
gstreamer playbin only video
I am using the following pipeline
gst-launch-0.10 playbin2 uri=file:///mnt/hash.mp4 video-sink="imxv4l2sink" flags=0x57
This works fine for the video file ( mp4 ) which doesn't have video in it. But ...
1
vote
1
answer
2k
views
Extract h264 stream from USB webcam (logitech C920)
So, I'm starting to play around with gstreamer and I'm able to do very simple pipes such as
gst-launch-1.0 -v v4l2src device=/dev/video1 ! video/x-raw,format=YUY2,width=640,height=480,framerate=10/1 ...
1
vote
1
answer
3k
views
How can I show a video at a specific posision with gst-launch?
I'm trying to play a video file with gst-launch on a embedded board.
First of all, I can play a video with the command below.
- gst-launch-1.0 filesrc location=test.mp4 ! qtdemux ! h264parse ! ...
1
vote
1
answer
1k
views
Compress mpeg stream and send through network gstreamer
I want to build a pipe that sends a mpeg file with the gstreamer 1.0 through the network. I've tried some pipes and and examples but neither was the element known nor was it able to link two elements.
...
1
vote
1
answer
4k
views
gstreamer uri format on windows
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 ...
1
vote
1
answer
1k
views
Gstreamer problems network streaming with gst-launch
quite new to Gstreamer, but I'm trying to implement a network stream using the gst-launch command. So far I've managed to get the pipeline working with the videotestsrc but when I try to put a filesrc ...
1
vote
0
answers
136
views
Conditionally build a gstreamer pipeline for processing video or video+audio using gst-launch-1.0
Consider the following gst-launch-1.0 command to play an input stream containing video and audio tracks:
gst-launch-1.0 \
uridecodebin uri=${INGRESS_URL} name=decodebin \
\
decodebin. ! &...
1
vote
0
answers
409
views
Play video from a UNIX SOCKET using gstreamer (gst-launch-1.0)
I need to play video from a UNIX SOCKET using gstreamer (gst-launch-1.0)
example
gst-launch-1.0 socketsrc socket-path=/tmp/unixSocket ! queue max-size-buffers=0 max-size-time=0 max-size-bytes=0 min-...
1
vote
0
answers
106
views
Gstreamer queries NVR with wrong startTime having a pattern
I'm a newbie in gstreamer and I am trying to query a NVR(Network Video Recorder) to get recorded videos of my rtsp camera. Here is my gst pipeline:
gst-launch-1.0 rtspsrc location="rtsp://-NVR ...
1
vote
0
answers
352
views
Multi-Camera in WebRTC application with Gstreamer C++
In my pipeline I would like to use 2 different v4l2 source. But When I used like code 1 with double v4l2src , I can get some error like "ERROR GST_PIPELINE grammar.y:740:gst_parse_perform_link: ...
1
vote
0
answers
372
views
Why gstreamer GST-LAUNCH buffering frequently while running?
Im running a simple command on Ubuntu 18.04 release.
gst-launch-1.0 playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
This command opens a example ...
1
vote
0
answers
190
views
Two videos overlayed with gstreamer alpha, not playing at all
I am trying to crate a greenscreen application using gstreamer alpha. I am using ximagesrc to capture the window with a green background. Then I am using alpha to overlay green parts of the capture. ...
1
vote
1
answer
515
views
Can't record both video and sound from TV card using Gstreamer
I have a SAA7134 TV card. I want to record a video with sound using Gstreamer. This command I use to make sure I can hear the audio and it works
gst-launch-1.0 alsasrc device="hw:1,0" ! queue ! ...