https://github.com/ctsiaousis/gstreamerqt-demo
A UDP client for two HD streams over RTP
https://github.com/ctsiaousis/gstreamerqt-demo
gstreamer gstreamer-framework h264 msvc2019 qt5 rtp-streaming
Last synced: over 1 year ago
JSON representation
A UDP client for two HD streams over RTP
- Host: GitHub
- URL: https://github.com/ctsiaousis/gstreamerqt-demo
- Owner: ctsiaousis
- License: gpl-3.0
- Created: 2021-11-03T17:00:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-05T11:03:18.000Z (over 4 years ago)
- Last Synced: 2025-04-13T06:14:50.423Z (over 1 year ago)
- Topics: gstreamer, gstreamer-framework, h264, msvc2019, qt5, rtp-streaming
- Language: C++
- Homepage:
- Size: 38.1 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GstTest
This project demonstrates the possibilities and modularity of GStreamer with QT integration.
It is a windows build with Qt 5.15.2 and MSVC2019 64bit compiler. The GST library is version 1.18.5.
## how to test
#### Stream with `gst-launch videotestsrc`
- Open a powershell window and write
```
gst-launch-1.0 videotestsrc ! video/x-raw,width=3040,height=2048 ! videoconvert ! x264enc ! rtph264pay config-interval=1 ! udpsink host=127.0.0.1 port=5000
```
- Open a second powershell window and write the same command with `port = 5001`, you can also provide a different video i.e. `... videotestsrc pattern=ball ! ...`
- You can also try streaming from any network device by using the **broadcast ip** which is usually (if subnet mask is 255.255.255.0) `*.*.*.255`.
*Note:*
This generates CPU accelerated `videotestsrc`. If you want/need GPU acceleration for the h264 encoding use either: `omxh264enc` or `d3d11h264dec`, depending on availability and your hardware.
#### Stream with `GstTestServer/GstTestServer.pro`
Build the server project and run it.
___
#### Build the `GstTest.pro`
and test your configuration. Once you are happy with it, you can stream different types of media (i.e. files, webstreams, v4l devices and more).