Skip to content
Advertisement

Tag: audio

How to get audio length for all audios using sox?

I can do soxi -d * to get audio length information in hours, minutes, and seconds. However it would only give me info on the individual audio length. If I wanted to see the audio length for the entire folder, how can I accomplish such task? like when you do “wc -w” it shows the sum of everything at the

Can’t hear sound when audio is being played in Pyglet (Raspberry Pi 4B, Raspbian)

I am running the latest version of Raspbian on the Raspberry Pi with Python 2.7 and 3.7 installed. For a project, I need to implement some spatial/binaural audio file playback capabilities in Python, and Pyglet (version 1.5.6) (https://pypi.org/project/pyglet/, https://github.com/pyglet/pyglet) seems to be the simplest option with least dependencies. However, I am not being able to hear audio output through the

SDL audio randomly becomes distorted on Linux

I have a strange issue with SDL audio. It will randomly become distorted. It’s completely random, I can’t reliably reproduce it at all. Sometime it starts being distorted seconds after the program starts, other times I’ve played with the software, let it run over night and it’ll still be working in the morning. It could have to do with SDL,

File information of .raw audio files using terminal in linux

How to get file information like sampling rate, bit rate etc of .raw audio files using terminal in linux? Soxi works for .wav files but it isn’t working for .raw. Answer If your life depended on discovering an answer you could make some assumption to tease apart the unknowns … however there is no automated way since the missing header

How to properly set up ALSA device

Edit: This question is different than the proposed duplicate because I’m asking How do you set the period/buffer size that will work with multiple targets each with different sound hardware?. I have created some code that attempts to set up ALSA before playback of an OGG file. The code below works on one embedded Linux platform, but on another it

FFmpeg not copying all audio streams

I’m having trouble getting ffmpeg to copy all audio streams from a .mp4 file. After hours of searching online, it appears this should copy all streams (as shown in example 4 here): in.mp4 contains 3 streams: Video Audio track 1 Audio track 2 out.mp4 (which should be identical to in.mp4) contains only 2 streams: Video Audio track 1 FFmpeg does

FFmpeg audio crossfade

I’m trying to merge several videos using ffmpeg and apply the cross-fade transition in between. I got video cross-fade working by referring to this. At the same time I need to have audio also to have cross-fade applied for original audios associated with each video. I referred several places but they resulted, Buffer queue overflow, dropping. This, this and this

Advertisement