Coder Social home page Coder Social logo

decode_audio error about faster-whisper HOT 3 CLOSED

systran avatar systran commented on August 25, 2024
decode_audio error

from faster-whisper.

Comments (3)

guillaumekln avatar guillaumekln commented on August 25, 2024

We use PyAV for the audio decoding which is based on FFmpeg, so it virtually supports all audio codecs.

I'm not sure this error is related to the file duration. Is it possible for you to share this input file (or any other file that triggers this error)?

There is a similar error reported here PyAV-Org/PyAV#1048 which seems to happen when the audio sampling rate is changing.

from faster-whisper.

Latrolage avatar Latrolage commented on August 25, 2024

Is it possible for you to share this input file

I downloaded it from youtube yt-dlp -x -f bestaudio "https://youtu.be/P4xuSCEjD5Q" -o "audio.%(ext)s"

just running ffmpeg -i audio.opus audio.mp3 to re-encode it to lame stops the error from happening. using --format-sort acodec:m4a to download the m4a from youtube also works.

I'll close the issue since it seems that it's an issue in PyAV

from faster-whisper.

guillaumekln avatar guillaumekln commented on August 25, 2024

It seems we are hitting a size limit when pushing audio frames in av.audio.fifo.AudioFifo.

I updated the function decode_audio to avoid the error on long audio files: 2646906

from faster-whisper.

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.