repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-rtmp/src/rtmp_server/actor/tests/rtmp_client.rs | mmids-rtmp/src/rtmp_server/actor/tests/rtmp_client.rs | use bytes::Bytes;
use mmids_core::net::tcp::{
OutboundPacket, RequestFailureReason, TcpSocketRequest, TcpSocketResponse,
};
use mmids_core::net::ConnectionId;
use mmids_core::test_utils;
use rml_rtmp::handshake::{Handshake, HandshakeProcessResult, PeerType};
use rml_rtmp::sessions::{
ClientSession, ClientSessio... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-rtmp/src/rtmp_server/actor/tests/mod.rs | mmids-rtmp/src/rtmp_server/actor/tests/mod.rs | use crate::rtmp_server::actor::tests::rtmp_client::RtmpTestClient;
use crate::rtmp_server::actor::tests::test_context::TestContextBuilder;
use crate::rtmp_server::{
start_rtmp_server_endpoint, IpRestriction, RtmpEndpointMediaData, RtmpEndpointMediaMessage,
RtmpEndpointPublisherMessage, RtmpEndpointRequest, Rtmp... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | true |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-rtmp/src/workflow_steps/external_stream_handler.rs | mmids-rtmp/src/workflow_steps/external_stream_handler.rs | use downcast_rs::{impl_downcast, Downcast};
use mmids_core::workflows::steps::futures_channel::WorkflowStepFuturesChannel;
use mmids_core::workflows::steps::StepFutureResult;
use mmids_core::StreamId;
/// Trait used to handle different external resources for a single stream
pub trait ExternalStreamHandler {
fn pre... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-rtmp/src/workflow_steps/external_stream_reader.rs | mmids-rtmp/src/workflow_steps/external_stream_reader.rs | use super::external_stream_handler::{ExternalStreamHandler, StreamHandlerFutureWrapper};
use crate::rtmp_server::{
IpRestriction, RegistrationType, RtmpEndpointMediaData, RtmpEndpointMediaMessage,
RtmpEndpointRequest, RtmpEndpointWatcherNotification, StreamKeyRegistration,
};
use crate::workflow_steps::external... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | true |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-rtmp/src/workflow_steps/mod.rs | mmids-rtmp/src/workflow_steps/mod.rs | //! RTMP related mmids workflow steps
pub mod external_stream_handler;
pub mod external_stream_reader;
pub mod rtmp_receive;
pub mod rtmp_watch;
| rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-rtmp/src/workflow_steps/rtmp_watch/tests.rs | mmids-rtmp/src/workflow_steps/rtmp_watch/tests.rs | use super::*;
use crate::rtmp_server::{
RtmpEndpointMediaData, RtmpEndpointMediaMessage, RtmpEndpointWatcherNotification,
};
use anyhow::Result;
use bytes::{Bytes, BytesMut};
use mmids_core::net::ConnectionId;
use mmids_core::test_utils::expect_mpsc_response;
use mmids_core::workflows::definitions::WorkflowStepType... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-rtmp/src/workflow_steps/rtmp_watch/mod.rs | mmids-rtmp/src/workflow_steps/rtmp_watch/mod.rs | //! The RTMP watch step registers with the RTMP server endpoint to allow for RTMP clients to connect
//! and watch media streams based on the specified port, application name, and stream key
//! combinations. When the workflow step is passed in media notifications it passes them to
//! the RTMP endpoint for distributi... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-rtmp/src/workflow_steps/rtmp_receive/tests.rs | mmids-rtmp/src/workflow_steps/rtmp_receive/tests.rs | use super::*;
use anyhow::Result;
use bytes::Bytes;
use mmids_core::net::ConnectionId;
use mmids_core::workflows::definitions::WorkflowStepType;
use mmids_core::workflows::metadata::common_metadata::{
get_is_keyframe_metadata_key, get_pts_offset_metadata_key,
};
use mmids_core::workflows::metadata::MetadataKeyMap;
... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-rtmp/src/workflow_steps/rtmp_receive/mod.rs | mmids-rtmp/src/workflow_steps/rtmp_receive/mod.rs | //! The RTMP Receive step registers with the RTMP server endpoint to allow publishers to connect with
//! the specified port, application name, and stream key combination. Any media packets that
//! RTMP publishers send in will be sent to the next steps.
//!
//! All media packets that come in from previous workflow st... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/lib.rs | mmids-gstreamer/src/lib.rs | //! This crate contains all components for mmids applications to interact with with gstreamer
//! pipelines.
#[macro_use]
extern crate lazy_static;
pub mod encoders;
pub mod endpoints;
pub mod steps;
pub mod utils;
use gstreamer::glib;
use gstreamer::DebugLevel;
use tracing::{error, info, warn};
lazy_static! {
... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/utils.rs | mmids-gstreamer/src/utils.rs | //! Common utility functions that are useful for interacting with gstreamer. These are mostly
//! meant for use by code creating custom encoders.
use anyhow::{anyhow, Context, Result};
use bytes::Bytes;
use gstreamer::prelude::*;
use gstreamer::{Buffer, Caps, ClockTime, Element, ElementFactory};
use gstreamer_app::Ap... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/endpoints/mod.rs | mmids-gstreamer/src/endpoints/mod.rs | //! Endpoints that interact with gstreamer.
pub mod gst_transcoder;
| rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/endpoints/gst_transcoder/transcoding_manager.rs | mmids-gstreamer/src/endpoints/gst_transcoder/transcoding_manager.rs | use crate::encoders::{AudioEncoder, VideoEncoder};
use futures::StreamExt;
use gstreamer::bus::BusStream;
use gstreamer::prelude::*;
use gstreamer::{MessageView, Pipeline, State};
use mmids_core::actor_utils::{notify_on_unbounded_closed, notify_on_unbounded_recv};
use mmids_core::workflows::metadata::{MetadataKey, Meta... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/endpoints/gst_transcoder/mod.rs | mmids-gstreamer/src/endpoints/gst_transcoder/mod.rs | mod transcoding_manager;
use crate::encoders::EncoderFactory;
use crate::endpoints::gst_transcoder::transcoding_manager::{
start_transcode_manager, TranscodeManagerRequest, TranscoderParams,
};
use crate::GSTREAMER_INIT_RESULT;
use gstreamer::{glib, Pipeline};
use mmids_core::actor_utils::{notify_on_unbounded_clos... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/encoders/video_copy.rs | mmids-gstreamer/src/encoders/video_copy.rs | use crate::encoders::{SampleResult, VideoEncoder, VideoEncoderGenerator};
use crate::utils::create_gst_element;
use anyhow::{anyhow, Context, Result};
use bytes::{Bytes, BytesMut};
use gstreamer::prelude::*;
use gstreamer::{Element, FlowError, FlowSuccess, Pipeline};
use gstreamer_app::{AppSink, AppSinkCallbacks, AppSr... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/encoders/audio_copy.rs | mmids-gstreamer/src/encoders/audio_copy.rs | use crate::encoders::{AudioEncoder, AudioEncoderGenerator, SampleResult};
use crate::utils::{create_gst_element, set_gst_buffer};
use anyhow::{anyhow, Context, Result};
use bytes::{Bytes, BytesMut};
use gstreamer::prelude::*;
use gstreamer::{Element, FlowError, FlowSuccess, Pipeline};
use gstreamer_app::{AppSink, AppSi... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/encoders/video_drop.rs | mmids-gstreamer/src/encoders/video_drop.rs | use crate::encoders::{VideoEncoder, VideoEncoderGenerator};
use bytes::Bytes;
use gstreamer::Pipeline;
use mmids_core::workflows::MediaNotificationContent;
use mmids_core::VideoTimestamp;
use std::collections::HashMap;
use std::sync::Arc;
use tokio::sync::mpsc::UnboundedSender;
/// Creates a video encoder that drops a... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/encoders/audio_avenc_aac.rs | mmids-gstreamer/src/encoders/audio_avenc_aac.rs | use crate::encoders::{AudioEncoder, AudioEncoderGenerator, SampleResult};
use crate::utils::{
create_gst_element, get_codec_data_from_element, set_gst_buffer,
set_source_audio_sequence_header,
};
use anyhow::{anyhow, Context, Result};
use bytes::{Bytes, BytesMut};
use gstreamer::prelude::*;
use gstreamer::{Elem... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/encoders/audio_drop.rs | mmids-gstreamer/src/encoders/audio_drop.rs | use crate::encoders::{AudioEncoder, AudioEncoderGenerator};
use anyhow::Result;
use bytes::Bytes;
use gstreamer::Pipeline;
use mmids_core::workflows::MediaNotificationContent;
use std::collections::HashMap;
use std::sync::Arc;
use std::time::Duration;
use tokio::sync::mpsc::UnboundedSender;
/// Creates an encoder that... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/encoders/mod.rs | mmids-gstreamer/src/encoders/mod.rs | //! An encoder represents a part of a gstreamer pipeline that takes video or audio data, processes
//! it, and then pushes the results out into a tokio channel.
mod audio_avenc_aac;
mod audio_copy;
mod audio_drop;
mod video_copy;
mod video_drop;
mod video_x264;
use anyhow::{Context, Result};
use bytes::Bytes;
use gst... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/encoders/video_x264.rs | mmids-gstreamer/src/encoders/video_x264.rs | use crate::encoders::{SampleResult, VideoEncoder, VideoEncoderGenerator};
use crate::utils::{create_gst_element, get_codec_data_from_element};
use anyhow::{anyhow, Context, Result};
use bytes::{Bytes, BytesMut};
use gstreamer::prelude::*;
use gstreamer::{Caps, Element, FlowError, FlowSuccess, Fraction, Pipeline};
use g... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/steps/mod.rs | mmids-gstreamer/src/steps/mod.rs | //! Workflow steps dealing with gstreamer based endpoints
pub mod basic_transcoder;
| rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-gstreamer/src/steps/basic_transcoder/mod.rs | mmids-gstreamer/src/steps/basic_transcoder/mod.rs | //! The basic transcoding workflow step that allows transcoding audio and video based on passed
//! in parameters. This step expects at least an `audio` and `video` parameter to be specified, each
//! with the name of the respective audio and video encoder to use.
//!
//! Each encoder may have encoder specific paramete... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-http-api/src/lib.rs | mmids-http-api/src/lib.rs | //! This crate provides ready to go mechanisms for interacting with mmids via an HTTP based
//! interface. This allows operators to view details of workflows, start workflows, stop workflows,
//! and also provides capabilities for custom mmids applications to provide their own HTTP
//! capabilities.
//!
//! Routes are ... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-http-api/src/routing.rs | mmids-http-api/src/routing.rs | //! Provides mechanisms to define routes for the Mmids HTTP apis, and what code should be executed
//! for each route.
use async_trait::async_trait;
use hyper::{Body, Method, Request, Response};
use std::collections::HashMap;
/// Defines how a single fragment of the URL path should be read as. Each part is the whole... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-http-api/src/handlers/list_workflows.rs | mmids-http-api/src/handlers/list_workflows.rs | //! Contains the handler for getting a list of workflows
use crate::routing::RouteHandler;
use async_trait::async_trait;
use hyper::header::HeaderValue;
use hyper::{Body, Error, Request, Response, StatusCode};
use mmids_core::workflows::manager::{WorkflowManagerRequest, WorkflowManagerRequestOperation};
use serde::Ser... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-http-api/src/handlers/stop_workflow.rs | mmids-http-api/src/handlers/stop_workflow.rs | //! Handler that allows a workflow to be stopped
use crate::routing::RouteHandler;
use async_trait::async_trait;
use hyper::{Body, Error, Request, Response, StatusCode};
use mmids_core::workflows::manager::{WorkflowManagerRequest, WorkflowManagerRequestOperation};
use std::collections::HashMap;
use std::sync::Arc;
use... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-http-api/src/handlers/mod.rs | mmids-http-api/src/handlers/mod.rs | //! Contains pre-defined implementations of the `RouteHandler` traits for various functionality
pub mod get_workflow_details;
pub mod list_workflows;
pub mod start_workflow;
pub mod stop_workflow;
| rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-http-api/src/handlers/start_workflow.rs | mmids-http-api/src/handlers/start_workflow.rs | //! Contains the handler that creates and updates workflows
use crate::routing::RouteHandler;
use async_trait::async_trait;
use bytes::Bytes;
use hyper::http::HeaderValue;
use hyper::{Body, Error, Request, Response, StatusCode};
use mmids_core::workflows::definitions::WorkflowDefinition;
use mmids_core::workflows::man... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-http-api/src/handlers/get_workflow_details.rs | mmids-http-api/src/handlers/get_workflow_details.rs | //! Contains the handler for getting details about a running workflow
use crate::routing::RouteHandler;
use async_trait::async_trait;
use hyper::http::HeaderValue;
use hyper::{Body, Error, Request, Response, StatusCode};
use mmids_core::workflows::manager::{WorkflowManagerRequest, WorkflowManagerRequestOperation};
use... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/validators/rtmp-server/src/main.rs | validators/rtmp-server/src/main.rs | use log::{error, info, warn};
use mmids_core::net::tcp::start_socket_manager;
use mmids_rtmp::rtmp_server::{
start_rtmp_server_endpoint, IpRestriction, RtmpEndpointMediaData, RtmpEndpointMediaMessage,
RtmpEndpointPublisherMessage, RtmpEndpointRequest, RtmpEndpointWatcherNotification,
StreamKeyRegistration,... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/validators/echo-server/src/main.rs | validators/echo-server/src/main.rs | use bytes::{Bytes, BytesMut};
use futures::stream::FuturesUnordered;
use futures::{FutureExt, StreamExt};
use log::{debug, error, info, warn};
use mmids_core::net::tcp::{
start_socket_manager, OutboundPacket, TcpSocketRequest, TcpSocketResponse,
};
use mmids_core::net::ConnectionId;
use std::collections::HashMap;
u... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/validators/ffmpeg-runner/src/main.rs | validators/ffmpeg-runner/src/main.rs | use log::info;
use mmids_ffmpeg::endpoint::{
start_ffmpeg_endpoint, AudioTranscodeParams, FfmpegEndpointNotification, FfmpegEndpointRequest,
FfmpegParams, H264Preset, TargetParams, VideoScale, VideoTranscodeParams,
};
use tokio::sync::mpsc::unbounded_channel;
use uuid::Uuid;
#[tokio::main()]
pub async fn main(... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-app/src/main.rs | mmids-app/src/main.rs | mod http_handlers;
use hyper::Method;
use mmids_core::config::{parse as parse_config_file, MmidsConfig};
use mmids_core::event_hub::{start_event_hub, PublishEventRequest, SubscriptionRequest};
use mmids_core::net::tcp::{start_socket_manager, TlsOptions};
use mmids_core::reactors::executors::simple_http_executor::Simpl... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-app/src/http_handlers.rs | mmids-app/src/http_handlers.rs | use async_trait::async_trait;
use hyper::{Body, Error, Request, Response};
use mmids_http_api::routing::RouteHandler;
use std::collections::HashMap;
pub struct VersionHandler;
#[async_trait]
impl RouteHandler for VersionHandler {
async fn execute(
&self,
_request: &mut Request<Body>,
_path... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/reactor-test-server/src/main.rs | reactor-test-server/src/main.rs | use hyper::service::{make_service_fn, service_fn};
use hyper::{Body, Method, Request, Response, Result, Server, StatusCode};
use serde::Deserialize;
use tokio::fs::File;
use tokio_util::codec::{BytesCodec, FramedRead};
const DIRECTORY: &str = "workflows";
#[derive(Deserialize)]
struct RequestContent {
stream_name... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/config.rs | mmids-core/src/config.rs | use crate::reactors::ReactorDefinition;
use crate::workflows::definitions::{WorkflowDefinition, WorkflowStepDefinition, WorkflowStepType};
use pest::iterators::{Pair, Pairs};
use pest::Parser;
use std::collections::HashMap;
use std::sync::Arc;
use std::time::Duration;
use thiserror::Error;
use tracing::warn;
/// Confi... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/actor_utils.rs | mmids-core/src/actor_utils.rs | //! Utilities useful for actor implementations.
use std::future::Future;
use tokio::sync::mpsc::{UnboundedReceiver, UnboundedSender};
/// Watches a tokio `UnboundedReceiver` for a message, and when a message is received sends that
/// message to the actor via the `received_message` transformation function.
pub fn not... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/lib.rs | mmids-core/src/lib.rs | //! This crate contains all the building blocks and foundational systems that a mmids application
//! requires. It also contains standard workflow steps that are likely to be used in most
//! mmids applications.
extern crate pest;
#[macro_use]
extern crate pest_derive;
use std::num::Wrapping;
use std::sync::Arc;
use ... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/test_utils.rs | mmids-core/src/test_utils.rs | use futures::future::BoxFuture;
use futures::stream::FuturesUnordered;
use futures::StreamExt;
use std::fmt::Debug;
use std::time::Duration;
use tokio::sync::mpsc::UnboundedReceiver;
use tokio::sync::oneshot::Receiver;
use tokio::time::timeout;
pub async fn expect_mpsc_response<T>(receiver: &mut UnboundedReceiver<T>) ... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/codecs.rs | mmids-core/src/codecs.rs | //! Standard codec identifiers
use lazy_static::lazy_static;
use std::sync::Arc;
lazy_static! {
pub static ref VIDEO_CODEC_H264_AVC: Arc<String> = Arc::new("h264-avc".to_string());
pub static ref AUDIO_CODEC_AAC_RAW: Arc<String> = Arc::new("aac-raw".to_string());
}
| rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/event_hub.rs | mmids-core/src/event_hub.rs | //! The event hub is a central actor that receives events from all type of mmids subsystems and
//! allows them to be published to interested subscribers.
use crate::actor_utils::{notify_on_unbounded_closed, notify_on_unbounded_recv};
use crate::workflows::manager::WorkflowManagerRequest;
use crate::workflows::Workflo... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/manager.rs | mmids-core/src/workflows/manager.rs | //! A workflow manager is a centralized actor that orchestrates multiple workflows. It can be
//! used to start new workflows, change the steps of a managed workflow, get status the of managed
//! workflows, and stop a managed workflow.
use crate::actor_utils::{notify_on_unbounded_closed, notify_on_unbounded_recv};
u... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/mod.rs | mmids-core/src/workflows/mod.rs | //! A workflow represents a single media pipeline. Each workflow contains one or more steps that
//! can either receive video, transform video, or send video to other sources. Media data
//! transitions from one step to the next in a linear fashion based on the order in which they
//! were defined.
pub mod definitio... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/definitions.rs | mmids-core/src/workflows/definitions.rs | use std::collections::hash_map::DefaultHasher;
use std::collections::HashMap;
use std::fmt::{Display, Formatter};
use std::hash::{Hash, Hasher};
use std::sync::Arc;
/// Identifier representing the type of the workflow step being defined
#[derive(Clone, Hash, Debug, Eq, PartialEq)]
pub struct WorkflowStepType(pub Strin... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/metadata/klv.rs | mmids-core/src/workflows/metadata/klv.rs | //! Key-length-value encoding of byte data. Allows storing a set of data in a single contiguous
//! `Bytes` collection, enabling the storing of different types of data in re-usable memory
//! arenas, and being cheap to clone.
use anyhow::{anyhow, Result};
use bytes::{Buf, BufMut, Bytes, BytesMut};
/// An individual K... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/metadata/mod.rs | mmids-core/src/workflows/metadata/mod.rs | //! This module contains functionality for storing and retrieving metadata about individual
//! media payloads.
pub mod common_metadata;
mod keys;
mod klv;
use crate::workflows::metadata::klv::{KlvItem, KlvStore};
use bytes::{Buf, BufMut, Bytes, BytesMut};
use tracing::error;
pub use keys::{MetadataKey, MetadataKeyM... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/metadata/common_metadata.rs | mmids-core/src/workflows/metadata/common_metadata.rs | //! Common types of media payload metadata that may be used
use crate::workflows::metadata::{MetadataKey, MetadataKeyMap, MetadataValueType};
/// Returns the metadata key for a metadata entry describing if a media payload is a video
/// key frame.
pub fn get_is_keyframe_metadata_key(metadata_map: &mut MetadataKeyMap)... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/metadata/keys.rs | mmids-core/src/workflows/metadata/keys.rs | use crate::workflows::metadata::MetadataValueType;
use std::collections::HashMap;
/// How much to shift a u16 in order to store/read the
const VALUE_TYPE_SHIFT: u16 = 12;
/// Distinctly identifies a single metadata attribute that can have data stored for it.
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
pub struct Met... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/runner/test_steps.rs | mmids-core/src/workflows/runner/test_steps.rs | use crate::workflows::definitions::WorkflowStepDefinition;
use crate::workflows::steps::factory::StepGenerator;
use crate::workflows::steps::futures_channel::{
FuturesChannelInnerResult, WorkflowStepFuturesChannel,
};
use crate::workflows::steps::{
StepCreationResult, StepFutureResult, StepInputs, StepOutputs, ... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/runner/test_context.rs | mmids-core/src/workflows/runner/test_context.rs | use crate::workflows::definitions::{
WorkflowDefinition, WorkflowStepDefinition, WorkflowStepId, WorkflowStepType,
};
use crate::workflows::runner::test_steps::{TestInputStepGenerator, TestOutputStepGenerator};
use crate::workflows::steps::factory::WorkflowStepFactory;
use crate::workflows::steps::StepStatus;
use c... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/runner/tests.rs | mmids-core/src/workflows/runner/tests.rs | use crate::workflows::definitions::{WorkflowDefinition, WorkflowStepDefinition, WorkflowStepType};
use crate::workflows::runner::test_context::TestContext;
use crate::workflows::steps::factory::WorkflowStepFactory;
use crate::workflows::steps::StepStatus;
use crate::workflows::{
start_workflow, MediaNotification, M... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/runner/mod.rs | mmids-core/src/workflows/runner/mod.rs | #[cfg(test)]
mod test_context;
#[cfg(test)]
mod test_steps;
#[cfg(test)]
mod tests;
use crate::actor_utils::notify_on_unbounded_recv;
use crate::workflows::definitions::{WorkflowDefinition, WorkflowStepDefinition, WorkflowStepId};
use crate::workflows::steps::factory::WorkflowStepFactory;
use crate::workflows::steps::... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/steps/futures_channel.rs | mmids-core/src/workflows/steps/futures_channel.rs | //! This module provides abstractions over MPSC channels, which make it easy for workflow steps
//! to execute a future and send the results of those futures back to the correct workflow runner
//! with minimal allocations.
use crate::workflows::definitions::WorkflowStepId;
use crate::workflows::steps::StepFutureResul... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/steps/test_utils.rs | mmids-core/src/workflows/steps/test_utils.rs | use crate::workflows::steps::factory::StepGenerator;
use crate::workflows::steps::futures_channel::FuturesChannelResult;
use crate::workflows::steps::futures_channel::{
FuturesChannelInnerResult, WorkflowStepFuturesChannel,
};
use crate::workflows::definitions::WorkflowStepDefinition;
use crate::workflows::steps::... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/steps/mod.rs | mmids-core/src/workflows/steps/mod.rs | //! Workflow steps are individual actions that can be taken on media as part of a media pipeline.
pub mod factory;
pub mod futures_channel;
pub mod workflow_forwarder;
#[cfg(feature = "test-utils")]
pub mod test_utils;
use super::MediaNotification;
use crate::workflows::definitions::WorkflowStepDefinition;
use crate... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/steps/factory.rs | mmids-core/src/workflows/steps/factory.rs | use crate::workflows::definitions::{WorkflowStepDefinition, WorkflowStepType};
use crate::workflows::steps::futures_channel::{FuturesChannelResult, WorkflowStepFuturesChannel};
use crate::workflows::steps::StepCreationResult;
use std::collections::HashMap;
use thiserror::Error;
use tokio::sync::mpsc::UnboundedSender;
... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/steps/workflow_forwarder/tests.rs | mmids-core/src/workflows/steps/workflow_forwarder/tests.rs | use super::*;
use crate::test_utils;
use crate::workflows::definitions::WorkflowStepType;
use crate::workflows::metadata::MediaPayloadMetadataCollection;
use crate::workflows::steps::futures_channel::FuturesChannelInnerResult;
use crate::workflows::steps::test_utils::StepTestContext;
use crate::workflows::MediaType;
us... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/workflows/steps/workflow_forwarder/mod.rs | mmids-core/src/workflows/steps/workflow_forwarder/mod.rs | //! The workflow forwarder step takes all media notifications it receives and sends them to the
//! specified workflow, using the workflow media relay. All media notifications are also passed
//! to subsequent steps.
#[cfg(test)]
mod tests;
use crate::event_hub::{SubscriptionRequest, WorkflowStartedOrStoppedEvent};
u... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/net/mod.rs | mmids-core/src/net/mod.rs | //! Networking layer for Mmids applications
use cidr_utils::cidr::{IpCidr, Ipv4Cidr};
use std::fmt::Formatter;
use std::hash::{Hash, Hasher};
use std::net::Ipv4Addr;
use std::sync::Arc;
use thiserror::Error;
pub mod tcp;
/// A unique identifier for any given TCP connection, or unique UDP client. If a TCP client
///... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/net/tcp/listener.rs | mmids-core/src/net/tcp/listener.rs | use super::TcpSocketResponse;
use crate::net::tcp::TlsOptions;
use crate::net::ConnectionId;
use bytes::{Bytes, BytesMut};
use futures::future::FutureExt;
use std::collections::VecDeque;
use std::net::SocketAddr;
use std::sync::Arc;
use tokio::io::{AsyncReadExt, AsyncWriteExt, ReadHalf, WriteHalf};
use tokio::net::{Tcp... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/net/tcp/mod.rs | mmids-core/src/net/tcp/mod.rs | //! A TCP socket manager actor that allows other systems to request TCP connections. The socket
//! manager will manage listeners for different ports, accept connections, unwrap SSL sessions (if
//! requested), and pass networked data to requesters.
mod listener;
mod socket_manager;
use super::ConnectionId;
use bytes... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/net/tcp/socket_manager.rs | mmids-core/src/net/tcp/socket_manager.rs | use super::listener::{start as start_listener, ListenerParams};
use super::{TcpSocketRequest, TcpSocketResponse};
use crate::actor_utils::{notify_on_unbounded_closed, notify_on_unbounded_recv};
use crate::net::tcp::{RequestFailureReason, TlsOptions};
use std::collections::hash_map::Entry;
use std::collections::HashMap;... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/reactors/manager.rs | mmids-core/src/reactors/manager.rs | //! The reactor manager creates new reactors and allows relaying requests to the correct reactor
//! based on names.
use crate::actor_utils::notify_on_unbounded_recv;
use crate::event_hub::SubscriptionRequest;
use crate::reactors::executors::{GenerationError, ReactorExecutorFactory};
use crate::reactors::reactor::Reac... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/reactors/mod.rs | mmids-core/src/reactors/mod.rs | //! Reactors are actors that are used to manage workflows for specific stream names. This is a
//! pull mechanism for dynamic workflow capabilities in mmids. When a reactor is asked for a
//! workflow for a stream name, the reactor will reach out to an external service (configured
//! by a reactor executor) to obtain a... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/reactors/reactor.rs | mmids-core/src/reactors/reactor.rs | use crate::actor_utils::{
notify_on_future_completion, notify_on_unbounded_closed, notify_on_unbounded_recv,
};
use crate::event_hub::{SubscriptionRequest, WorkflowManagerEvent};
use crate::reactors::executors::{ReactorExecutionResult, ReactorExecutor};
use crate::workflows::definitions::WorkflowDefinition;
use cra... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/reactors/executors/mod.rs | mmids-core/src/reactors/executors/mod.rs | pub mod simple_http_executor;
use crate::workflows::definitions::WorkflowDefinition;
use futures::future::BoxFuture;
use std::collections::HashMap;
use std::sync::Arc;
use thiserror::Error;
/// Contains the result from a reactor execution request about a stream
pub struct ReactorExecutionResult {
/// Was the stre... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-core/src/reactors/executors/simple_http_executor.rs | mmids-core/src/reactors/executors/simple_http_executor.rs | use crate::config::MmidsConfig;
use crate::reactors::executors::{
ReactorExecutionResult, ReactorExecutor, ReactorExecutorGenerator,
};
use async_recursion::async_recursion;
use futures::future::BoxFuture;
use futures::FutureExt;
use hyper::http::HeaderValue;
use hyper::{Body, Client, Method, Request, StatusCode};
... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-ffmpeg/src/lib.rs | mmids-ffmpeg/src/lib.rs | //! Components to integrate the FFMPEG into mmids workflows
pub mod endpoint;
pub mod workflow_steps;
| rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-ffmpeg/src/endpoint.rs | mmids-ffmpeg/src/endpoint.rs | //! Endpoint used to manage a local ffmpeg executable. Workflow steps can request FFMPEG be run
//! with specific parameters, and the endpoint will run it. If the ffmpeg process stops before
//! being requested to stop, then the endpoint will ensure it gets re-run.
use mmids_core::actor_utils::{notify_on_future_comp... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-ffmpeg/src/workflow_steps/ffmpeg_handler.rs | mmids-ffmpeg/src/workflow_steps/ffmpeg_handler.rs | use crate::endpoint::{FfmpegEndpointNotification, FfmpegEndpointRequest, FfmpegParams};
use mmids_core::workflows::steps::futures_channel::WorkflowStepFuturesChannel;
use mmids_core::StreamId;
use mmids_rtmp::workflow_steps::external_stream_handler::{
ExternalStreamHandler, ExternalStreamHandlerGenerator, ResolvedF... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-ffmpeg/src/workflow_steps/mod.rs | mmids-ffmpeg/src/workflow_steps/mod.rs | //! Workflow steps to integrate FFMPEG into mmids workflows
pub mod ffmpeg_handler;
pub mod ffmpeg_hls;
pub mod ffmpeg_pull;
pub mod ffmpeg_rtmp_push;
pub mod ffmpeg_transcode;
| rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-ffmpeg/src/workflow_steps/ffmpeg_transcode/tests.rs | mmids-ffmpeg/src/workflow_steps/ffmpeg_transcode/tests.rs | use crate::endpoint::{
AudioTranscodeParams, FfmpegEndpointNotification, FfmpegEndpointRequest, FfmpegParams,
H264Preset, TargetParams, VideoTranscodeParams,
};
use crate::workflow_steps::ffmpeg_transcode::{
FfmpegTranscoderStepGenerator, AUDIO_CODEC_NAME, BITRATE_NAME, H264_PRESET_NAME, SIZE_NAME,
VIDE... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | true |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-ffmpeg/src/workflow_steps/ffmpeg_transcode/mod.rs | mmids-ffmpeg/src/workflow_steps/ffmpeg_transcode/mod.rs | //! A workflow step that that utilizes the ffmpeg executable to transcode media streams. When a
//! new stream comes into the step, it will coordinate with the RTMP server endpoint to provision
//! a special app/stream key combination to push a video stream out and another app/stream key
//! combination to receive the... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | true |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-ffmpeg/src/workflow_steps/ffmpeg_rtmp_push/mod.rs | mmids-ffmpeg/src/workflow_steps/ffmpeg_rtmp_push/mod.rs | //! This step utilizes the ffmpeg endpoint to send media to an external system, such as another
//! RTMP server.
//!
//! Any incoming media packets are passed to the rtmp endpoint for sending to ffmpeg, and then
//! passed along as is for the next workflow step.
use crate::endpoint::{
AudioTranscodeParams, FfmpegE... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-ffmpeg/src/workflow_steps/ffmpeg_pull/mod.rs | mmids-ffmpeg/src/workflow_steps/ffmpeg_pull/mod.rs | //! This workflow step utilizes ffmpeg to read video from an external source. The external source
//! can be a remote RTMP server or a file on the file system. If ffmpeg closes (such as when the
//! video file has been fully streamed) then the ffmpeg will restart until the workflow is
//! removed.
//!
//! Media packe... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
KallDrexx/mmids | https://github.com/KallDrexx/mmids/blob/3d732616da3bc8976dbcd5f859758ed3f06dc38f/mmids-ffmpeg/src/workflow_steps/ffmpeg_hls/mod.rs | mmids-ffmpeg/src/workflow_steps/ffmpeg_hls/mod.rs | //! This step utilizes ffmpeg to create an HLS playlist.
//!
//! Media packets that are received from previous steps are passed to the RTMP endpoint for ffmpeg
//! consumption, and then passed on to the next step as-is.
use crate::endpoint::{
AudioTranscodeParams, FfmpegEndpointRequest, FfmpegParams, TargetParams,... | rust | MIT | 3d732616da3bc8976dbcd5f859758ed3f06dc38f | 2026-01-04T20:17:23.887411Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/lib.rs | src/lib.rs | //! Fast cryptographic accumulator and vector commitment library, originally written by Cambrian
//! Technologies [\[GitHub\]](https://github.com/cambrian/accumulator).
//!
//! **Disclaimer**: This library is intended to be production-quality code, but it has not been
//! independently-audited for correctness or tested... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/vector_commitment.rs | src/vector_commitment.rs | //! Vector commitment library, built on a generic group interface. **Very much a WIP.**
use super::accumulator::{Accumulator, MembershipProof, NonmembershipProof, Witness};
use crate::group::UnknownOrderGroup;
use rug::Integer;
use std::collections::HashSet;
#[derive(Debug)]
/// The different types of vector commitmen... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/uint.rs | src/uint.rs | //! Zero-allocation U256 and U512 types built on GMP. We created this module specifically for our
//! use case of implementing primality checking over 256-bit integers, but it may be worth
//! polishing a bit for more general use.
//!
//! Obviously there are a lot of `unsafe` blocks to work with GMP. Take care when usi... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/util.rs | src/util.rs | //! Miscellaneous functions used throughout the library.
use crate::group::Group;
use crate::hash::hash_to_prime;
use rug::Integer;
use std::hash::Hash;
/// Pseudo-type-level programming.
/// This trait allows us to reflect "type-level" (i.e. static) information at runtime.
pub trait TypeRep: 'static {
/// The assoc... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/accumulator.rs | src/accumulator.rs | //! Accumulator library, built on a generic group interface.
use crate::group::UnknownOrderGroup;
use crate::hash::hash_to_prime;
use crate::proof::{Poe, Poke2};
use crate::util::{divide_and_conquer, int, prime_hash_product, shamir_trick};
use rug::Integer;
use std::hash::Hash;
use std::marker::PhantomData;
#[derive(D... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/hash/blake2b.rs | src/hash/blake2b.rs | //! `GeneralHasher` interface for `blake2_rfc`.
use super::GeneralHasher;
use blake2_rfc::blake2b::Blake2b as Blake2b_;
use std::hash::Hasher;
/// Thin wrapper around `Blake2b` from `blake2_rfc`.
pub struct Blake2b(pub Blake2b_);
impl Default for Blake2b {
fn default() -> Self {
// 32 bytes = 256 bits
Self(... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/hash/mod.rs | src/hash/mod.rs | //! This module wraps `blake2b_rfc` into a convenient hashing interface (`GeneralHasher`) and
//! exports the generalized `hash` function. Also exported is `hash_to_prime`, which works by
//! repeatedly `hash`ing a value together with an incrementing nonce until the output is prime.
use crate::uint::u256;
use rug::inte... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/hash/primality/mod.rs | src/hash/primality/mod.rs | //! Primality testing for U256 inputs. Use `is_prob_prime` unless you have a specific reason to use
//! a lower-level test.
use crate::uint::{u256, u512, U256};
mod constants;
use constants::{D_VALUES, SMALL_PRIMES};
/// Implements the Baillie-PSW probabilistic primality test, which is known to be deterministic over
... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/hash/primality/constants.rs | src/hash/primality/constants.rs | /// Used as a prefilter to `is_prob_prime`. The number of these has been tuned on a 2018 Macbook
/// Pro.
pub const SMALL_PRIMES: [u64; 200] = [
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97,
101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, ... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/group/ristretto.rs | src/group/ristretto.rs | //! Ristretto group implementation (based on the `curve25519-dalek` crate).
use super::Group;
use crate::util::{int, TypeRep};
use curve25519_dalek::ristretto::RistrettoPoint;
use curve25519_dalek::scalar::Scalar;
use curve25519_dalek::traits::Identity;
use rug::integer::Order;
use rug::ops::Pow;
use rug::Integer;
use ... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/group/class.rs | src/group/class.rs | //! Fixed-discriminant implementation of an ideal class group, with future optimizations.
//!
//! Using a class group instead of an RSA group for accumulators or vector commitments eliminates
//! the need for a trusted setup, albeit at the expense of slower operations.
use super::{ElemFrom, Group, UnknownOrderGroup};
u... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/group/rsa.rs | src/group/rsa.rs | //! RSA (2048) group using GMP integers in the `rug` crate.
use super::{ElemFrom, Group, UnknownOrderGroup};
use crate::util::{int, TypeRep};
use rug::Integer;
use std::str::FromStr;
#[allow(clippy::module_name_repetitions)]
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
/// RSA-2048 group implementation. Modulus taken ... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/group/mod.rs | src/group/mod.rs | //! Implementations for different mathematical groups, each of which satisfies our
//! `UnknownOrderGroup` trait. They can be used with the accumulator and vector commitment
//! structures, or standalone if you have a custom application.
//!
//! The preferred elliptic group implementation is the `Ristretto` group, whic... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/proof/poke2.rs | src/proof/poke2.rs | //! Non-Interactive Proofs of Knowledge of Exponent (NI-PoKE2). See BBF (pages 10 and 42) for
//! details.
use crate::group::UnknownOrderGroup;
use crate::hash::{blake2b, hash_to_prime};
use rug::Integer;
#[allow(non_snake_case)]
#[derive(PartialEq, Eq, Hash, Clone, Debug)]
/// Struct for NI-PoKE2.
pub struct Poke2<G:... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/proof/poe.rs | src/proof/poe.rs | //! Non-Interactive Proofs of Exponentiation (NI-PoE). See BBF (pages 8 and 42) for details.
use crate::group::Group;
use crate::hash::hash_to_prime;
use crate::util::int;
use rug::Integer;
#[allow(non_snake_case)]
#[derive(Debug, PartialEq, Eq, Hash, Clone)]
/// Struct for NI-PoE.
pub struct Poe<G: Group> {
Q: G::E... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/proof/pokcr.rs | src/proof/pokcr.rs | //! Non-Interactive Proofs of Knowledge of Co-prime Roots (NI-PoKCR). See BBF (page 11) for details.
use crate::group::{multi_exp, Group};
use rug::Integer;
#[allow(non_snake_case)]
#[derive(PartialEq, Eq, Hash, Clone, Debug)]
/// Struct for NI-PoKCR.
pub struct Pokcr<G: Group> {
w: G::Elem,
}
impl<G: Group> Pokcr<... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/src/proof/mod.rs | src/proof/mod.rs | //! Succinct proofs over unknown-order groups. These proofs are used as building blocks for many of
//! the cryptographic primitives in this library.
//!
//! Use standalone with caution.
//!
//! Implementations are based on Section 3 of BBF.
mod poe;
pub use poe::Poe;
mod pokcr;
pub use pokcr::Pokcr;
mod poke2;
pub use... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/tests/stress.rs | tests/stress.rs | use accumulator::group::Rsa2048;
use accumulator::Accumulator;
use rand::Rng;
/// Adds 10,000 random primes to accumulator (unverified), then tests 100 more random additions
/// (with verification) and 100 random elements are verified to be nonmembers.
///
/// Takes about 5 minutes.
///
/// TODO: Use a counter instead... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/benches/uint.rs | benches/uint.rs | /// See https://bheisler.github.io/criterion.rs/book/getting_started.html to add more benchmarks.
#[macro_use]
extern crate criterion;
use accumulator::hash::blake2b;
use accumulator::uint::U256;
use criterion::{black_box, Criterion};
use rug::integer::Order;
use std::ops::Mul;
fn bench_mul<T: Mul>(a: T, b: T) {
bl... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/benches/hash/hashes.rs | benches/hash/hashes.rs | /// See https://bheisler.github.io/criterion.rs/book/getting_started.html to add more benchmarks.
#[macro_use]
extern crate criterion;
use criterion::Criterion;
use accumulator::hash::{blake2b, hash_to_prime};
use rand::Rng;
fn bench_blake2() {
blake2b("werg");
}
fn bench_hash_to_prime() {
let random_bytes = ran... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/benches/hash/primality.rs | benches/hash/primality.rs | /// See https://bheisler.github.io/criterion.rs/book/getting_started.html to add more benchmarks.
#[macro_use]
extern crate criterion;
use accumulator::hash::primality::{passes_lucas, passes_miller_rabin_base_2};
use accumulator::uint::u256;
use criterion::Criterion;
use rand::Rng;
use rug::integer::Order;
use rug::In... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/benches/accumulator/add.rs | benches/accumulator/add.rs | /// See https://bheisler.github.io/criterion.rs/book/getting_started.html to add more benchmarks.
#[macro_use]
extern crate criterion;
use accumulator::group::{ClassGroup, Rsa2048, UnknownOrderGroup};
use accumulator::hash::hash_to_prime;
use accumulator::{Accumulator, MembershipProof};
use criterion::Criterion;
use r... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
cambrian/accumulator | https://github.com/cambrian/accumulator/blob/8f460270c274a4a65d777378a587be6dbc986c18/benches/accumulator/delete.rs | benches/accumulator/delete.rs | /// See https://bheisler.github.io/criterion.rs/book/getting_started.html to add more benchmarks.
#[macro_use]
extern crate criterion;
use accumulator::group::{ClassGroup, Rsa2048, UnknownOrderGroup};
use accumulator::{Accumulator, MembershipProof};
use criterion::Criterion;
fn bench_delete<G: UnknownOrderGroup>(
a... | rust | MIT | 8f460270c274a4a65d777378a587be6dbc986c18 | 2026-01-04T20:15:46.214781Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.