The two other kinds of frames are called "I" frames and "P" frames ("I" for "intra" and "P" for "predicted"). Some formats, like MPEG, use what they call "B" frames (B stands for "bidirectional"). To understand these two values, you need to know about the way movies are stored. Instead, packets from the stream might have what is called a decoding time stamp (DTS) and a presentation time stamp (PTS). However, if we simply synced the video by just counting frames and multiplying by frame rate, there is a chance that it will go out of sync with the audio. Audio streams have a sample rate, and the video streams have a frames per second value. So what do we do?įortunately, both the audio and video streams have the information about how fast and when you are supposed to play them inside of them. It plays the video, yeah, and it plays the audio, yeah, but it's not quite yet what we would call a movie. So this whole time, we've had an essentially useless movie player. Ffmpeg tutorial Tutorial 05: Synching Video Code: tutorial05.c How Video Syncs
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |