<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Ok, got it!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I don't understand, however, why it works under this condition: if I keep one type of band (i.e. only 48000 OR only 64000 OR only 96000) from the m3u8 file it works perfectly.
<div><br>
</div>
It continues to work even if I keep both 48000 streams, but if I use a 48000 and a 64000 it stops after 10 seconds.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
regards,</div>
<div id="appendonsend"></div>

<DIV id=main class=fontcalibri>
<DIV class=username style="FONT-FAMILY: cali"><SPAN class=fontcalibri 
style="FONT-FAMILY: cali"><FONT style="FONT-SIZE: 10pt; FONT-FAMILY: calibri" 
face=calibri><BR>Alessio Carello</FONT></SPAN></DIV>
<DIV class=userjob><SPAN class=fontcalibri><FONT 
style="FONT-SIZE: 9pt; COLOR: #1b8cc7" face=calibri>SOFTWARE ENGINEERING SPECIALIST<SPAN 
style="FONT-SIZE: 9pt; COLOR: #1b8cc7"></SPAN></FONT></SPAN></DIV>
<DIV class=uselessspace style="FONT-SIZE: 9pt"><FONT style="FONT-SIZE: 9pt" 
face=calibri><SPAN style="FONT-SIZE: 9pt">
<DIV class=uselessspace style="FONT-SIZE: 9pt"><FONT style="FONT-SIZE: 9pt" 
face=calibri><BR></FONT></DIV>
<DIV class=row style="FONT-SIZE: 9pt"><SPAN class=powersoft 
style="FONT-SIZE: 9pt"><FONT style="FONT-SIZE: 9pt" face=calibri>Powersoft 
S.p.A.</FONT></SPAN></DIV>
<DIV class=row style="FONT-SIZE: 9pt"><SPAN class=address 
style="FONT-SIZE: 9pt"><FONT style="FONT-SIZE: 9pt" face=calibri>Via E. Conti, 5 
- Scandicci (Fi) 50018 - Italy</FONT></SPAN></DIV>
<DIV class=row style="FONT-FAMILY: calibri"><FONT style="FONT-SIZE: 9pt" 
face=calibri><SPAN class=contacttype 
style="FONT-SIZE: 9pt; FONT-FAMILY: calibri">OFFICE:    </SPAN><SPAN 
class=contactvalue style="FONT-SIZE: 9pt; FONT-FAMILY: calibri">+39 055 
7350230</SPAN></FONT></DIV></SPAN></FONT></DIV><!--

                -->
<DIV style="MARGIN-TOP: 12px"><!--
                --><SPAN style="FONT-FAMILY: calibri"><A 
class=iconlink href="http://www.powersoft-audio.com/en/"></A><A title="" 
href="http://www.powersoft-audio.com/en/"><IMG border=0 
src="cid:PS_553e4174-d089-4113-aa68-7863aa6108ea.png"></A> <A title="" 
href="https://www.facebook.com/powersoft"><IMG border=0 
src="cid:FB_c651e92c-f558-4470-9dc8-0cde2dc49cf4.png"></A> <A title="" 
href="https://teams.microsoft.com/l/chat/0/0?users=alessio.carello@powersoft.com"><IMG border=0 
src="cid:Teams_6088ac53-fdc7-460a-97b3-533e03f1ad3d.png"></A> <A title="" 
href="https://www.linkedin.com/company/powersoft"><IMG border=0 
src="cid:IN_2180daad-e9b1-4c84-9ac3-d130a49ed1c3.png"></A><A class=iconlink 
style="FONT-FAMILY: calibri" 
href="https://www.linkedin.com/company/powersoft"></A> <A title="" 
href="https://www.youtube.com/user/powersoftaudio"><IMG border=0 
src="cid:YT_c74db1a3-a814-4e66-b04f-15ff9bd7940d.png"></A><A title="" class=iconlink 
style="FONT-FAMILY: calibri" 
href="https://www.youtube.com/user/powersoftaudio"></A> <A title="" 
href="https://www.instagram.com/powersoft.audio/"><IMG border=0 
src="cid:IG_b8aafa87-2c84-4406-9c9e-91da1b7684d0.png"></A><A class=iconlink 
style="FONT-FAMILY: calibri" 
href="https://www.instagram.com/powersoft.audio/"></A><A class=iconlink 
href="http://www.powersoft-audio.com/en/"> </A></SPAN>
<P 
style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"></P>
<P 
style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"></P>
<P 
style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"></P>
<P 
style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"></P>
<P 
style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"></P>
<P 
style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"></P>
<P 
style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"></P>
<P 
style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"></P>
<P 
style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"><BR><BR> </P></DIV></DIV><hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Da:</b> Nirbheek Chauhan <nirbheek.chauhan@gmail.com><br>
<b>Inviato:</b> marted́ 29 marzo 2022 17:53<br>
<b>A:</b> Alessio Carello <alessio.carello@powersoft.com><br>
<b>Cc:</b> Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br>
<b>Oggetto:</b> Re: issue when streaming m3u8 source (multivariant playlist playlist)</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">> 0:00:13.271775878  3026 0x7fce5800b060 WARN           adaptivedemux gstadaptivedemux.c:888:gst_adaptive_demux_handle_message:<hlsdemux0:src_1> Source posted error: 4364:1 Internal data stream error. (../plugins/elements/gstqueue.c(1570):
 gst_queue_loop (): /GstPipeline:media-pipeline/GstBin:bin0/GstDecodeBin:decodebin0/GstHLSDemux:hlsdemux0/GstBin:srcbin-src_1/GstQueue:queue2:<br>
