Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
MPEG-1
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Program streams=== {{further|MPEG program stream}} [[MPEG program stream|Program Streams]] (PS) are concerned with combining multiple packetized elementary streams (usually just one audio and video PES) into a single stream, ensuring simultaneous delivery, and maintaining synchronization. The PS structure is known as a [[multiplexing|multiplex]], or a [[container format (digital)|container format]]. Presentation time stamps (PTS) exist in PS to correct the inevitable disparity between audio and video SCR values (time-base correction). 90 kHz PTS values in the PS header tell the decoder which video SCR values match which audio SCR values.<ref name=pack_header/> PTS determines when to display a portion of an MPEG program, and is also used by the decoder to determine when data can be discarded from the [[data buffer|buffer]].<ref name=tutorial_pts>{{Citation |first1=Mark |last1=Fimoff |first2=Wayne E. |last2=Bretl |title=MPEG2 Tutorial |date=December 1, 1999 |url=http://www.bretl.com/mpeghtml/PTS.HTM |access-date=2016-11-11 |url-status=live |archive-url=https://web.archive.org/web/20161105163559/http://www.bretl.com/mpeghtml/PTS.HTM |archive-date=November 5, 2016 }}</ref> Either video or audio will be delayed by the decoder until the corresponding segment of the other arrives and can be decoded. PTS handling can be problematic. Decoders must accept multiple ''program streams'' that have been concatenated (joined sequentially). This causes PTS values in the middle of the video to reset to zero, which then begin incrementing again. Such PTS wraparound disparities can cause timing issues that must be specially handled by the decoder. Decoding Time Stamps (DTS), additionally, are required because of B-frames. With B-frames in the video stream, adjacent frames have to be encoded and decoded out-of-order (re-ordered frames). DTS is quite similar to PTS, but instead of just handling sequential frames, it contains the proper time-stamps to tell the decoder when to decode and display the next B-frame (types of frames explained below), ahead of its anchor (P- or I-) frame. Without B-frames in the video, PTS and DTS values are identical.<ref name=tutorial_dts>{{Citation |first1=Mark |last1=Fimoff |first2=Wayne E. |last2=Bretl |title=MPEG2 Tutorial |date=December 1, 1999 |url=http://www.bretl.com/mpeghtml/DTS.HTM |access-date=2016-11-11 |url-status=live |archive-url=https://web.archive.org/web/20161105163603/http://www.bretl.com/mpeghtml/DTS.HTM |archive-date=November 5, 2016 }}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)