[haiku-bugs] Re: [Haiku] #12720: Garbled audio due to incorrect parameters on some codecs

  • From: "korli" <trac@xxxxxxxxxxxx>
  • Date: Mon, 18 Jul 2016 19:09:35 -0000

#12720: Garbled audio due to incorrect parameters on some codecs
-----------------------------+----------------------------
   Reporter:  anevilyak      |      Owner:  pulkomandy
       Type:  bug            |     Status:  assigned
   Priority:  normal         |  Milestone:  Unscheduled
  Component:  Add-Ons/Media  |    Version:  R1/Development
 Resolution:                 |   Keywords:  ffmpeg
 Blocked By:                 |   Blocking:
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------

Comment (by korli):

 Thanks for the feedback!

I would still use {{{av_sample_fmt_is_planar}}} to detect planar
 formats, instead of trying to guess from the input/output sizes.

 Yeah I guess.


Also, the libswr is able to do other conversions (float<>int or
 whatever), which may be required by some codecs where only float output is
 supported.

 AFAIK the plugin maps the avcodec sample format to the media kit sample
 format, this means we don't require any format. I don't understand what
 might be required then.


So, this needs careful testing with a lot of audio/video files (for
 example there are a lot at http://samples.ffmpeg.org), to make sure we
 don't need something else.

 Sure.


It's a bit sad that we can't get libswr working and we have to rewrite
 it, however :/

 Yeah, or avfilter. In this case though, we don't really need some audio
 conversion, just another structure. IMO it's not too bad if we can skip a
 dependency on libswr.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12720#comment:6>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: