MeiCam SDK For Android  3.10.0
Public Member Functions | List of all members
com.meicam.sdk.NvsAVFileInfo Class Reference

Audio and video file information. More...

Public Member Functions

int getAVFileType ()
 Gets the type of file. More...
 
long getDuration ()
 Gets the duration of file. More...
 
int getVideoCodecProfile (int videoStreamIndex)
 Get the codec profile of the current video stream through the video stream index. More...
 
int getVideoCodecLevel (int videoStreamIndex)
 Get the codec level of the current video stream through the video stream index. More...
 
long getDataRate ()
 Gets the data rate of the file. More...
 
int getVideoStreamCount ()
 Gets the number of video streams of the file. More...
 
int getAudioStreamCount ()
 Gets the number of audio streams of the file. More...
 
long getVideoStreamDuration (int videoStreamIndex)
 Get the duration of the current video stream through the video stream index. More...
 
NvsSize getVideoStreamDimension (int videoStreamIndex)
 Gets the size of the current video stream through the video stream index. More...
 
NvsRational getVideoStreamPixelAspectRatio (int videoStreamIndex)
 Gets the pixel aspect ratio of the current video stream through the video stream index. More...
 
NvsRational getVideoStreamFrameRate (int videoStreamIndex)
 Gets the frame rate of the current video stream through the video stream index. More...
 
int getVideoStreamRotation (int videoStreamIndex)
 Gets the rotation angle type of the current video stream through the video stream index. More...
 
int getVideoStreamComponentBitCount (int videoStreamIndex)
 Gets the effective number of bits per pixel component of the current video stream through the video stream index. More...
 
int getVideoStreamCodecType (int videoStreamIndex)
 Gets the video codec type of the current video stream through the video stream index. More...
 
int getVideoStreamColorTranfer (int videoStreamIndex)
 Gets the video color transfer of the current video stream through the video stream index. More...
 
int getVideoStreamHDRType (int videoStreamIndex)
 Gets the video HDR type of the current video stream through the video stream index. More...
 
long getAudioStreamDuration (int audioStreamIndex)
 Gets the duration of the current audio stream through the audio stream index. More...
 
int getAudioStreamSampleRate (int audioStreamIndex)
 Gets the sampling rate of the current audio stream through the audio stream index. More...
 
int getAudioStreamChannelCount (int audioStreamIndex)
 Gets the number of channels of the current audio stream through the audio stream index. More...
 
boolean getAudioStreamCodecSupport (int audioStreamIndex)
 Gets wether the codec of the current audio stream supported through the audio stream index. More...
 

Static Public Attributes

file type

static final int AV_FILE_TYPE_UNKNOWN = -1
 Unknown type. More...
 
static final int AV_FILE_TYPE_AUDIOVIDEO = 0
 Video type. More...
 
static final int AV_FILE_TYPE_AUDIO = 1
 Audio type. More...
 
static final int AV_FILE_TYPE_IMAGE = 2
 Image type. More...
 

Detailed Description

Audio and video file information.

Displays information about audio and video files, including the duration of audio and video files, data rate, aspect ratio of pixels, number of audio and video streams, and so on.

Warning
In the NvsAVFileInfo class, all public APIs can be used not only in the UI thread, but also across threads! ! !

Member Function Documentation

◆ getAudioStreamChannelCount()

int com.meicam.sdk.NvsAVFileInfo.getAudioStreamChannelCount ( int  audioStreamIndex)
inline

Gets the number of channels of the current audio stream through the audio stream index.

Parameters
audioStreamIndexAudio stream index
Returns
Returns the number of channels of the current audio stream.

◆ getAudioStreamCodecSupport()

boolean com.meicam.sdk.NvsAVFileInfo.getAudioStreamCodecSupport ( int  audioStreamIndex)
inline

Gets wether the codec of the current audio stream supported through the audio stream index.

Parameters
audioStreamIndexAudio stream index
Returns
Returns supported or not

◆ getAudioStreamCount()

int com.meicam.sdk.NvsAVFileInfo.getAudioStreamCount ( )
inline

Gets the number of audio streams of the file.

Returns
Returns the number of audio streams in the file.

◆ getAudioStreamDuration()

long com.meicam.sdk.NvsAVFileInfo.getAudioStreamDuration ( int  audioStreamIndex)
inline

Gets the duration of the current audio stream through the audio stream index.

Parameters
audioStreamIndexAudio stream index
Returns
Returns the duration of the current audio stream (in microseconds).

◆ getAudioStreamSampleRate()

int com.meicam.sdk.NvsAVFileInfo.getAudioStreamSampleRate ( int  audioStreamIndex)
inline

Gets the sampling rate of the current audio stream through the audio stream index.

Parameters
audioStreamIndexAudio stream index
Returns
Returns the sample rate of the current audio stream.

◆ getAVFileType()

int com.meicam.sdk.NvsAVFileInfo.getAVFileType ( )
inline

Gets the type of file.

