Unsolved How to play video on QT creator receive from UDP socket.?
-
How to play video on QT creator receive from socket.?
capture the video camera and stream send it to target using udp sockets and then other side receive it and play it using qmediaplayer but i can't find any doc or tutorial that explains. -
Hi,
Qt Creator has nothing to do with that. It's just an IDE.
Your question is too vague. What part are you implementing ?
What are you using Qt for ? -
@SGaist i want to receive the video file send from another PC via UDP socket on QTudp and play with the help of Qtgstreamer
PC(send .mp4 file)---UDP socket--->Qt creator (receive .mp4 file)---->play .mp4 file using gstreamer
-
@Pooja-Bhusare said in How to play video on QT creator receive from UDP socket.?:
PC(send .mp4 file)---UDP socket--->Qt creator (receive .mp4 file)---->play .mp4 file using gstreamer
that's NOT possible.
Qt Creator is an IDE like MS Visual Studio ==> https://en.wikipedia.org/wiki/Integrated_development_environment -
@Pooja-Bhusare said in How to play video on QT creator receive from UDP socket.?:
Qt creator (receive .mp4 file)
Do you mean a Qt application which you have written here, not Creator?
-
First of all: QtGstreamer has been unmaintained for quite a long time now and was provided by the GStreamer folks. You should not start a new project using it. However, GStreamer itself has a plugin for Qt.
With recent versions of Qt you can use QMediaPlayer with custom GStreamer pipeline.
Finally, there's no need to reinvent the wheel in this case, use GStreamer to stream your file, that will be way simpler than doing the all the chain yourself to use QUdpSocket.
-
@JonB Yes .
I am very new in Qt .
is it possible to receive video frames from UDP socket and display in app which will be created by Qt creator.?
or
can we establish full duplex communication between pc(as client) and Qt app(using Qt creator) (as a server)?
so the pc can send message (string) or .png file and that message would be display on qtapp ?please anyone help me
-
@Pooja-Bhusare said in How to play video on QT creator receive from UDP socket.?:
which will be created by Qt creator.?
Sorry to borrow you with this, but Qt Creator is not mandatory to create an application based on Qt.
Qt Creator will only helps you for:- editing code,
- build your application
- run/debug your application.
This could all be done without Qt Creator.
So Qt Creator is not a factor for your needs, please accept this.And as @SGaist wrote before, you can
- use
QUdpSocket
to receive/send UDP Datagram - use GStreamer to stream your video on network. If you are using Windows, take a look at this post ==> https://forum.qt.io/topic/112384/building-with-gstreamer-on-windows
-
@KroMignon
how to stream a video frame by frame from system1 to a qt-application on system2 and display it in real time.
and i am doing these stuff on linux system. -
As already written: Use GStreamer. It provides all the tools for both generating the stream in an adequate format, so server side, as well as read said stream, so client side.
And, again, as already written: use QMediaPlayer::setMedia with a custom pipeline if needed to show the video on your application.