1. use the scene
4- way car video recorder, channel 1, channel 2 is 264 format, channel 3, channel 4 is 265 format video
2. Docking instructions
2.1 Docking Instructions
/very/ ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** *
// Get video parameters
// @ nChannel: channel number starts from 0
// @ nStreamType: TTX_STREAM_TYPE_MAIN or TTX_STREAM_TYPE_SUB
// @ nVideoCoder: TTX_VIDEO_CODEC_H265 such as audio type TTX_VIDEO_CODEC_H264
// If the video format of different channels is different, please reload this interface, for example, channel 1 is 264, channel 2 is 265
// If the video format is the same, you do not need to overload the GetVideoParam interface.
Wash ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** /
virtual bool GetVideoParam(int nChannel, int nStreamType, int& nVideoCoder) { return false;}
Overload the GetVideoParam function, pass the nChannel parameter, return the video format corresponding to the channel, the function returns true
Example:
bool GetVideoParam(int nChannel, int nStreamType, int& nVideoCoder)
{
if (nChannel == 0 || nChannel == 1)
{
nVideoCoder = TTX_VIDEO_CODEC_H264;
}
else
{
nVideoCoder = TTX_VIDEO_CODEC_H265;
}
return true;
}