Hi everyone!
Currently, I’m developing a video player for concerts (shows in general) written in rust and I’m planning a widget that lists all the clips for the current show. For this I want to create a thumbnail for every video.
Do you have any suggestions how could I implement this?
A better place to ask this would probably be the GStreamer discourse.
One way of doing this would be to create a playbin3
pipeline with your file, disable audio on it, set at appsink
as video sink on it. Then start it, when you receive the async-done
message from it, seek to some random position in the middle of the file, collect the gst::Sample
after the seek from the appsink
and pass it to gst_video::convert_sample()
(or its async variant) to convert it to an image/jpeg
.
Thanks, it helped a lot!
One more question and I’m going to Gstreamer discourse: after I converted the sample how can I save as a file?
For example with std::fs::File
Okay. Thanks for everything.
Sebastian Dröge via GNOME Discourse <noreply@gnome.org> ezt írta (időpont: 2025. jan. 5., Vas 14:54):
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.