TVideoGrabber.AVIInfo2

Prev

Next

TVideoGrabber

Methods

 




































































































Used to retrieve information about the specified video clip.


Declaration
function AVIInfo2 (AVIFile: string; AVIInfoType: TAVIInfoType): string;


wchar_t *__fastcall AVIInfo2(wchar_t *AVIFile, TAVIInfoType AVIInfoType);


Function AVIInfo2 (AVIFile as string; AVIInfoType as TAVIInfoType) as String

Description

This function returns theTAVIInfoType value as a string for the video clip specified as parameter.
E.g.:

Dim VideoCodec as string
VideoCodec = AVIInfo2 ("myvideoclip.avi", av_VideoCodec)

Dim ClipDuration as string
ClipDuration = AVIInfo2 ("myvideoclip.avi", av_Duration)

Note: if the clip file name does not change, the clip is opened only one time. All the values are read and cached.
Therefore all the subsequent calls to AVIInfo2 with the same file name do not reopen the video clip.

The possible values returned by AVIInfo2 depending on TAVIInfoType are (av_Duration, av_FrameCount, av_VideoWidth, av_VideoHeight, av_VideoFrameRateFps, av_VideoCodec, av_AudioCodec, av_AvgBitRate, av_AudioChannels, av_AudioSamplesPerSec, av_AudioBitsPerSample);


See Also
Player features TOnPlayerStateChanged TPlayerState TOnPlayerBufferingData AudioChannelRenderMode AudioStreamNumber AutoStartPlayer AVIDuration AVIHeaderInfo AVIInfo ClosePlayer FastForwardPlayer IsPlayerAudioStreamAvailable IsPlayerVideoStreamAvailable Last_Clip_Played OnPlayerBufferingData OnPlayerEndOfStream OnPlayerStateChanged OnPlayerUpdateTrackbarPosition OpenPlayer OpenPlayerAtFramePositions OpenPlayerAtTimePositions PausePlayer PlayerAudioCodec PlayerAudioRendering PlayerDuration PlayerDVSize PlayerFastSeekSpeedRatio PlayerFileName PlayerForcedCodec PlayerFrameCount PlayerFramePosition PlayerFrameRate PlayerFrameStep PlayerRefreshPausedDisplay PlayerRefreshPausedDisplayFrameRate PlayerSpeedRatio PlayerTimePosition PlayerTrackBar PlayerTrackBarScale PlayerTrackBarSynchrone PlayerVideoCodec RewindPlayer RunPlayer RunPlayerBackwards ShowDialog SourceStream StopPlayer SynchronizationRole Synchronized VideoHeight_PreferredAspectRatio VideoWidth_PreferredAspectRatio