<div dir="ltr">rtsp-producer is a component in flumotion Streaming Server (built on gstreamer) which recives RTSP stream, decode it and serves decoded audio and video to the next component in the flow.<br>I want to modify this component to skip decoding; I just want to recive RTSP stream and expose the encoded A/V (audio:aac/video:h264) to the next component (which will mux them useing mp4mux before serving them through http-streamer to HTML5 webpage)<br>
This is the RTSP component code file (rtsp.py) which generates the pipeline:<br><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">class Rtsp(feedcomponent.ParseLaunchComponent):</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">    def get_pipeline_string(self, properties):</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        width = properties.get(&#39;width&#39;, 0)</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">        height = properties.get(&#39;height&#39;, 0)</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        location = properties.get(&#39;location&#39;)</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">        framerate = properties.get(&#39;framerate&#39;, (25, 2))</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        has_audio = properties.get(&#39;has-audio&#39;, True)</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">        if width &gt; 0 and height &gt; 0:</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">            scaling_template = (&quot; videoscale method=1 ! &quot;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">                &quot;video/x-raw-yuv,width=%d,height=%d !&quot; % (width, height))</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        else:</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">            scaling_template = &quot;&quot;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        if has_audio:</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">            audio_template = &quot;d. ! queue ! audioconvert ! audio/x-raw-int&quot;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        else:</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">            audio_template = &quot;fakesrc silent=true ! audio/x-raw-int&quot;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        return (&quot;rtspsrc name=src location=%s ! decodebin name=d ! queue &quot;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">                &quot; ! %s ffmpegcolorspace ! video/x-raw-yuv &quot;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">                &quot; ! videorate ! video/x-raw-yuv,framerate=%d/%d ! &quot;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">                &quot; @feeder:video@ %s ! @feeder:audio@&quot;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">                % (location, scaling_template, framerate[0],</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">                   framerate[1], audio_template))<br><br><font style="font-family:arial,helvetica,sans-serif" size="2">How do I modify this to achieve my goal ?</font><br></span></div>