Sameer
Sameer
SMSoftware Mansion
Created by Sameer on 1/5/2025 in #membrane-help
Logs are overrun with `Sending stream format through pad` messages. Am I doing something wrong ?
I have a simple pipeline for processing text. I am using flow_control as auto for all elements in the pipeline besides the source which has flow_control set to push. All elements (with the exception of the source have 1000s of messages of type
app-1 | [debug] <0.3808.0>/:some_name Sending stream format through pad :output
app-1 | Stream format: %Membrane.RemoteStream{content_format: nil, type: :bytestream}
app-1 | [debug] <0.3808.0>/:some_name Sending stream format through pad :output
app-1 | Stream format: %Membrane.RemoteStream{content_format: nil, type: :bytestream}
While source only has 1. This is happening when no actual data is flowing through the pipeline. Looking for guidance on, - is this expected ? Is handle_action being called continuously without any data being sent (ref) . Or, am I doing something woefully wrong ? - any way i can reduce log output for it ? Other useful log debug messages get washed out because this is producing 100x more volume
9 replies
SMSoftware Mansion
Created by Sameer on 1/5/2025 in #membrane-help
How to send control events upstream/downstream ?
Hi 👋 I am new to elixir and even newer to Membrane 🙂 I am trying to determine how to send events elements in the pipeline, which one or more other elements (upstream or downstream) could handle. I came across https://hexdocs.pm/membrane_core/Membrane.Event.html , which links to https://hexdocs.pm/membrane_core/Membrane.Element.Action.html#t:event/0. Am I correct in understanding that control events also should be sent via pads (maybe creating custom pads that are not input output but something like signal or control ? If there is a sample/demo that showcases what the correct arch approach is, I'd love to be pointed in the right direction. Thanks
7 replies