Convert to raw then send as raw over rtsp

This commit is contained in:
QuantumEntangledAndy committed 2020-11-17 10:14:17 +07:00
1 parent 7a6a2ca2e7
commit bbc176e9f7
1 file changed
+1 -1
+1 -1
View File
@@ -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",
};