From 1c9be03fd36226c24adbe29c57b87431e7da8e58 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Thu, 15 Dec 2022 10:36:33 +0700 Subject: [PATCH] Move H265 and H264 parsing and rtp into required --- src/rtsp/gst.rs | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/rtsp/gst.rs b/src/rtsp/gst.rs index 338515f..e1d14ff 100644 --- a/src/rtsp/gst.rs +++ b/src/rtsp/gst.rs @@ -362,9 +362,6 @@ impl RtspServer { "audioconvert (gst-plugins-base)", "Required for audio", ), - ("rtpL16pay", "rtp (gst-plugins-good)", "Required for audio"), - ]; - let sometimes_needed_elements = &[ ("adpcmdec", "adpcmdec", "Required for audio"), ( "h264parse", @@ -376,6 +373,24 @@ impl RtspServer { "videoparsersbad (gst-plugins-bad)", "Required for certain types of camera", ), + ( + "rtph264pay", + "rtp (gst-plugins-good)", + "Required for certain types of camera", + ), + ( + "rtph265pay", + "rtp (gst-plugins-good)", + "Required for certain types of camera", + ), + ( + "aacparse", + "audioparsers (gst-plugins-good)", + "Required for certain types of camera's audio", + ), + ("rtpL16pay", "rtp (gst-plugins-good)", "Required for audio"), + ]; + let sometimes_needed_elements = &[ ( "x264enc", "x264 (gst-plugins-ugly)", @@ -406,21 +421,6 @@ impl RtspServer { "imagefreeze (gst-plugins-good)", "Required to paused certain cameras", ), - ( - "rtph264pay", - "rtp (gst-plugins-good)", - "Required for certain types of camera", - ), - ( - "rtph265pay", - "rtp (gst-plugins-good)", - "Required for certain types of camera", - ), - ( - "aacparse", - "audioparsers (gst-plugins-good)", - "Required for certain types of camera's audio", - ), ( "audiotestsrc", "audiotestsrc (gst-plugins-base)",