QMediaPlayer and QGraphicsVideoItem: unable to seek for a video file without audio thread
I use QMediaPlayer and QGraphicsVideoItem for video output. When i try to seek for a video without audio thread video position isn't changed. Then i go to source code of DirectShow and notice that the method IMediaSeeking::setPosition() returns -2147467263(E_FAIL).
Win7 Professional SP1, Qt 5.3.1
Do you have gstreamer for Windows, installed somewhere ?
I changed the topic and described my problem globally.
It even changes the problem completely.
When you say video without audio thread to you mean video without a sound track ?
Yes, media file with just one video thread.
Hi I had same problem with videosurface, I guess there is a bug from somewhere when you switch from wmf to directx engine. I solved in this manner:
When you scroll or set direct position do
play->stop, change setOutputVideo(QVideoWidget reference) ,player->setPosition
and when release slider do
player->setOutPutVideo(QVideoGraphics or VideoSurface), player->play()