-
Notifications
You must be signed in to change notification settings - Fork 64
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
Port all GStreamer tutorials #32
Comments
Start of this can be found here: https://github.com/sdroege/gstreamer-rs/tree/master/tutorials Write here if someone wants to work on porting a specific tutorial |
I can try porting basic-tutorial-2. |
That would be great, thanks! Let me know if you have questions |
basic-tutorial-2 is also done. Someone wants to do basic-tutorial-3? There's code in the examples that is almost like this already (decodebin.rs) |
Hey, I can try to write the third one. I'll use previous examples as a base. |
Thanks, that would be great :) |
Tutorial 3 is available here now: #38 |
I also tried basic-tutorial-4. The query part works, but it is not clear how to write GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT in rust? |
@lovebug356 This should work |
Fyi, I'm working on tutorial-6, but I'm struggling a bit with adding bindings for StaticPadTemplate (gir does not build on my system due to a problem with git2-rs). |
Figured I would comment on this issue rather than open a new one. Just looking into gstreamer, and have been wanting to a reason to learn a bit more about rust, so I figured I would check this project out. I cloned the repo and ran
Can anyone point me in the right direction? Is there a "Getting Started" for these tutorials somewhere? Thanks for any guidance. |
Ok.. so did some googling and figured out I had an outdated version of rust. Got everything to build but running
|
I can add it tomorrow if that helps, should be a matter of 5 minutes and boring :) You probably don't want to fight with libgit2 just for that :) |
@raytiley A backtrace with line numbers would be useful (and for the other thing, you need Rust 1.20 at least because of latest bitflags). My guess is that you're missing a GStreamer plugin or your GStreamer installation is otherwise incomplete/broken (the tutorial has no error handling at all to first focus on the actual GStreamer bits). |
@sdroege I'll look into how to generate a more useful backtrace and confirm my gstreamer install. I'm on a mac and just used |
@raytiley You also need at least gst-plugins-base and gst-plugins-good installed. I don't know if homebrew is splitting those up into separate plugins or have them as single packages with all the plugins. |
@sdroege Awesome! Thanks for helping out. I found the the other homebrew formulas.. (Also needed gst-libav for the codecs). |
@lovebug356 The bindings are there now, hopefully all that is needed 9206ddb . Had to be written manually unfortunately due to those types being a bit special (no constructor, no copy/ref/free/unref, etc). |
I wrote wrote some code before sireliah@344f4ef but I didn't have much time to finish it. Then I found you already have tutorial-3 ready here: https://github.com/sdroege/gstreamer-rs/blob/master/tutorials/src/bin/basic-tutorial-3.rs. Well, I guess that there is nothing more to do with third one? |
@sireliah If you have any suggestions for improving the existing tutorial, please submit a PR. I'm sure there are ways for making it nicer still :) Thanks for your effort in any case Also it would be good if anybody working on another tutorial would write a short comment here so that people don't work on the same tutorial and duplicate work. |
This is now tracked at https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/32 |
Code can be found here: https://cgit.freedesktop.org/gstreamer/gst-docs/tree/examples/tutorials
Text with explanations here: https://gstreamer.freedesktop.org/documentation/tutorials/index.html
Would be nice to port these to Rust
The text was updated successfully, but these errors were encountered: