R: issue when streaming m3u8 source (multivariant playlist playlist)

Alessio Carello alessio.carello at powersoft.com
Mon Apr 4 07:30:22 UTC 2022


Ok, got it!
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.

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.

regards,

Alessio Carello
SOFTWARE ENGINEERING SPECIALIST

Powersoft S.p.A.
Via E. Conti, 5 - Scandicci (Fi) 50018 - Italy
OFFICE:    +39 055 7350230
<http://www.powersoft-audio.com/en/>[cid:PS_553e4174-d089-4113-aa68-7863aa6108ea.png]<http://www.powersoft-audio.com/en/> [cid:FB_c651e92c-f558-4470-9dc8-0cde2dc49cf4.png] <https://www.facebook.com/powersoft>  [cid:Teams_6088ac53-fdc7-460a-97b3-533e03f1ad3d.png] <https://teams.microsoft.com/l/chat/0/0?users=alessio.carello@powersoft.com>  [cid:IN_2180daad-e9b1-4c84-9ac3-d130a49ed1c3.png] <https://www.linkedin.com/company/powersoft> <https://www.linkedin.com/company/powersoft>  [cid:YT_c74db1a3-a814-4e66-b04f-15ff9bd7940d.png] <https://www.youtube.com/user/powersoftaudio> <https://www.youtube.com/user/powersoftaudio>  [cid:IG_b8aafa87-2c84-4406-9c9e-91da1b7684d0.png] <https://www.instagram.com/powersoft.audio/> <https://www.instagram.com/powersoft.audio/>  <http://www.powersoft-audio.com/en/>




________________________________
Da: Nirbheek Chauhan <nirbheek.chauhan at gmail.com>
Inviato: martedì 29 marzo 2022 17:53
A: Alessio Carello <alessio.carello at powersoft.com>
Cc: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Oggetto: Re: issue when streaming m3u8 source (multivariant playlist playlist)

> 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:
streaming stopped, reason not-linked (-1))

Ah, it's actually an HLS playlist, which means the audio is in
fragments. adaptive demuxer elements (like hlsdemux) will expose a new
srcpad for each fragment, and you're supposed to use input-selector to
switch from one pad to the other to have continuous playback. You can
reproduce the same issue with:

gst-launch-1.0 uridecodebin
uri=https://radiodeejay-lh.akamaihd.net/i/RadioDeejay_Live_1@189857/master.m3u8
! audioconvert ! audioresample ! queue ! autoaudiosink

You should just use playbin instead of decodebin here, since it will
handle all this for you:

gst-launch-1.0 playbin
uri=https://radiodeejay-lh.akamaihd.net/i/RadioDeejay_Live_1@189857/master.m3u8

You can set the "audio-sink" property to a GstBin that does
`audioconvert ! audioresample ! vorbisenc max-bitrate=64000 !
rtpvorbispay name=pay0 pt=97` and expost ghost pads for the sink and
source.

Basically you need to write C code to make this work with
gst-rtsp-server, you can't do it from the command-line.

Cheers,
Nirbheek


On Tue, Mar 29, 2022 at 4:12 PM Alessio Carello
<alessio.carello at powersoft.com> wrote:
>
> Hi Nirbheek,
> Thank you for your reply, i appreciate you.
> I've the same issue with 1.20.1, the following pipeline is the right one (i missed audioreample plugin in the first message)
>
> ./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 )"
>
> I'm attaching the logs (level 2)
>
> Thank you,
>
>
> Alessio Carello
> SOFTWARE ENGINEERING SPECIALIST
>
> Powersoft S.p.A.
> Via E. Conti, 5 - Scandicci (Fi) 50018 - Italy
> OFFICE:    +39 055 7350230
>
>
>
>
>
>
> ________________________________
> Da: Nirbheek Chauhan <nirbheek.chauhan at gmail.com>
> Inviato: lunedì 28 marzo 2022 17:50
> A: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
> Cc: Alessio Carello <alessio.carello at powersoft.com>
> Oggetto: Re: issue when streaming m3u8 source (multivariant playlist playlist)
>
> On Mon, Mar 28, 2022 at 2:45 PM Alessio Carello via gstreamer-devel
> <gstreamer-devel at lists.freedesktop.org> wrote:
> > tested with gstreamer 1.14.5 and 1.16.2.
> >
>
> The first thing you should do is to try gstreamer 1.20.1. The versions
> you are testing are very old.
>
> Cheers,
> Nirbheek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220404/852a8ea7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PS_553e4174-d089-4113-aa68-7863aa6108ea.png
Type: image/png
Size: 1089 bytes
Desc: PS_553e4174-d089-4113-aa68-7863aa6108ea.png
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220404/852a8ea7/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FB_c651e92c-f558-4470-9dc8-0cde2dc49cf4.png
Type: image/png
Size: 1028 bytes
Desc: FB_c651e92c-f558-4470-9dc8-0cde2dc49cf4.png
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220404/852a8ea7/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Teams_6088ac53-fdc7-460a-97b3-533e03f1ad3d.png
Type: image/png
Size: 574 bytes
Desc: Teams_6088ac53-fdc7-460a-97b3-533e03f1ad3d.png
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220404/852a8ea7/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IN_2180daad-e9b1-4c84-9ac3-d130a49ed1c3.png
Type: image/png
Size: 1010 bytes
Desc: IN_2180daad-e9b1-4c84-9ac3-d130a49ed1c3.png
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220404/852a8ea7/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: YT_c74db1a3-a814-4e66-b04f-15ff9bd7940d.png
Type: image/png
Size: 1013 bytes
Desc: YT_c74db1a3-a814-4e66-b04f-15ff9bd7940d.png
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220404/852a8ea7/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IG_b8aafa87-2c84-4406-9c9e-91da1b7684d0.png
Type: image/png
Size: 1178 bytes
Desc: IG_b8aafa87-2c84-4406-9c9e-91da1b7684d0.png
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220404/852a8ea7/attachment-0011.png>


More information about the gstreamer-devel mailing list