MeiCam SDK For iOS  3.10.0
Instance Methods | Properties | List of all members
NvsAVFileInfo Class Reference

Audio and video file information. More...

#import <NvsAVFileInfo.h>

Inheritance diagram for NvsAVFileInfo:

Instance Methods

(int64_t) - getVideoStreamDuration:
 Gets the duration of the video through the video stream index. More...
 
(NvsSize- getVideoStreamDimension:
 Gets the video stream size through the video stream index. More...
 
(NvsRational- getVideoStreamPixelAspectRatio:
 Gets the video stream pixel aspect ratio through the video stream index. More...
 
(NvsRational- getVideoStreamFrameRate:
 Gets the video stream frame rate through the video stream index. More...
 
(NvsVideoRotation- getVideoStreamRotation:
 Gets the video stream rotation angle type through the video stream index. More...
 
(unsigned int) - getVideoStreamComponentBitCount:
 Gets the effective count of bits per pixel component of the current video stream through the video stream index. More...
 
(NvsVideoCodecType- getVideoStreamCodecType:
 Gets the video codec type of the current video stream through the video stream index. More...
 
(int) - getVideoCodecProfile:
 Gets the video codec profile of the current video stream through the video stream index. More...
 
(int) - getVideoCodecLevel:
 Gets the video codec level of the current video stream through the video stream index. More...
 
(NvsVideoColorTransfer- getVideoStreamColorTranfer:
 Gets the video color transfer of the current video stream through the video stream index. More...
 
(NvsVideoHDRType- getVideoStreamHDRType:
 Gets the video HDR type of the current video stream through the video stream index. More...
 
(int64_t) - getAudioStreamDuration:
 Gets the audio stream duration through the audio stream index. More...
 
(unsigned int) - getAudioStreamSampleRate:
 Gets the sampling rate of the audio stream through the audio stream index. More...
 
(unsigned int) - getAudioStreamChannelCount:
 Gets the channel count of the audio stream through the audio stream index. More...
 
(BOOL) - getAudioStreamCodecSupport:
 Gets whether codec is supported of the audio stream through the audio stream index. More...
 

Properties

NvsAVFileType avFileType
 File type. More...
 
int64_t duration
 Duration(in microseconds) More...
 
uint64_t dataRate
 Data rate. More...
 
unsigned int videoStreamCount
 Video stream count. More...
 
unsigned int audioStreamCount
 Audio stream count. More...
 

Detailed Description

Audio and video file information.

Shows information about audio and video files, including the duration of audio and video files, data rate, aspect ratio of pixels, audio and video streams count, etc.

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

Method Documentation

◆ getAudioStreamChannelCount:

- (unsigned int) getAudioStreamChannelCount: (unsigned int)  audioStreamIndex

Gets the channel count of the audio stream through the audio stream index.

Parameters
audioStreamIndexAudio stream index
Returns
Returns the channel count of the current audio stream

◆ getAudioStreamCodecSupport:

- (BOOL) getAudioStreamCodecSupport: (unsigned int)  audioStreamIndex

Gets whether codec is supported of the audio stream through the audio stream index.

Parameters
audioStreamIndexAudio stream index
Returns
Returns whether codec is supported

◆ getAudioStreamDuration:

- (int64_t) getAudioStreamDuration: (unsigned int)  audioStreamIndex

Gets the audio stream duration through the audio stream index.

Parameters
audioStreamIndexAudio stream index
Returns
Returns the duration of the current audio stream (in microseconds).
See also
- getVideoStreamDuration:

◆ getAudioStreamSampleRate:

- (unsigned int) getAudioStreamSampleRate: (unsigned int)  audioStreamIndex

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

Parameters
audioStreamIndexAudio stream index
Returns
Returns the sampling rate of the current audio stream

◆ getVideoCodecLevel:

- (int) getVideoCodecLevel: (unsigned int)  videoStreamIndex

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

Parameters
videoStreamIndexVideo stream index
Returns
Returns the int object,which indicates the video codec level in the current video stream

◆ getVideoCodecProfile:

- (int) getVideoCodecProfile: (unsigned int)  videoStreamIndex

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

Parameters
videoStreamIndexVideo stream index
Returns
Returns the int object,which indicates the video codec profile in the current video stream

◆ getVideoStreamCodecType:

- (NvsVideoCodecType) getVideoStreamCodecType: (unsigned int)  videoStreamIndex

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

Parameters
videoStreamIndexVideo stream index
Returns
Returns the NvsVideoCodecType object,which indicates the video codec type in the current video stream

◆ getVideoStreamColorTranfer:

- (NvsVideoColorTransfer) getVideoStreamColorTranfer: (unsigned int)  videoStreamIndex

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:

- (unsigned int) getVideoStreamComponentBitCount: (unsigned int)  videoStreamIndex

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

Parameters
videoStreamIndexVideo stream index
Returns
Returns the count of pixels in the current video stream

◆ getVideoStreamDimension:

- (NvsSize) getVideoStreamDimension: (unsigned int)  videoStreamIndex

Gets the video stream size through the video stream index.

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

◆ getVideoStreamDuration:

- (int64_t) getVideoStreamDuration: (unsigned int)  videoStreamIndex

Gets the duration of the video 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) getVideoStreamFrameRate: (unsigned int)  videoStreamIndex

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

Parameters
videoStreamIndexVideo stream index
Returns
Returns the NvsRational object, which indicates the frame rate of the current video stream.
See also
- getVideoStreamPixelAspectRatio:

◆ getVideoStreamHDRType:

- (NvsVideoHDRType) getVideoStreamHDRType: (unsigned int)  videoStreamIndex

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) getVideoStreamPixelAspectRatio: (unsigned int)  videoStreamIndex

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

Parameters
videoStreamIndexVideo stream index
Returns
Returns the NvsRational object, which represents the pixel aspect ratio of the current video stream.
See also
- getVideoStreamFrameRate:

◆ getVideoStreamRotation:

- (NvsVideoRotation) getVideoStreamRotation: (unsigned int)  videoStreamIndex

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

Parameters
videoStreamIndexVideo stream index
Returns
Returns the NvsVideoRotation object, which indicates the rotation angle type of the current video stream.

Property Documentation

◆ audioStreamCount

- (unsigned int) audioStreamCount
readatomicassign

Audio stream count.

◆ avFileType

- (NvsAVFileType) avFileType
readatomicassign

File type.

◆ dataRate

- (uint64_t) dataRate
readatomicassign

Data rate.

◆ duration

- (int64_t) duration
readatomicassign

Duration(in microseconds)

◆ videoStreamCount

- (unsigned int) videoStreamCount
readatomicassign

Video stream count.


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