Talk:PCM

From MultimediaWiki
Jump to navigation Jump to search

DVD 24-Bit PCM

description seems to be wrong. I managed to get my 24bit DVD example to be played by ffplay. For correctness I compared to mplayers output.

The byte packing seems to be like that:

  • M = top byte = bits 23..16
  • B = middle byte = bits 15..8
  • T = bottom byte = bits 7..0

--Elte 05:45, 12 April 2008 (EDT)

But does it play my 24-bit DVD PCM sample, found here? --Multimedia Mike 17:17, 12 April 2008 (EDT)
Of course. I've tested it my own dvd and with your vob too. --Elte 07:02, 13 April 2008 (EDT)
I'll still need to test this for myself. I figured out the format by studying the PCM bytes in that sample. I wrote the decoder for xine and it always sounded just fine. The xine source code matches my original description. --Multimedia Mike 10:39, 14 April 2008 (EDT)
Nevermind. I think I am starting to understand the situation. I think when I wrote the xine code, I was building 16-bit PCM samples out of the top and bottom bytes. When I wrote the Wiki description sometime later, I must have been a bit confused about the ordering. I will update the picture (and make a new picture for 20-bit as well). --Multimedia Mike 11:18, 14 April 2008 (EDT)