streaming stopped, reason not-linked (-1))<br>
<br>
Ah, it's actually an HLS playlist, which means the audio is in<br>
fragments. adaptive demuxer elements (like hlsdemux) will expose a new<br>
srcpad for each fragment, and you're supposed to use input-selector to<br>
switch from one pad to the other to have continuous playback. You can<br>
reproduce the same issue with:<br>
<br>
gst-launch-1.0 uridecodebin<br>
uri=https://radiodeejay-lh.akamaihd.net/i/RadioDeejay_Live_1@189857/master.m3u8<br>
! audioconvert ! audioresample ! queue ! autoaudiosink<br>
<br>
You should just use playbin instead of decodebin here, since it will<br>
handle all this for you:<br>
<br>
gst-launch-1.0 playbin<br>
uri=https://radiodeejay-lh.akamaihd.net/i/RadioDeejay_Live_1@189857/master.m3u8<br>
<br>
You can set the "audio-sink" property to a GstBin that does<br>
`audioconvert ! audioresample ! vorbisenc max-bitrate=64000 !<br>
rtpvorbispay name=pay0 pt=97` and expost ghost pads for the sink and<br>
source.<br>
<br>
Basically you need to write C code to make this work with<br>
gst-rtsp-server, you can't do it from the command-line.<br>
<br>
Cheers,<br>
Nirbheek<br>
<br>
<br>
On Tue, Mar 29, 2022 at 4:12 PM Alessio Carello<br>
<alessio.carello@powersoft.com> wrote:<br>
><br>
> Hi Nirbheek,<br>
> Thank you for your reply, i appreciate you.<br>
> I've the same issue with 1.20.1, the following pipeline is the right one (i missed audioreample plugin in the first message)<br>
><br>
> ./gst-rtsp-launch "( souphttpsrc location=https://radiodeejay-lh.akamaihd.net/i/RadioDeejay_Live_1@189857/master.m3u8 ! decodebin ! audioconvert ! audioresample ! audio/x-raw,format=F32LE,rate=48000,channels=1 ! queue ! vorbisenc max-bitrate=64000 ! rtpvorbispay
 name=pay0 pt=97 )"<br>
><br>
> I'm attaching the logs (level 2)<br>
><br>
> Thank you,<br>
><br>
><br>
> Alessio Carello<br>
> SOFTWARE ENGINEERING SPECIALIST<br>
><br>
> Powersoft S.p.A.<br>
> Via E. Conti, 5 - Scandicci (Fi) 50018 - Italy<br>
> OFFICE:    +39 055 7350230<br>
><br>
><br>
><br>
><br>
><br>
><br>
> ________________________________<br>
> Da: Nirbheek Chauhan <nirbheek.chauhan@gmail.com><br>
> Inviato: luned́ 28 marzo 2022 17:50<br>
> A: Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br>
> Cc: Alessio Carello <alessio.carello@powersoft.com><br>
> Oggetto: Re: issue when streaming m3u8 source (multivariant playlist playlist)<br>
><br>
> On Mon, Mar 28, 2022 at 2:45 PM Alessio Carello via gstreamer-devel<br>
> <gstreamer-devel@lists.freedesktop.org> wrote:<br>
> > tested with gstreamer 1.14.5 and 1.16.2.<br>
> ><br>
><br>
> The first thing you should do is to try gstreamer 1.20.1. The versions<br>
> you are testing are very old.<br>
><br>
> Cheers,<br>
> Nirbheek<br>
</div>
</span></font></div>
</body>
</html>