-
Notifications
You must be signed in to change notification settings - Fork 32
libvisual-plugins: Upgrade to GStreamer 1.x (fixes #95) #133
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
Conversation
1c6287e to
103b3d2
Compare
|
@hartwork, what remains to be done for the version upgrade? |
@kaixiong I'm not sure. I don't have a way of testing the gstreamer input plugin yet and also I haven't looked into gstreamer much yet, neither from a user nor from an API point of view. It's not trivial, so finishing this pull request is not within reach of a few days for me. Happy to discuss options, maybe off GitHub. |
8cdfa8a to
f186701
Compare
Joined forces with Chong Kai Xiong (@kaixiong) here, thank you!
.. and limit logging to types end-of-stream and errors. As suggested by Kai Xiong.
f186701 to
183a3b5
Compare
|
@kaixiong ready for review now. What I changed in the meantime, as discussed:
|
kaixiong
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are nearly there!
| // - element "filesrc" reads a video file from disk | ||
| // - element "decodebin" detects the video file's encoding | ||
| // and serves raw pixel data | ||
| // - element "videoconvert" does colorspace conversion from given to wanted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be more accurate to say videoconvert performs video format conversion. After all, it could convert RGB to BGR - the colour channel order changes but the colourspace remains RGB.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was inspired by gst-inspect-1.0 output where it says "Converts video from one colorspace to another". You have a point though, pushed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaixiong the object hierachy slighty differs over here and also the upper limit to width and height:
# gst-inspect-1.0 videoconvert
Factory Details:
Rank none (0)
Long-name Colorspace converter
Klass Filter/Converter/Video
Description Converts video from one colorspace to another
Author GStreamer maintainers <[email protected]>
Plugin Details:
Name videoconvert
Description Colorspace conversion
Filename /usr/lib64/gstreamer-1.0/libgstvideoconvert.so
Version 1.20.5
License LGPL
Source module gst-plugins-base
Source release date 2022-12-19
Binary package Gentoo GStreamer ebuild
Origin URL https://www.gentoo.org
GObject
+----GInitiallyUnowned
+----GstObject
+----GstElement
+----GstBaseTransform
+----GstVideoFilter
+----GstVideoConvert
[..]…ndoff .. to be less misleading.
.. with launch string in order to allow better debugging to users.
.. because GStreamer 1.0 requires glib >=2.32: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/1.0/configure.ac#L568 Idea by Chong Kai Xiong (@kaixiong), thank you!
183a3b5 to
b253f44
Compare
kaixiong
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay this is it :)
|
@kaixiong thanks for the review! 👍 |
Fixes #95