VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. hi all,

    I'm trying to parse pcm audio packet from transport stream file, but I'm missing 4 bytes
    Code:
     47 51 00 11 00 00 01 BD 03 CC 84 80 05 21 0C DF F3 01 03 C0 31 60 00 00 00 00 00 00 FF FF FF FF ...
    |___________|___________|_____________________________|___________|______________________________...
     ts packet   PES Sync      PES Header                   ????????    Raw pcm 2ch 48khz 16bit
     header      Private 
                 Stream 1
    can anybody tell me the format for the pcm header i'm missing?

    ran.
    Quote Quote  
  2. I am no expert. But this is what I know.

    size in bytes = 16 bits
    channel assignment = 4 bits
    sampling frequency = 4 bits
    bits per sample = 2 bits
    start flag = 1 bit
    reserved = 5 bits

    channel assignment
    1 = mono
    3 = stereo
    4 = 3/0
    5 = 2/1
    6 = 3/1
    7 = 2/2
    8 = 3/2
    9 = 3/2+lfe
    10 = 3/4
    11 = 3/4+lfe

    sampling frequency
    1 = 48 kHz
    4 = 96 kHz
    5 = 192 kHz

    bits per sample
    1 = 16
    2 = 20
    3 = 24

    Your example of 03 C0 31 60 is:

    960 bytes
    stereo
    48 kHz
    16 bits/sample
    start flag is on
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!