Video play using gstreamer / directshow /vlc
-
Hello, I'm working on a C++/QML application that is working on linux and windows.
The main iea is to display a video in Qml using QMEDIAPLAYER.
Video Lecture uses the Api:
ON linux : gstreamer that i have installed
On windows : directShow by default ( installed k-lite for the codecs )
so my question is the next: what's the difference between the directshow Api and gstreamer ? should i compile gstreamer on windows to have the same behavior on linux ?And What about the option of using vlc in c++ to use the object in QML?
-
@The-Qt-Mayssa said in Video play using gstreamer / directshow /vlc:
what's the difference between the directshow Api and gstreamer ?
One API is the invention of Microsoft for use on Windows (and deprecated), the other is open source with cross-platform support. Directshow is guaranteed to be present on any modern Windows machine and thus the default there. GStreamer is often present, or trivially installable, on Linux machines. They both provide facilities for manipulating video and audio.
should i compile gstreamer on windows to have the same behavior on linux ?
Not without a compelling reason for spending the time and effort.
From the perspective of QMediaPlayer it is largely irrelevant which backend is in use: they all provide sufficient capability.There are prebuilt Gstreamer runtime binaries for Windows in any case.
And What about the option of using vlc in c++ to use the object in QML?
You are thrashing around looking for a solution. What is the problem?
-
@ChrisW67 said in Video play using gstreamer / directshow /vlc:
rashing around looking for a solu
Thank you for this answer! Let me me talk about my application:- it's cross platform application to work on windows as the linux( raspberry pi ) .
- i need to show the user what's the rpi is going to display with my widgets ( video streaming , pause , play...) So this option is possible on his windows PC . (the reason why i needed the same behavior)
PS: the gstreamer can't give me a smooth display with high resolution videos .
-
@SGaist we are talking about using ffmpeg when using mediaplayr in qml right ?
Do you think that they solved the problem when i diplay two videos in the same time , i get the error like buffer occupied and can't set audio !
In addition, gstreamer is freezing sometimes the video and i don't have a smooth display.. is it a known problem ? -
@The-Qt-Mayssa both widgets and qml are concerned.
For the rest I don't know. You need to do some testing since you have the various systems at hand.