Package com.avpkit.core.demos
Class DecodeAndPlayAudioAndVideo
- java.lang.Object
-
- com.avpkit.core.demos.DecodeAndPlayAudioAndVideo
-
public class DecodeAndPlayAudioAndVideo extends java.lang.Object
Takes a media container, finds the first video stream, decodes that stream, and then plays the audio and video. This code does a VERY coarse job of matching time-stamps, and thus the audio and video will float in and out of slight sync. Getting time-stamps syncing-up with audio is very system dependent and left as an exercise for the reader.- Author:
- aclarke
-
-
Constructor Summary
Constructors Constructor Description DecodeAndPlayAudioAndVideo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Takes a media container (file) as the first argument, opens it, plays audio as quickly as it can, and opens up a Swing window and displays video frames with roughly the right timing.
-
-
-
Constructor Detail
-
DecodeAndPlayAudioAndVideo
public DecodeAndPlayAudioAndVideo()
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Takes a media container (file) as the first argument, opens it, plays audio as quickly as it can, and opens up a Swing window and displays video frames with roughly the right timing.- Parameters:
args- Must contain one string which represents a filename
-
-