Open MathieuDuponchelle opened 6 years ago
Difficult to tell, you'll want to try and simplify the pipeline until it does work, that should tell you what the problem is.
Thank for your reply. I will try minimize the pipeline and see what happened. I have one more question want to ask. Currently, I want to create a custom plugin do similar task like this, where the plugin can change output caps. I go first with this example first, but in do_transform
function, when I check outbuffer
size, it's was same as inbuffer
, look like do_fixate_caps
has no effect. Can you take a look at this example and give me an advice. I leaved an issue for the author but he had been inactive for a long time and now I'm stucking at this
@DoriHp I don't know if that is what you'll want to hear, but I would recommend reading up on GStreamer tutorials and taking the time to experiment so you can get your own understanding, writing elements requires some knowledge of the framework :)
Is the complete source for this article available somewhere?
I am curious how the do_generate_output
call looks as I would like to take a similar approach elsewhere. I did not know about this and had to work around not knowing with how I implemented my do_transform
method.
I think the full source would be a very helpful reference.
@LrWm3 yes, you can find the latest version @ https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py?ref_type=heads
I didn't read your original article very carefully, I see now the full source is available!
I actually think you meant to link this though: https://github.com/GStreamer/gst-python/blob/master/examples/plugins/python/audioplot.py
Thanks again for writing this wonderful article and helping me better understand how gstreamer works :heart:
oh I thought this was part one my bad :)
I tried a pipeline from you:
with
uridecodebin
was replaced my absolute path mp4 file. But I got his error:What did I do wrong or something happened with my gst-python installation?