All Questions

Tagged with
Filter by
Sorted by
Tagged with
38 votes
5 answers
93k views

Python extract wav from video file

Related: How to extract audio from a video file using python? Extract audio from video as wav How to rip the audio from a video? My question is how could I extract wav audio track from video file, ...
xolodec's user avatar
  • 843
15 votes
5 answers
21k views

dynamically (un)link elements in a running (gstreamer) pipeline?

there are plenty of examples in the gstreamer documentation on constructing and running static pipelines. however, there isn't much about changing/relinking elements in a live pipeline - while the ...
Jeremiah Rose's user avatar
8 votes
1 answer
5k views

Use (Python) Gstreamer to decode audio (to PCM data)

I'm writing an application that uses the Python Gstreamer bindings to play audio, but I'm now trying to also just decode audio -- that is, I'd like to read data using a decodebin and receive a raw PCM ...
adrian's user avatar
  • 1,457
7 votes
2 answers
5k views

Why does this gstreamer pipeline stall?

This works: gst-launch-0.10 \ videotestsrc ! ffmpegcolorspace ! 'video/x-raw-yuv' ! mux. \ audiotestsrc ! audioconvert ! 'audio/x-raw-int,rate=44100,channels=1' ! mux. \ avimux name=mux ! filesink ...
timday's user avatar
  • 24.8k
6 votes
4 answers
6k views

How to rip the audio from a video?

I am on ubuntu and want to convert a mp4 video to an mp3 audio file but can't figure out how. I tried installing ffmpeg but it failed to encode the mp3. I've read the gstreamer does it but I can't ...
lovefaithswing's user avatar
5 votes
2 answers
10k views

Gstreamer pipeline stuck in prerolling state when giving only audio to video pipeline

If I have a pipeline like: gst-launch filesrc location="/home/dk/Music/Vangelis - Alpha.mp3" ! decodebin2 name=dec ! queue ! ffmpegcolorspace ! autovideosink dec. ! queue ! audioconvert ! ...
D K's user avatar
  • 5,630
5 votes
1 answer
8k views

Adding and removing audio sources to/from GStreamer pipeline on-the-go

I wrote a little Python script which uses an Adder plugin to mix two source streams together. After starting the program, you hear a 1kHz tone generated by the audiotestsrc plugin. When you press ...
NagyI's user avatar
  • 5,937
5 votes
2 answers
7k views

Gstreamer: RTP jitter buffer not working properly with packet loss?

For a VoIP speech quality monitoring application I need to compare an incoming RTP audio stream to a reference signal. For the signal comparison itself I use pre-existing, special-purpose tools. For ...
paprika's user avatar
  • 2,454
5 votes
3 answers
2k views

Detecting blowing on a microphone with GStreamer (or another library) [closed]

