Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc
# Conflicts: # tools/voelinctl/src/stream.rs
This commit is contained in:
commit
92344651ca
28 files changed
+2454
-299
No files matched your search
@@ -21,9 +21,9 @@ use voelin_core::media::{
|
||||
};
|
||||
use voelin_model::ServerFlavor;
|
||||
use voelin_stream::{
|
||||
ClientState, EndReason, FrameSource, H264Profile, LayerId, LayerSpec, MediaKind, Output,
|
||||
PeerConfig, Request, SrtpProfile, StreamEvent, StreamInfo, StreamNotification, StreamSetup,
|
||||
StreamerEvent, StreamerOptions, Streams, SyntheticSource, VideoCodec, ViewerInfo, WatchEvent,
|
||||
ClientState, EndReason, FrameSource, LayerId, LayerSpec, MediaKind, Output, PeerConfig,
|
||||
Request, SrtpProfile, StreamEvent, StreamInfo, StreamNotification, StreamSetup, StreamerEvent,
|
||||
StreamerOptions, Streams, SyntheticSource, VideoCodec, ViewerInfo, WatchEvent,
|
||||
};
|
||||
|
||||
#[derive(Args, Debug, Clone)]
|
||||
@@ -197,7 +197,7 @@ pub async fn run(con: &mut Connection, args: &StreamArgs) -> Result<()> {
|
||||
if *synthetic {
|
||||
let (w, h) = parse_size(size)?;
|
||||
let bitrate = u64::from(pattern_kbps(size, *fps, *bitrate)?) * 1000;
|
||||
config.set_h264_format(H264Profile::ConstrainedHigh, w, h, *fps, bitrate);
|
||||
config.set_h264_format(w, h, *fps, bitrate);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -209,8 +209,10 @@ pub async fn run(con: &mut Connection, args: &StreamArgs) -> Result<()> {
|
||||
};
|
||||
if matches!(args.command, StreamCommand::Start { .. }) {
|
||||
// Frames go out through a `FrameSource`, which does not tell codecs
|
||||
// apart: offer the stream codec alone.
|
||||
// apart: offer the stream codec alone, H.264 in the profile it is
|
||||
// encoded in (Constrained High).
|
||||
config.video_codecs.truncate(1);
|
||||
config.h264_profile_level_ids.truncate(1);
|
||||
}
|
||||
let codec = stream_codec(&codecs, &config);
|
||||
let mut driver = Driver { streams: Streams::new(own, config), pending: HashMap::new() };
|
||||
|
||||
Reference in new issue
Block a user