Rtsp stream(s) to gtk4 grid

idk, if it would matter for you but i have my media_file1.play() right after the setPaintable and before the picture gets attached to the window.

@ebassi do you know where gtk4 ended up in regards to this?

is there a way/what is the method for directly connecting a playbin pipeline to a widget without cpu copy? It doesn’t look like there’s a way to feed my rtsp ipcam stream to a paintable like newMediaFileForPipeline(), for instance. Or maybe a more manual way that currently works for gtk4? (preferably with no cpu copy)

thanks

Zero copy OpenGL rendering should be supported with the gstreamer backend since this commit: https://gitlab.gnome.org/GNOME/gtk/-/commit/7901ab857b689b8777cb8f8aeb431951c9554066

cool, but how do you get a ipcam rtsp stream into the MediaFile? gio.newGFileForUri seems to be picky about the rtsp stream in some way.

I’m not sure, I think this could be a GTK bug…

1 Like

this one looks scary for cpu usage: https://gitlab.gnome.org/GNOME/gtk/-/issues/4184

possibly related to the gio.newGFileForUri pickyness question: https://gitlab.gnome.org/GNOME/gtk/-/issues/3902

That first one is very odd to me since all gtk_video_new_for_filename does is call gtk_video_set_media_stream internally.

I reported the issue, while i work on the rest of the application.

https://gitlab.gnome.org/GNOME/gtk/-/issues/4367

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.