Can I detect blowing on a microphone with GStreamer (or another Linux-compatible sound library)? I can get some informations about the sound doing that: import gtk, gst def playerbinMessage(bus, ...
Marin's user avatar
  • 273
5 votes
2 answers
7k views

Low latency audio capture with gstreamer

I need (almost) real-time audio capturing on Linux with gstreamer. My problem is that I cannot reduce the latency below ~210ms. I tried a simple loopback from mic to headphone: gst-launch-1.0 ...
gertom's user avatar
  • 51
5 votes
0 answers
4k views

How to set channel positions/a channel mask in gstreamer?

I'm trying to get 28 channels out of a jackaudiosrc but as soon as I connect, say, a deinterleave element, the source will fall back to the 2-channel setup that works without any channel mask. My ...
Christian's user avatar
  • 509
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:...
Anders Bylund's user avatar
4 votes
3 answers
10k views

how to record audio and video in gstreamer

I am new to gstreamer, I want to record both audio and video save it into .mp4 format, Recording video using webcam and audio using MIC Here this is my pipeline gst-launch-1.0 -e v4l2src ! queue ! ...
vignesh's user avatar
  • 43
4 votes
2 answers
4k views

python gstreamer for windows

I want to use Python bindings for GStreamer on windows. But looking at the INSTALL file, the gstreamer does it in the unix way. (make make install) . I don't want to install cygwin or other ...
cppb's user avatar
  • 2,359
4 votes
1 answer
3k views

Gstreamer+python: adding and removing audio sources while pipeline is running

I'm working on a sample python script, originally found here: Adding and removing audio sources to/from GStreamer pipeline on-the-go. The aim is to make a script such as the one above, able to insert ...
user1048335's user avatar
4 votes
0 answers
2k views

RTSP Audio Backchannel (ONVIF) - How to implement

My objective is to implement RTSP audio backchannel with ONVIF, i.e, without using any camera SDK. My expectations from this thread are - To verify my understandings Get an idea about how to do this ...
sourav's user avatar
  • 123
3 votes
4 answers
4k views

How would I use gstreamer to stitch a set of images together to form a video slideshow

I'd like to take a set of images and a sound track and use that to form a basic video slideshow using gstreamer. There seems to be a lot of documentation and examples of basic gstreamer usage like ...
jsimmons's user avatar
  • 732
3 votes
2 answers
5k views

Mix multiple audio streams into one playback-sound using Gstreamer

I want to use Gstreamer to receive audio streams from multiple points on the same port. Indeed I want to stream audio from different nodes on the network to one device that listen to incoming audio ...
mammadalius's user avatar
  • 3,313
3 votes
2 answers
3k views

Convert FLAC to MP3 with GStreamer + Python?

Here's the command I'm trying to replicate: gst-launch filesrc location=test.flac ! flacdec ! lame ! filesink location=test.mp3 When I run this command it works beautifully. I've tried to replicate ...
Liam's user avatar
  • 2,077
3 votes
1 answer
3k views

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

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?
cppb's user avatar
  • 2,359
3 votes
1 answer
5k views

Receive Numpy Array Realtime from GStreamer

I tried to receive numpy arrays from frame to frame in real-time from the GStreamer framework. I already tried to use a pipeline like this (from http://stackoverflow.com/questions/8187257/play-audio-...
jefflgaol's user avatar
3 votes
1 answer
246 views

low latency sounds on key presses

I am trying to write an application(I'm a gui first timer) for my son, he has autism. There is a video player in the top half and a text entry area in the bottom. When letters are typed sounds are ...
Patrick's user avatar
  • 59
3 votes
2 answers
7k views

GStreamer dynamically change the filesrc location of a pipeline- No sound

I am currently on working on my university project which involves GStreamer audio streaming. I have successfully managed to get streaming working between client/server and TCP. My next task is to ...
m f's user avatar
  • 33
3 votes
1 answer
2k views

Making GStreamer video/audio in Python smooth and loop

I'm trying to use GStreamer to loop MPEG-4 files smoothly. I want to play the video and audio if there is any and loop the playback. My app uses GTK for UI. Right now I have three problems: The video ...
Robin's user avatar
  • 105
3 votes
1 answer
6k views

Using Gstreamer to display audio-less video while recording audio+video

My Logitech C920 webcam provides a video stream encoded in h264. I'm using this "capture" tool to access the data: So I can view live video: /usr/local/bin/capture -d /dev/video0 -c 100000 -o | \ ...
Anders Bylund's user avatar
3 votes
1 answer
4k views

Record synchronized video and audio into container file with gstreamer

I am using a TI DM365 EVM to record video and audio. I need to encode these two streams and save them in a container file like .avi or .mp4. I am using the following gstreamer pipeline: gst-...
user1766616's user avatar
2 votes
2 answers
10k views

How to play audio and video together in GStreamer?

How I can play audio and video together in GStreamer application except playbin/playbin2 ? after demuxing how I can play audio in audio sink and video in video sink ? Please reply.If possible ...
StackReader's user avatar
2 votes
1 answer
2k views

Encoding to AC3 with GStreamer

Is there an example for producing an AC3 stream? The only example I keep finding is: gst-launch-1.0 -v audiotestsrc ! avenc_ac3 However, I get an "internal data flow error" every time, with the ...
Dustin Oprea's user avatar
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 ...
iTink's user avatar
  • 139
2 votes
1 answer
1k views

gstreamer read decibel from buffer

I am trying to get the dB level of incoming audio samples. On every video frame, I update the dB level and draw a bar representing a 0 - 100% value (0% being something arbitrary such as -20.0dB and ...
Daniel L.'s user avatar
  • 437
2 votes
2 answers
3k views

Gstreamer unable to play audio through rtspsrc

I am having trouble to play the audio from the rtsp server, i have no problem for the video playback, but some error occurred while i tried to play audio, the following is the command used to play ...
Alan Lee's user avatar
2 votes
1 answer
4k views

How to record Audio using Microphone in AAC codec format

How to record Audio using Microphone in AAC codec format in mp4 file using gstreamer ? Please reply with pipeline info. Thanks in advance.
StackReader's user avatar
2 votes
1 answer
1k views

How to generate an audio stream using gst-python?

I'm looking to generate a stream in gstreamer, and I'd prefer to do it from python if possible. This points towards using gst-python, but I don't see a clear way to do it. It looks like creating a new ...
Scott's user avatar
  • 35
2 votes
1 answer
3k views

gstreamer pipeline video AND audio

I am very new to gstreamer and have a pipeline that parses a H.261 encoded video file fine with the following pipeline: gst-launch-1.0 filesrc location=trailer.mp4 ! qtdemux name=demux demux.video_0!...
Luca's user avatar
  • 10.8k
2 votes
1 answer
3k views

How to handle clock skew in audio streaming

Problem : Its live audio-video streaming over WiFi + udp network. Stream : Mpeg2Ts Player Framework : gstreamer. Pipeline Appsrc ----> tsdemuxer -----> audio-queue---->faad decoder--->alsasink ...
Ashutosh Pandey's user avatar
2 votes
1 answer
3k views

how to play two different songs on different earphones at the same time through Gstreamer?

We have tried playing two songs at the same time using interleave plugin. > gst-launch filesrc location=/home/test.mp3 ! decodebin ! audioconvert ! "audio/x-raw-int,channels=2" ...
Minion's user avatar
  • 135
2 votes
1 answer
1k views

GStreamer: Add dummy audio track to the received rtp stream

I'm initiating RTP stream from my Raspberry camera using: raspivid -n -vf -fl -t 0 -w 640 -h 480 -b 1200000 -fps 20 -pf baseline -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay pt=96 config-...
Abu Abdulla's user avatar
2 votes
1 answer
2k views

Cannot get JACK Audio/Netjack working over LAN

I'm trying to stream low latency audio between 2 raspberry pis. Both gstreamer and ffmpeg induce 2+ second delays for me. I've played around with Jack Audio and locally on a single pi it seems ...
James's user avatar
  • 2,792
2 votes
3 answers
1k views

gstreamer pipeline to mix three audio source?

This mixing of the two files: gst-launch uridecodebin uri=file:///tmp/file1.mp3 ! adder name = m ! autoaudiosink uridecodebin uri=file:///tmp/file2.mp3 ! audioconvert ! m. How to mix the 3 files ?
Ravend's user avatar
  • 131
2 votes
2 answers
3k views

Gstreamer appsrc: odd behaviour of need-data callback

I'm implementing gstreamer media player with my own source of data using appsrc. Everything works fine except one thing: When stream reaches it's end, callback emits "end-of-stream" signal. Signals ...
user avatar
2 votes
1 answer
1k views

Error in playing multichannel audio at different instances?

I am trying to play 2 channels in which audio in one and silence in other channel is being played. $ gst-launch \ interleave name=i ! alsasink filesrc location=/home/test1.mp3 \ ! ...
Minion's user avatar
  • 135
2 votes
1 answer
753 views

How to extract the data frame in mp3 stream using gstreamer?

I am now trying to write a music player using Gstreamer.I know that mp3 files are made up with frames (data frame and tag frame).what i want to do is extract the data frame and calculate its hash to ...
Jin Hu's user avatar
  • 156
2 votes
1 answer
1k views

Can Gstreamer be used server-side to stream audio to multiple clients on demand?

I'm working on an audio mixing program (DAW) web app, and considering using Python and Python Gstreamer for the backend. I understand that I can contain the audio tracks of a single music project in ...
visiblenoise's user avatar
2 votes
1 answer
842 views

How to write ROS AudioData message into wav file?

I'm using ReSpeaker Mic Array v2.0 on my robot, I used the following git repo: https://github.com/furushchev/respeaker_ros.git to capture the audio received by the speaker. I subscribed to it's raw ...
Komgcn's user avatar
  • 345
2 votes
1 answer
3k views

Low latency audio streaming with gstreamer, Dropped samples when lowering the buffer-time on a pepper robot

I'm trying to send audio through an RTP Stream using gstreamer with the lowest latency possible and I want to do it from a Pepper(gstreamer 0.10) to my computer(gstreamer 0.10 or 1.0). I can send ...
am.e's user avatar
  • 21
2 votes
0 answers
346 views

How to create MPEG2 Transport Stream in real-time?

I'd like to write software that generates audio in real-time and streams it over the network/internet as an MPEG2 Transport Stream. Ideally the solution would be in Python (though Java would be ok too)...
aengus's user avatar
  • 21
2 votes
0 answers
2k views

Capturing PCM audio data stream into file, and playing stream via ffmpeg, how?

Would like to do following four things (separately), and need a bit of help understanding how to approach this, Dump audio data (from a serial-over-USB port), encoded as PCM, 16-bit, 8kHz, little-...
bdutta74's user avatar
  • 2,828
2 votes
0 answers
558 views

Looping parts of audio with gstreamer

I'm developing a sort of a "advanced playback" audio application to aid music transcription. The idea is to allow the user to change the audio tempo/pitch, as well as select and possibly loop parts of ...
oggy's user avatar
  • 3,521
2 votes
1 answer
2k views

gstreamer: play audio file backwards in

I want to play audio files with different playback rates using GStreamer. This already works fine. However, in contrast to the Python GStreamer reference, negative rates do not play the audio file ...
mzuther's user avatar
  • 1,164
2 votes
1 answer
349 views

How can I create a video (from RGB and PCM) programatically with GStreamer?

My application displays video and audio and I want to add a recording feature. I've considered FFmpeg, but I have to compile my application with VS so I can't use it. So I'm trying to do it with ...
qwertyhgfdsa's user avatar