audio issue in receiving rtsp streaming

cfd new newcfd at yahoo.com
Thu Nov 17 14:34:29 UTC 2022


 
The pipeline is in playing state. You have to set the added parts(audio bin) to playing state as well. Otherwise, it will not work. But I can not add volume element to audio bin anymore. That is weird.
    On Thursday, November 17, 2022, 05:30:55 a.m. EST, Gareth Alldread via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:  
 
 Thanks.  I thought I tried that.  So - in the pad added callback - you actually change the pipeline and then set the state to playing?  Assume you had already set the state to playing elsewhere in order for the pad added callback to even happen?

On Wed, 16 Nov 2022 at 20:22, cfd new via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:

 
Hi, Gareth,
   sorry I can not share the pipeline with you since it is company property. I have solved the issue. Firstly, make video parts only and run it.connect video source with "pad-added" signal and check if audio is available in the streaming from pad info. If yes, add audio parts(audiobin)to the pipeline and set its state to Playing.  

   Joe

    On Wednesday, November 16, 2022, 11:28:14 a.m. EST, Gareth Alldread via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:  
 
 Hi,
I have exactly the same issue.  The symptom I get is just a green screen (like only 1 frame of video has been decoded).  I am still hoping someone on here can help with this.
Can you share with me the pipeline you are using please?

Gareth

On Tue, 15 Nov 2022 at 19:27, cfd new via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:

 If I use playbin, it works fine. How does playbin automatically handle streaming with and without audio?

    On Tuesday, November 15, 2022, 02:07:33 p.m. EST, cfd new <newcfd at yahoo.com> wrote:  
 
 I have a pipeline for video and audio. If rtsp streaming has both audio and video, it works fine. But if the rtsp streaming does not have audio, the pipeline will freezes.How to add audio part dynamically to the pipeline for rtsp streaming with audio?
  
  
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221117/0a87d59d/attachment.htm>


More information about the gstreamer-devel mailing list