bug-vcdimager
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [VCDImager Bugs/Devel] MPEG end codes in 0.6.2 (mjpegtools mplex)


From: Herbert Valerio Riedel
Subject: Re: [VCDImager Bugs/Devel] MPEG end codes in 0.6.2 (mjpegtools mplex)
Date: Wed, 16 May 2001 19:46:03 +0200 (CEST)

On Wed, 16 May 2001, Andrew Stevens wrote:
> I'm trying to figure out the issue with the end-codes in a program stream.
> I just checked my ISO 13818-1 and the syntax for an MPEG-2 program
> stream is given as:
>
> MPEG2_program_stream() {
>       do {
>       pack();
>       } while(nextbits == pack_start_code );
>       MPEG_program_end_code;
> }
>
> I.e. a program end code (or system stream end code) should definitively sit
> after the end of the last Pack and not inside it.
well, at least it should be in the last 4 bytes of 2324 byte packets...

> Currently mplex writes the end-code into the start of the last sector
> and then packs the rest of the sector with 0's.   Any idea what the correct
> S(VCD) conformant solution is.

>  My guess would be a padding packet
> 4 bytes short of the sector size followed by the end code...
that's exactly how I usually see PEM in PS...

I've taken the last 2324 chunk of the next best mpeg2 sample I have
lying around...

00000000: 0000 01ba 4405 36f1 9401 0000 03f8 0000  ....D.6.........
00000010: 01bb 0009 8000 0100 e17f e0e0 e600 0001  ................
00000020: be08 edff ffff ffff ffff ffff ffff ffff  ................
00000030: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000040: ffff ffff ffff ffff ffff ffff ffff ffff  ................
[..]
000008e0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000008f0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000900: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000910: 0000 01b9                                ....

...hope it helps =)

-- 
Herbert Valerio Riedel       /    Phone: (EUROPE) +43-1-58801-18840
Email: address@hidden       /    Finger address@hidden for GnuPG Public Key
GnuPG Key Fingerprint: 7BB9 2D6C D485 CE64 4748  5F65 4981 E064 883F 4142





reply via email to

[Prev in Thread] Current Thread [Next in Thread]