Questions tagged [pydub]

Pydub is a Python library for audio manipulation.

Pydub is a Python library for manipulating audio.

Quick links:

427 questions
0
votes
1 answer

How to launch two pydub threads in parallel?

Here's the problem: I want to play two mp3 or mpeg format audio files in parallel using pydub. What I notice is that I can start one thread no problem, but it hangs until the first audio file finishes. Only then does the second file start. I believe…
VladMode
  • 43
  • 9
0
votes
1 answer

Tkinter stuck in GUI while playing mp3 file

I'm a complete beginner in Python and currently making a GUI with Tkinter that can play mp3 files. just for practice. I'm using a Mac, and the rainbow wheel that appears when a program lags shows up when I press the play button I made. And it…
bang bang
  • 19
  • 2
0
votes
1 answer

Failing to upload an mp4 to youtube

I'm trying to convert an WMA file into mp4 in order to upload the file to youtube. VN550672.wma.zip Although the conversion is successful (see below) i'm not able to upload the file to youtube. I'm getting the following error The video has failed to…
skibee
  • 1,279
  • 1
  • 17
  • 37
0
votes
2 answers

"OSError: [Errno 2] No such file or directory" converting mp3

I'm trying to use Pydub, and I want to convert a mp3 file to wav, as is already told here. Even though the file is present I'm getting a error of No such file or directory. This is my code: import os.path print "File Present:",…
Nikhil Wagh
  • 1,376
  • 1
  • 24
  • 44
0
votes
1 answer

Can't change audio file format - python

I'm creating a program for school that streams video and audio from youtube and displays them for a few clients at the same time. For this, I need to change a file's format to .mp3 and I learned that I can do that with pydub AudioSegment, yet, I…
itay12v
  • 1
  • 2
0
votes
0 answers

Converting UTF-8 into Chinese character in Python2.7

I got a Chinese file named 005大禹治水.lrc, and I want to print out the filename with its directory, like: /home/user/lrc/005大禹治水.lrc Here is what I tried in Python 2.7: # -*- coding: utf-8 -*- from __future__ import print_function import…
0
votes
0 answers

Handling 24bit 96000Hz files with Pydub

I am impressed with Pydub pitch function. Tried a lot of pitch programmes but never could get a good result. Meaning with out echo ore hearing samples missing - short soundout fall, ore blurring sound. Now I find out that Pydub is not able to…
Crojav
  • 19
  • 3
0
votes
2 answers

pydub doesn't not close damaged files and cannot rename the file

i have some pieces of mp3 that's recovered from my damaged hard disk. then i found some of the mp3s had been damaged, but some were ok. so, i'm using the following code to filter those damaged mp3s. ` import os from pydub import AudioSegment fname=…
user8641707
  • 199
  • 2
  • 9
0
votes
1 answer

Ubuntu conda install pydub

I have ubuntu version 15.10 and anaconda version conda 4.4.10. My problem is I am trying to install the module/package pydub and the command to do that is: conda install -c auto pydub #(see https://anaconda.org/auto/pydub) The error message I am…
Ceasar
  • 47
  • 4
0
votes
1 answer

PyAudio and Decibel change and panning

I have a pretty basic pyaudio code that plays a wav file. open_wave = wave.open("tone_silence/l0r1d0_500.wavc",'rb') pyAudio_session = pyaudio.PyAudio() def callback(in_data, frame_count, time_info, status): data =…
0
votes
1 answer

Can pydub know if a file has ever been played?

I'm trying to create a python script to help me manage my car radio's music library. The idea is the following: I have a USB flash drive with 2-hour podcast mp3 files. Since I never drive such long journeys, the script splits the files in 5-minute…
0
votes
1 answer

How to reduce the size of the .wav file exported from Pydub

When I do a conversion using ffmpeg, I am able to convert a 3.5MB mp3 file into an ~3.5MB wav file (using ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 8000 output.wav). When I use pydub however with the below code s1 =…
Dayo
  • 316
  • 4
  • 12
0
votes
1 answer

ImportError: cannot import name 'AudioSegment'

I'm trying to use the library pydub, but when I run the script i get this. runfile('E:/OneDrive - usach.cl/chillbot/pydub.py', wdir='E:/OneDrive - usach.cl/chillbot') Traceback (most recent call last): File "",…
SergioSalinas
  • 115
  • 1
  • 2
  • 11
0
votes
1 answer

ffmpeg errors out with error code: -5

Trying to run ffmpeg via pydub and receive: pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: -5 dyld: lazy symbol binding failed: Symbol not found: _clock_gettime Referenced from:…
Anthony
  • 13,434
  • 14
  • 60
  • 80
0
votes
1 answer

How to reduce the number of samples in audio data array using python

I am plotting an audio samples amplitude at every frame present in that sample something like this: sound = AudioSegment.from_mp3("test.mp3") print(len(sound)) print(len(sound.raw_data)) data = np.fromstring(sound.raw_data, dtype=np.int16) left,…
Nik391
  • 517
  • 2
  • 7
  • 24