From bbc176e9f7f9c654421177bfc9acd98091860d8a Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Tue, 17 Nov 2020 10:14:17 +0700 Subject: [PATCH] Convert to raw then send as raw over rtsp --- src/gst.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gst.rs b/src/gst.rs index bc63e6e..1b4cf4d 100644 --- a/src/gst.rs +++ b/src/gst.rs @@ -86,7 +86,7 @@ impl GstOutputs { let launch_aud = match self.audio_format { Some(StreamFormat::ADPCM) => "! queue silent=true max-size-bytes=10485760 min-threshold-bytes=1024 ! rawaudioparse format=pcm pcm-format=s16le sample-rate=8000 num-channels=1 interleaved=true ! audioconvert ! rtpL16pay name=pay1", // DVI4 is converted to pcm in the appsrc - Some(StreamFormat::AAC) => "! queue silent=true max-size-bytes=10485760 min-threshold-bytes=1024 ! aacparse ! decodebin ! audioconvert ! rtpmp4apay name=pay1", + Some(StreamFormat::AAC) => "! queue silent=true max-size-bytes=10485760 min-threshold-bytes=1024 ! aacparse ! decodebin ! audioconvert ! rtpL16pay name=pay1 name=pay1", _ => "! fakesink", };