[MPlayer-dev-eng] Re: [PATCH] add support for big-endian PCM output

Grant Edwards grante at visi.com
Mon Mar 26 22:58:53 CEST 2007


On 2007-03-21, Grant Edwards <grante at visi.com> wrote:

> [I posted this to the mencoder-user list a while back. Judging
> by the lack of any sort of rsopnse that was the wrong forum.]
>
> I needed to be able to encode to 16-bit uncompressed big-endian
> PCM.  I couldn't get either "-format sb16be" or "-af format=s16be" 
> to encode to big-endian format, so I gave up and added a "pcms"
> audio encoder that swaps the byte-order of the data stream.  In
> order to get lavf containers to label the stream correctly, I
> had to invent a new "wav" audio tag for big-endian PCM.
>
> Although it works I have a feeling that this wasn't really the
> "right" way to do it.  If anybody would care to comment or
> suggest a better way to get big-endian PCM output please feel
> free to do so.
>
> Anyway, the patch is available at 
>
> http://www.visi.com/~grante/sansa/mplayer-1.0rc1-encode-bigendian-pcm.patch

So, any comments on the patch?

Is there a better way to get big-endian PCM audio in a
quicktime file?

-- 
Grant Edwards                   grante             Yow!  After this, I'm going
                                  at               to BURN some RUBBER!!
                               visi.com            




More information about the MPlayer-dev-eng mailing list