Giter VIP home page Giter VIP logo

Comments (5)

jiaaro avatar jiaaro commented on July 23, 2024 1

have you tried this?

segt.export("test.mp3", format="mp3", codec="libmp3lame")

The encoder is reported as libmp3lame in your codecs, I think that's what avconv expects you to use. Honestly, once you have to name the codec explicitly everything goes straight to hell ;) - I'm not sure it's not figuring it out on it's own from just the format

from pydub.

jiaaro avatar jiaaro commented on July 23, 2024

Can you confirm that your install of ffmpeg/avlib includes lame?

Why do each of these commands return?

ffmpeg -version
ffmpeg -codecs
ffmpeg -formats

from pydub.

hadware avatar hadware commented on July 23, 2024

I'm on ubuntu 14.04, so it's now called "avconv" 😛

Here is the output for avconv:

avconv --version
avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Aug 10 2014 18:16:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
avconv 9.16-6:9.16-0ubuntu0.14.04.1
libavutil     52.  3. 0 / 52.  3. 0
libavcodec    54. 35. 0 / 54. 35. 0
libavformat   54. 20. 4 / 54. 20. 4
libavdevice   53.  2. 0 / 53.  2. 0
libavfilter    3.  3. 0 /  3.  3. 0
libavresample  1.  0. 1 /  1.  0. 1
libswscale     2.  1. 1 /  2.  1. 1
avconv -codecs | grep lame
avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Aug 10 2014 18:16:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
DEA.L. mp3                  MP3 (MPEG audio layer 3) (decoders: mp3 mp3float ) (encoders: libmp3lame )
avconv -formats | grep mp3
avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Aug 10 2014 18:16:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
 DE mp3             MP3 (MPEG audio layer 3)

Standing by in case you need more info!

from pydub.

hadware avatar hadware commented on July 23, 2024

Hmm... sorry, but still making an empty file.
I threw both

segt.export("test1.mp3", format="mp3", codec="libmp3lame")

and

segt.export("test1.ogg", format="ogg", codec="libvorbis")

at it, to make sure. The ogg works fine, the mp3's just an empty file.

from pydub.

jiaaro avatar jiaaro commented on July 23, 2024

@hadware would you mind sharing one of the files that is having this issue for you? I'm out of ideas :/

you can email me at [email protected]

from pydub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.