wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.99k stars 1.51k forks source link

RTMP : QtAV to OpenCV #1276

Open pebdev opened 4 years ago

pebdev commented 4 years ago

Hi, I use latest version of QtAV.

My goal :

Current way that I use to get and display image with QtAV :

...
this->m_avPlayer = new QtAV::AVPlayer(this);
this->m_videoView = new QtAV::VideoOutput(this);

if (!this->m_videoView->widget())
{
    std::cout << "QtAV error : can not create video renderer" << std::endl;
    return;
}
this->m_avPlayer->setRenderer(this->m_videoView);
this->m_avPlayer->play(this->m_path)
...

I tried lot of things (VideoFrameExtractor,VideoFrameConverter on positionChanged) but I can't find solution to extract images from the AVPlayer or VideoOut. Is it possible ?

Thanks.

wang-bin commented 4 years ago

Try VideoFilter