Coder Social home page Coder Social logo

Error -1 writing PCM output about dcadec HOT 4 CLOSED

foo86 avatar foo86 commented on September 27, 2024
Error -1 writing PCM output

from dcadec.

Comments (4)

merbanan avatar merbanan commented on September 27, 2024

The libav/ffmpeg decoder/parser can handle all but the http://samples.libav.org/A-codecs/DTS/dts/Master%20Audio%205.1%2024bit.dts sample file without error.

from dcadec.

Nevcairiel avatar Nevcairiel commented on September 27, 2024

Note that a bunch of those files are just cut rather badly, so the last audio frame erroring out is pretty "normal".

from dcadec.

foo86 avatar foo86 commented on September 27, 2024

This is expected. As @Nevcairiel mentioned, these files are cut badly at the end, leaving just one core frame without EXSS part. The number of decoded channels (or bitdepth, or sample rate) changes in the decoder, the WAV file writer notices that and returns -1 (invalid argument) error because it can't handle change of audio parameters once the WAV header is written. Of course a proper output sink would reconfigure itself and try to continue in this case, something the current primitive WAV writer doesn't do.

I don't know how exactly FFmpeg handles this, maybe it doesn't decode enough of extensions so that its decoder output configuration never changes, or maybe it handles change of parameters gracefully somehow.

from dcadec.

foo86 avatar foo86 commented on September 27, 2024

http://samples.libav.org/A-codecs/DTS/dts/Master%20Audio%205.1%2024bit.dts

Actually, dcadec decodes this one without any error in my case.

from dcadec.

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.