I want to stream video with UDP using VLC on computer and play the video on my iMX6. I wrote a Qt app for this. The video is playing, but only a small part of the video is visible on the screen from the top left instead of the whole video on the panel.
About the correct usage of gst-launch, here is an article in our Developer page that you can refer to: GStreamer
And furthermore, here is a sample application for a gstreamer sample app on Qt, for you to cross-verify with:
As you mentioned you use the Boot2Qt, i would like to mention that If it is the commercial version of Qt, Qt provides support on such questions, in case teh problem lies with the Qt side.
The first link you send is an example from the QtGStreamer library. However, as I mentioned in the first post, I tried it with QtMultimedia in my own Qt application and saw GStreamer output in the debug. QtMultimedia is already working with GStreamer. In fact, a special GStreamer pipeline command can be specified in the source section on the documentation page.
I pass a command like the following as a pipeline in Qt app. However, the result is still the same.
"gst-pipeline: playbin uri=udp://x.x.x.x:1234"
Actually I think the problem is directly related to GStreamer. There is no problem on the Qt side. Video is not detected in correct size and the output shows that the video resolution is different.
When I try this application on an Ubuntu PC, GStreamer correctly recognizes the video frame size and the video is displayed properly. It also gives the correct output when I run the GStreamer command directly.
The second link is the same as the link on this topic. So I could not understand. I think you sent the wrong link.
I would also like to mention that I can copy the video directly to the board and open it correctly with Qt app and GStreamer via the file path.
Thank you for your comment. In that case, you are sure that the issue lies with the Gstreamer, I would like to ask you if you have tried the “videoscale” feature of the GStreamer.