RTSP using QtMultimedia
-
Hello,
I am creating a Qt application for decoding and viewing H.264-encoded RTSP streams. After browsing the web a bit, it seems like Phonon is capable of handling this. I am using Qt5, which seems to have replaced Phonon with QtMultimedia.
When I create a simple test application, I am unable to view my RTSP stream. The application amounts to this:
@
video_widget = new QVideoWidget(this);
media_player = new QMediaPlayer(this);
QString rtsp_url = QString("rtsp://12.34.567.890:8554/test");
media_player->setMedia(QUrl(rtsp_url));
media_player->setVideoOutput(video_widget);
media_player->play();
@Does QtMultimedia support RTSP streams? Substituting the RTSP URL with a file on my desktop will play the local file correctly, which leads me to believe that the above code is sound.
Thank you
-
Hey, I´m having the same problem, I want to view my RTSP stream, but I cant view it. Have you solved this trouble?
This is my email: fbernaly@gmail.com
-
I was unable to solve the problem using QtMultimedia, although using Phonon in Qt 4.8 worked in Linux (but not in Windows/Mac).
In the end, I wrote my own classes for viewing the streams using a combination of FFMPEG and OpenGL.
-
[quote author="foogered" date="1364327363"]In the end, I wrote my own classes for viewing the streams using a combination of FFMPEG and OpenGL. [/quote]
Are you using FFMpeg library under Windows? I tried it, but the documentation is really bad!
-
Are you using FFMpeg library under Windows? I tried it, but the documentation is really bad!