You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of acquiring multiple video streams and one thread per path, there is a phenomenon of frame dropping. By capturing the packet, the machine has received the lost packet, but the program has not received it. Below is my code. bool RtspClient::isPlay() { bool isplay=false; pthread_mutex_lock( &this->playMutex ); if(this->Del==0&&this->used==1) isplay=true; pthread_mutex_unlock( &this->playMutex ); return isplay; } uint32_t timesTamp=0; while( Client->isPlay()) { uint8_t* ret = Client->GetMediaData("video", buf, &size, bufSize,×Tamp); }
I added the get rtp timestamp and found that there is a frame loss situation at 25fps. I use the way of RTSP over TCP to get data. I want to ask the function uint8_t * MyRTPTCPSession::GetMyRTPData(uint8_t * data_buf, size_t * size, unsigned long timeout_ms) whether it is multi-thread safe
The text was updated successfully, but these errors were encountered:
In the case of acquiring multiple video streams and one thread per path, there is a phenomenon of frame dropping. By capturing the packet, the machine has received the lost packet, but the program has not received it. Below is my code.
bool RtspClient::isPlay() { bool isplay=false; pthread_mutex_lock( &this->playMutex ); if(this->Del==0&&this->used==1) isplay=true; pthread_mutex_unlock( &this->playMutex ); return isplay; } uint32_t timesTamp=0; while( Client->isPlay()) { uint8_t* ret = Client->GetMediaData("video", buf, &size, bufSize,×Tamp); }
I added the get rtp timestamp and found that there is a frame loss situation at 25fps. I use the way of RTSP over TCP to get data. I want to ask the function uint8_t * MyRTPTCPSession::GetMyRTPData(uint8_t * data_buf, size_t * size, unsigned long timeout_ms) whether it is multi-thread safe
The text was updated successfully, but these errors were encountered: