MeiCam SDK For Android  3.15.3
Classes | Public Member Functions | Static Public Attributes | List of all members
com.meicam.sdk.NvsAVFileInfo Class Reference

Audio and video file information. More...

Classes

class  ExtendsDataInfo
 

Public Member Functions

int getAVFileType ()
 Gets the type of file. More...
 
long getDuration ()
 Gets the duration of file. More...
 
int getFlags ()
 Gets flags of file info. More...
 
ExtendsDataInfo getExtendsDataInfo ()
 Gets file extends data info . 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

static final int VIDEO_CODE_TYPE_Unknown = 0
 Video codec type. More...
 
static final int VIDEO_CODE_TYPE_H264 = 1
 
static final int VIDEO_CODE_TYPE_H265 = 2
 
static final int VIDEO_CODE_TYPE_MPEG4 = 3
 
static final int VIDEO_CODE_TYPE_VP8 = 4
 
static final int VIDEO_CODE_TYPE_VP9 = 5
 
static final int VIDEO_CODE_TYPE_WMV = 6
 
static final int VIDEO_CODE_TYPE_MPEG1 = 7
 
static final int VIDEO_CODE_TYPE_MPEG2 = 8
 
static final int VIDEO_CODE_TYPE_MJPEG = 9
 
static final int VIDEO_CODE_TYPE_AV1 = 11
 
static final int VIDEO_CODE_TYPE_ProRes = 12
 
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...
 
file info flags

static final int AV_FILE_INFO_FLAGS_HAS_VIDEO_PART_IN_IMAGE = 1
 

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)

◆ getExtendsDataInfo()

ExtendsDataInfo com.meicam.sdk.NvsAVFileInfo.getExtendsDataInfo ( )
inline

Gets file extends data info .

Returns
Returns extends data info
Since
3.15.0

◆ getFlags()

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

Gets flags of file info.

Returns
Returns flags of file info
Since
3.15.0

◆ 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.(VIDEO_CODE_TYPE)

◆ 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_INFO_FLAGS_HAS_VIDEO_PART_IN_IMAGE

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

There is a video in the image file

◆ 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.

◆ VIDEO_CODE_TYPE_AV1

final int com.meicam.sdk.NvsAVFileInfo.VIDEO_CODE_TYPE_AV1 = 11
static

◆ VIDEO_CODE_TYPE_H264

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

◆ VIDEO_CODE_TYPE_H265

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

◆ VIDEO_CODE_TYPE_MJPEG

final int com.meicam.sdk.NvsAVFileInfo.VIDEO_CODE_TYPE_MJPEG = 9
static

◆ VIDEO_CODE_TYPE_MPEG1

final int com.meicam.sdk.NvsAVFileInfo.VIDEO_CODE_TYPE_MPEG1 = 7
static

◆ VIDEO_CODE_TYPE_MPEG2

final int com.meicam.sdk.NvsAVFileInfo.VIDEO_CODE_TYPE_MPEG2 = 8
static

◆ VIDEO_CODE_TYPE_MPEG4

final int com.meicam.sdk.NvsAVFileInfo.VIDEO_CODE_TYPE_MPEG4 = 3
static

◆ VIDEO_CODE_TYPE_ProRes

final int com.meicam.sdk.NvsAVFileInfo.VIDEO_CODE_TYPE_ProRes = 12
static

◆ VIDEO_CODE_TYPE_Unknown

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

Video codec type.

◆ VIDEO_CODE_TYPE_VP8

final int com.meicam.sdk.NvsAVFileInfo.VIDEO_CODE_TYPE_VP8 = 4
static

◆ VIDEO_CODE_TYPE_VP9

final int com.meicam.sdk.NvsAVFileInfo.VIDEO_CODE_TYPE_VP9 = 5
static

◆ VIDEO_CODE_TYPE_WMV

final int com.meicam.sdk.NvsAVFileInfo.VIDEO_CODE_TYPE_WMV = 6
static

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