MPEG 2 decoding

I want to understand how video and audio decoding works, especially time synchronization (how to get 30fps video, how to associate this with audio, etc.). I do not want to know ALL the details, only the essence of this. I want to be able to write high-level simplification of a real video / audio decoder.

Could you point the pointers to me? The actual C / C ++ source code of an MPEG2 video / audio decoder would be the fastest way to understand the things that I think.

+5
source share
6 answers

You can view the ffmpeg source code (available via svn) or its API documentation .

+3

, , . :

http://www.mpeg.org/MPEG/video/mssg-free-mpeg-software.html

, - mpeg.org, , , .

mpeg- ( ), . , , , / .

, . , !

EDIT:

, , , (. ).

+6

/, , - . PTS (Stash Time). , / , , /.

, " Timing Model " MPEG2 .

+3
+1

@

, , , hein... , . , , (, " " ). ? , - , - ?

: , : http://www.dranger.com/ffmpeg/tutorial01.html

+1

Helltone,

- , - . :

V: 1000 1040 1080 1120... A: 990 1013 1036 () 1082

You may need to compensate for the offset between the first video / audio frame. Also, if it is possible that there is packet loss (during video streaming), you need timestamps for the video / audio to ensure accurate synchronization.

+1
source

All Articles