| | |
| | | pm.buffSize = 0;
|
| | | pm.former = this;
|
| | |
|
| | | // if(nullptr!=pm.buffer)
|
| | | // {
|
| | | // MB_Frame* frame = (MB_Frame*)pm.buffer;
|
| | | // if (frame->type == MB_Frame::MBFT_H264_NALU)
|
| | | // {
|
| | | // static FILE *pFile = fopen("/data/bb1.264", "wb");
|
| | | // fwrite(frame->buffer, sizeof(char), frame->buffSize, pFile);
|
| | | // fflush(pFile);
|
| | | // }
|
| | | // }
|
| | |
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | sprintf(tmp, "%u", param.height); client->manager->set_param(PLGP_RTSP_HEIGHT, std::string(tmp));
|
| | | sprintf(tmp, "%u", param.fps); client->manager->set_param(PLGP_RTSP_FPS, std::string(tmp));
|
| | |
|
| | | size_t spl = 0;
|
| | | if (param.fmtp.find_first_of(',') != std::string::npos)
|
| | | {
|
| | | //#todo
|
| | | // split fmpt to base64 of sps,pps
|
| | | // set to PLGP_DEC_SPS_B64 PLGP_DEC_PPS_B64
|
| | | spl = param.fmtp.find_first_of(',');
|
| | | std::string _base64_sps = param.fmtp.substr(0, spl);
|
| | | std::string _base64_pps = param.fmtp.substr(spl + 1, param.fmtp.length());
|
| | | client->manager->set_param(PLGP_DEC_SPS_B64,_base64_sps);
|
| | | client->manager->set_param(PLGP_DEC_PPS_B64,_base64_pps);
|
| | | }
|
| | |
|
| | | /*
|