![]() then any quality problems are actually coming from somewhere else. if we are taking only a small fraction of the required frame time to decode M_nKeyFramePeriod = m_nFramesSinceKeyFrame overoptimistic about how frequent they are. We haven't seen the key frame yet, but we were clearly being Int itrFrame = (int)(trStopAt - trStart) // frame duration HRESULT hr = pIn->GetTime(&trStart, &trStopAt) Please help me in understanding the problem.īOOL CVideoTransformFilter::ShouldSkipFrame( IMediaSample * pIn) I saw that some one has recommended for using LEAD video codec's MJPEG Decompressor, i have same results with that filter too. Currently if i rebuild the graph after quality change message it runs for another 2.5 minutes. Then i realized the CPU was as high as 90-100% after which i receive EC_QUALITY_CHANGE message. I found that the issue does not happen if the capture resolution was 352x288 or 320x240 so it seems like there is a problem with higher resolution. Will MJPEG Decompressor Filter handle this message? What would be the effect of the EC_QUALITY_CHANGE message? There were no indication coming in CTransformFilter::AlterQuality function of my Encoder filter, if this event is started from the VMR filter why is not received by my encoder filter? So i thought of trapping the message being passed to Upstream, i queried for the IQualit圜ontrol in my Encoder which is a Transform Filter and tried setting this as the sink to the VMR7 after querying for the IQualit圜ontrol from its input pin. So i referred to the VMR(MSDN) and found that it will be raised when the renderer started to drop the frames. I later tried to increase the number of buffers present in the input pin of MJPG Decompressor after which the issue does not seem to happen for about 2.5 minutes after which it starts again.Īfter some more analysis there was a EC_QUALITY_CHANGE message coming in the filter graph. The MJPG Decompressor will work for some time randomly less than 10 seconds, after which the frame from MJPG Decompressor will be still. I am using the capture pin in the camera and have selected 640x480 MJPG to do at 30 FPS. I am using a graph which has the followingĬamera -> MJPG Decompressor ->Inf Tee Filter -> Encoder -> Network
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |