定义
查询媒体信息返回的数据类型。
struct rts_worker_demux_info
{
int audio_flag;
int audio_channels;
int audio_sample_rate;
int video_flag;
int video_codec;
int video_width;
int video_height;
int video_profile;
int video_level;
unsigned char spspps[10 * 1024];
int spspps_len;
};
成员介绍
成员 | 解释 |
---|---|
audio_flag | 指示跟随其后的audio信息是否valid的标志。取值:
|
audio_channels | 音频channel数。当audio_flag等于1的时候才有意义。 |
audio_sample_rate | 音频采样率。当audio_flag等于1的时候才有意义。 |
video_flag | 指示跟随其后的video信息是否valid的标志。取值:
|
video_codec | 视频帧类型。当video_flag等于1(h264)的时候才有意义。 |
video_width | 视频分辨率宽度。当video_flag等于1的时候才有意义。 |
video_height | 视频分辨率高度。当video_flag等于1的时候才有意义。 |
video_profile | 视频编码使用的profile。当video_flag等于1,且video_codec等于1的时候才有意义。 |
video_level | 视频编码使用的level。当video_flag等于1,且video_codec等于1的时候才有意义。 |
spspps | 存放sps和pps数据,可用于提前初始化解码器,可以为空。当videoflag等于1,且video_codec等于1的时候才有意义。 |
spspps_len | spspps的长度(单位:字节)。当video_flag等于1,且video_codec等于1的时候才有意义。 |