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

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 18 Jul 2016 20:01:01 -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 pulkomandy):

 We always request a sample format that matches what we want to output, but
 some codecs in ffmpeg may ignore the request (we also request non-planar
 output, and they ignore that). It depends on the format used, and also on
 the version of ffmpeg.

 This is why I tried to go with swr: it would solve all the possible
 mismatches and always make sure we ouput exactly what was requested. It is
 a bit nicer and more predictible for apps and they don't have to do the
 format conversion on their side this way.

 But, as it doesn't work reliably, we can go with a simple rematrixing as
 you did, it should cover most cases for now.

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

Other related posts: