Skip to content

Commit 72edd89

Browse files
committed
readme
1 parent 332dbc8 commit 72edd89

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<br />
4040

4141
<!-- GETTING STARTED -->
42+
4243
## Getting Started
4344

4445
The documentation has been organized into distinct files, each dedicated to a specific platform. Within each file, you'll find detailed instructions covering the setup of prerequisites, the building process, installation steps, and guidance on utilizing the plugin on the respective platform.
@@ -47,9 +48,35 @@ The documentation has been organized into distinct files, each dedicated to a sp
4748
- **[OSX](docs/OSX.md)**
4849
- **[Windows](docs/WINDOWS.md)**
4950

51+
Once the plugin has been installed, you can use it something like this:
52+
53+
```shell
54+
gst-launch pipewiresrc ! queue ! audioconvert ! projectm preset=/usr/local/share/projectM/presets preset-duration=5 ! video/x-raw,width=2048,height=1440,framerate=60/1 ! videoconvert ! xvimagesink sync=false
55+
```
56+
57+
Or to convert an audio file to video:
58+
59+
```shell
60+
filesrc location=input.mp3 ! decodebin name=dec \
61+
decodebin ! tee name=t \
62+
t. ! queue ! audioconvert ! audioresample ! \
63+
capsfilter caps="audio/x-raw, format=F32LE, channels=2, rate=44100" ! avenc_aac bitrate=256000 ! queue ! mux. \
64+
t. ! queue ! audioconvert ! projectm preset=/usr/local/share/projectM/presets preset-duration=3 mesh-size=1024,576 ! \
65+
identity sync=false ! videoconvert ! videorate ! video/x-raw,framerate=60/1,width=3840,height=2160 ! \
66+
x264enc bitrate=35000 key-int-max=300 speed-preset=veryslow ! video/x-h264,stream-format=avc,alignment=au ! queue ! mux. \
67+
mp4mux name=mux ! filesink location=render.mp4;
68+
```
69+
70+
Available options
71+
72+
```shell
73+
gst-inspect projectm
74+
```
75+
5076
<p align="right">(<a href="#readme-top">back to top</a>)</p>
5177

5278
<!-- CONTRIBUTING -->
79+
5380
## Contributing
5481

5582
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
@@ -66,20 +93,23 @@ Don't forget to give the project a star! Thanks again!
6693
<p align="right">(<a href="#readme-top">back to top</a>)</p>
6794

6895
<!-- LICENSE -->
96+
6997
## License
7098

7199
Distributed under the LGPL-2.1 license. See `LICENSE` for more information.
72100

73101
<p align="right">(<a href="#readme-top">back to top</a>)</p>
74102

75103
<!-- SUPPORT -->
104+
76105
## Support
77106

78107
[![Discord][discord-shield]][discord-url]
79108

80109
<p align="right">(<a href="#readme-top">back to top</a>)</p>
81110

82111
<!-- CONTACT -->
112+
83113
## Contact
84114

85115
Blaquewithaq (Discord: SoFloppy#1289) - [@anomievision](https://twitter.com/anomievision) - anomievision@gmail.com
@@ -89,6 +119,7 @@ Blaquewithaq (Discord: SoFloppy#1289) - [@anomievision](https://twitter.com/anom
89119
<!----------------------------------------------------------------------->
90120
<!-- MARKDOWN LINKS & IMAGES -->
91121
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
122+
92123
[contributors-shield]: https://img.shields.io/github/contributors/projectM-visualizer/gst-projectm.svg?style=for-the-badge
93124
[contributors-url]: https://github.com/projectM-visualizer/gst-projectm/graphs/contributors
94125
[forks-shield]: https://img.shields.io/github/forks/projectM-visualizer/gst-projectm.svg?style=for-the-badge
@@ -104,4 +135,4 @@ Blaquewithaq (Discord: SoFloppy#1289) - [@anomievision](https://twitter.com/anom
104135
[crates-dl-shield]: https://img.shields.io/crates/d/gst-projectm?style=for-the-badge
105136
[crates-dl-url]: https://crates.io/crates/gst-projectm
106137
[discord-shield]: https://img.shields.io/discord/737206408482914387?style=for-the-badge
107-
[discord-url]: https://discord.gg/7fQXN43n9W
138+
[discord-url]: https://discord.gg/7fQXN43n9W

0 commit comments

Comments
 (0)