PDA

View Full Version : VC-1 Muxing Questions


dburckh
22nd January 2008, 16:35
I have a need for a VC-1/AC3 -> TS muxer. I was considering trying my hand at it.

I started looking at some VC-1 video. I was looking for temporal references to generate PTS. It appears they are optional in VC-1 and were not present (I don't have an official spec, so I may be wrong). Can one assume that the video is sequential? If not, how do you tell the frame order? (I have a good MPG-2 background and MPG-2 is usually not muxed in order of temporal reference).

Further, there were a very limited number of PTS/DTS header packets in the original source (HD DVD). I could create a PTS every sequence, but that is a huge gap.

I could just make a huge (like 500 millis) gap between the pictures and the PCR, but that might cause a buffer overrun (I think that's the right term).

Thanks in advance.

dburckh
23rd January 2008, 22:33
Well dburckh, you can not assume that the frames are sequential. I looked BluRay M2TS stream and some of the frames have out of sequence timestamps. All the frames I saw were no more the 1 frame out of sequence, so I would think a SCR lead of 3/frameRate would be plenty.