Skip to content

fbo rendering #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e1f8f68
use fbo rendering
hack-s May 2, 2025
66e1dcb
integrate pts
hack-s May 11, 2025
298d64a
update docs
hack-s May 11, 2025
b3e81e7
format
hack-s May 11, 2025
678192d
cleanup
hack-s May 11, 2025
9a288b9
expose pts from audio visualizer plugin
hack-s May 20, 2025
1669200
fix warnings
hack-s May 20, 2025
a394672
keep using glTexImage2D
hack-s May 20, 2025
81ff58f
cleanup
hack-s May 22, 2025
5f45df8
cleanup
hack-s May 22, 2025
b838176
remove req_spf calculation
hack-s May 22, 2025
a06c1b4
docs
hack-s May 23, 2025
156e97b
fix timing issues
hack-s May 28, 2025
a33e7ae
add config PROP_PTS_SYNC to configure timestamp
hack-s May 29, 2025
94a970c
restore relative frame time calc
hack-s May 29, 2025
fde0fdd
clang-format
hack-s May 29, 2025
ed4ffc8
naming, additional docs
hack-s May 30, 2025
aaaaac3
fix typo
hack-s May 30, 2025
881150b
fix typo
hack-s May 30, 2025
1df4815
fix typo, restore debug logs
hack-s May 30, 2025
35ce12f
use gst vtable for gl functions
hack-s Jun 2, 2025
3c5c8d6
remove duplicate assignment
hack-s Jun 2, 2025
1bbe36a
clang format
hack-s Jun 2, 2025
fb5b708
docs fix origin ref
hack-s Jun 2, 2025
48ded9b
docs fix
hack-s Jun 4, 2025
39346eb
reduce qos frame skip time to just continue
hack-s Jun 4, 2025
95f4d85
reduce qos frame skip time docs
hack-s Jun 4, 2025
3280bec
clang format
hack-s Jun 4, 2025
720bc9a
backport bugfixes from gst and additional fixes
hack-s Jun 5, 2025
a41f218
backport bugfixes from gst
hack-s Jun 5, 2025
aa67627
fix log
hack-s Jun 5, 2025
80e1078
clang format
hack-s Jun 7, 2025
d51c980
install timestamp offset property
hack-s Jun 14, 2025
e48a696
add projectm plugin locking
hack-s Jun 16, 2025
88e6c57
additional locking
hack-s Jun 16, 2025
36dd877
dynamic qos event calc
hack-s Jun 16, 2025
a4144a1
reformat
hack-s Jun 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ add_library(gstprojectm SHARED
src/projectm.c
src/gstglbaseaudiovisualizer.h
src/gstglbaseaudiovisualizer.c
src/gstpmaudiovisualizer.h
src/gstpmaudiovisualizer.c
)

target_include_directories(gstprojectm
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The documentation has been organized into distinct files, each dedicated to a sp
Once the plugin has been installed, you can use it something like this:

```shell
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
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=true
```

Or to convert an audio file to video:
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ prompt_install() {
# Print example command
echo
echo "Done! Here's an example command:"
echo "gst-launch-1.0 audiotestsrc ! queue ! audioconvert ! projectm ! "video/x-raw,width=512,height=512,framerate=60/1" ! videoconvert ! $VIDEO_SINK sync=false"
echo "gst-launch-1.0 audiotestsrc ! queue ! audioconvert ! projectm ! "video/x-raw,width=512,height=512,framerate=60/1" ! videoconvert ! $VIDEO_SINK sync=true"
else
echo
echo "Done!"
Expand Down
2 changes: 1 addition & 1 deletion src/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const gchar *get_video_src_cap(unsigned int type) {

switch (type) {
case 0:
format = GST_VIDEO_CAPS_MAKE("video/x-raw, format = (string) { ABGR }, "
format = GST_VIDEO_CAPS_MAKE("video/x-raw, format = (string) { RGBA }, "
"framerate=(fraction)[0/1,MAX]");
break;
default:
Expand Down
1 change: 1 addition & 0 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ G_BEGIN_DECLS
#define DEFAULT_PRESET_LOCKED FALSE
#define DEFAULT_ENABLE_PLAYLIST TRUE
#define DEFAULT_SHUFFLE_PRESETS TRUE // depends on ENABLE_PLAYLIST
#define DEFAULT_PTS_SYNC TRUE

G_END_DECLS

Expand Down
3 changes: 2 additions & 1 deletion src/enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ enum {
PROP_EASTER_EGG,
PROP_PRESET_LOCKED,
PROP_SHUFFLE_PRESETS,
PROP_ENABLE_PLAYLIST
PROP_ENABLE_PLAYLIST,
PROP_PTS_SYNC
};

G_END_DECLS
Expand Down
Loading
Loading