// The flush packet is a non-null packet with size 0 and data null private static void LoadMovie() { if (Movies != null && Index < Movies.Count) { FfccAudio = new Ffcc(Movies[Index], AVMediaType.AVMEDIA_TYPE_AUDIO, Ffcc.FfccMode.STATE_MACH); FfccVideo = new Ffcc(Movies[Index], AVMediaType.AVMEDIA_TYPE_VIDEO, Ffcc.FfccMode.STATE_MACH); FPS = FfccVideo.FPS; if (Math.Abs(FPS) < double.Epsilon) { TextWriter errorWriter = Console.Error; errorWriter.WriteLine("Can not calc FPS, possibly FFMPEG dlls are missing or an error has occured"); MovieState = STATE_RETURN; } } }
// The flush packet is a non-null packet with size 0 and data null private static void InitMovie() { FfccAudio = new Ffcc(Movies[Index], AVMediaType.AVMEDIA_TYPE_AUDIO, Ffcc.FfccMode.STATE_MACH); T_Audio = new Thread(FfccAudio.NextAsync) { Priority = ThreadPriority.AboveNormal }; FfccVideo = new Ffcc(Movies[Index], AVMediaType.AVMEDIA_TYPE_VIDEO, Ffcc.FfccMode.STATE_MACH); FPS = FfccVideo.FPS; if (Math.Abs(FPS) < double.Epsilon) { TextWriter errorWriter = Console.Error; errorWriter.WriteLine("Can not calc FPS, possibly FFMPEG dlls are missing or an error has occured"); MovieState = STATE_RETURN; } }