Returns
Returns the obtained file type

◆ getDataRate()

long com.meicam.sdk.NvsAVFileInfo.getDataRate ( )
inline

Gets the data rate of the file.

Returns
Returns the data rate of the file

◆ getDuration()

long com.meicam.sdk.NvsAVFileInfo.getDuration ( )
inline

Gets the duration of file.

Returns
Returns the duration of file (in microseconds)

◆ getVideoCodecLevel()

int com.meicam.sdk.NvsAVFileInfo.getVideoCodecLevel ( int  videoStreamIndex)
inline

Get the codec level of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns the codec level of the current video stream.
See also
getVideoCodecLevel

◆ getVideoCodecProfile()

int com.meicam.sdk.NvsAVFileInfo.getVideoCodecProfile ( int  videoStreamIndex)
inline

Get the codec profile of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns the profile num of the current video stream.
See also
getVideoCodecProfile

◆ getVideoStreamCodecType()

int com.meicam.sdk.NvsAVFileInfo.getVideoStreamCodecType ( int  videoStreamIndex)
inline

Gets the video codec type of the current video stream through the video stream index.

Parameters
videoStreamIndexvedio stream index
Returns
Returns the video codec type of the current video stream.

◆ getVideoStreamColorTranfer()

int com.meicam.sdk.NvsAVFileInfo.getVideoStreamColorTranfer ( int  videoStreamIndex)
inline

Gets the video color transfer of the current video stream through the video stream index.

Parameters
videoStreamIndexvedio stream index
Returns
Returns the video color transfer of the current video stream.
Note
: To get this information, call NvsStreamingContext.getAVFileInfo () must use AV_ FILEINFO_ EXTRA_ Info flag

◆ getVideoStreamComponentBitCount()

int com.meicam.sdk.NvsAVFileInfo.getVideoStreamComponentBitCount ( int  videoStreamIndex)
inline

Gets the effective number of bits per pixel component of the current video stream through the video stream index.

Parameters
videoStreamIndexvedio stream index
Returns
Returns the number of pixels in the current video stream.

◆ getVideoStreamCount()

int com.meicam.sdk.NvsAVFileInfo.getVideoStreamCount ( )
inline

Gets the number of video streams of the file.

Returns
Returns the number of video streams of the file.

◆ getVideoStreamDimension()

NvsSize com.meicam.sdk.NvsAVFileInfo.getVideoStreamDimension ( int  videoStreamIndex)
inline

Gets the size of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns a NvsSize object, which represents the size (width and height) of the video stream.

◆ getVideoStreamDuration()

long com.meicam.sdk.NvsAVFileInfo.getVideoStreamDuration ( int  videoStreamIndex)
inline

Get the duration of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns the duration of the current video stream (in microseconds).
See also
getAudioStreamDuration

◆ getVideoStreamFrameRate()

NvsRational com.meicam.sdk.NvsAVFileInfo.getVideoStreamFrameRate ( int  videoStreamIndex)
inline

Gets the frame rate of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns a NvsRational object indicating the frame rate of the current video stream.

◆ getVideoStreamHDRType()

int com.meicam.sdk.NvsAVFileInfo.getVideoStreamHDRType ( int  videoStreamIndex)
inline

Gets the video HDR type of the current video stream through the video stream index.

Parameters
videoStreamIndexvedio stream index
Returns
Returns the video HDR type of the current video stream.
Note
: To get this information, call NvsStreamingContext.getAVFileInfo () must use AV_ FILEINFO_ EXTRA_ Info flag

◆ getVideoStreamPixelAspectRatio()

NvsRational com.meicam.sdk.NvsAVFileInfo.getVideoStreamPixelAspectRatio ( int  videoStreamIndex)
inline

Gets the pixel aspect ratio of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns a NvsRational object representing the pixel aspect ratio of the current video stream.

◆ getVideoStreamRotation()

int com.meicam.sdk.NvsAVFileInfo.getVideoStreamRotation ( int  videoStreamIndex)
inline

Gets the rotation angle type of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns the rotation angle type value of the current video stream. Please refer to Video Rotation Angle Type.

Member Data Documentation

◆ AV_FILE_TYPE_AUDIO

final int com.meicam.sdk.NvsAVFileInfo.AV_FILE_TYPE_AUDIO = 1
static

Audio type.

◆ AV_FILE_TYPE_AUDIOVIDEO

final int com.meicam.sdk.NvsAVFileInfo.AV_FILE_TYPE_AUDIOVIDEO = 0
static

Video type.

◆ AV_FILE_TYPE_IMAGE

final int com.meicam.sdk.NvsAVFileInfo.AV_FILE_TYPE_IMAGE = 2
static

Image type.

◆ AV_FILE_TYPE_UNKNOWN

final int com.meicam.sdk.NvsAVFileInfo.AV_FILE_TYPE_UNKNOWN = -1
static

Unknown type.


The documentation for this class was generated from the following file: