Problem with audio PES header

Chris Worley cworley at symbionsys.com
Mon Apr 30 04:34:33 CEST 2001


My hardware's MPEG2 encoder output is in the form of PES streams, vlc
seems fine with the video packets, but is not producing any sound.  I've
traced through the audio decode thread, it seems to be walking through
the audio data correctly, but I'm really not sure where to look for
problems.

If I strip off the pes header and pipe just the sound through mpg123, it
will play correctly; so I figure the problem is in the PES header for
the audio.

Could anyone proficient at MPEG sound headers scan this for problems? 
Here's an example chunk, from the beginning, of a 16 byte PES header
plus some of the MPEG audio data following:

> od -A x -t x1 ../test.mpeg | less
000000 00 00 01 c0 1e 6a 8c 80 07 21 00 05 fa 1b ff ff
000010 ff fd a8 00 66 66 44 55 55 33 33 33 33 33 33 25
000020 b4 92 25 22 52 25 22 52 55 55 55 5a aa aa aa 4a
000030 ff ff ff 5f ff ff f0 ff ff ff f3 4d 3c e5 96 5d
000040 76 58 75 d7 1c 76 27 1f 89 b6 dd 89 d8 9d 85 c8
000050 60 8e 08 dd 89 d8 5f 99 e9 9e 99 d9 a1 9a 19 9f
000060 91 f9 21 9a 19 9e 99 e9 a1 a2 1a 20 a1 fa 23 a2
000070 3a 1f 9a c7 e6 b2 2a 22 a2 0a 20 a2 39 a2 9a 0a

Thanks,

Chris




More information about the vlc-devel mailing list