CMSV6Help Center
/
839 DOCS · 213 VIDEOS中文

264 and 265 video formats exist simultaneously on different channels of the device

Author 谢周轩Updated 2025-10-16 14:58:49Doc ID 2382239 words · 1 min readView original ↗

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;
}

Source help.cmsv7.com
839 documents · 213 videos · docs.alwaycare.com