#1150433 ffmpeg fails to download hls stream

Package:
ffmpeg
Source:
ffmpeg
Description:
Tools for transcoding, streaming and playing of multimedia files
Submitter:
Roderich Schupp
Date:
2026-10-20 20:25:01 UTC
Severity:
normal
Tags:
#1150433#5
Date:
2026-10-09 16:45:49 UTC
From:
To:
The problem shows with several items from the ARTE (https://arte.tv/de)
mediathek,
example web page (I chose a very short clip)
https://www.arte.tv/de/videos/135413-000-A/das-raetsel-vom-04-10-2026-spielen-
sie-mit/

The master stream is
https://manifest-
arte.akamaized.net/api/manifest/v1/Generate/87838541-0c5e-45e0-9c24-d596a0bdea51/de/XQ+KS+CHEV1/135413-000-A.m3u8

Try to download the clip's (german) audio stream:

$ ffmpeg -i  https://arte-
cmafhls.akamaized.net/am/cmaf/135000/135400/135413-000-A/202610021782BBD7570B91283DB734361FE86CE9AE/medias/135413-000-A_aud_VA-
ALL_2_43597289_8091428_20261002174735.m3u8 -c copy foo.mp4
ffmpeg version 9.0.2-3 Copyright (c) 2000-2026 the FFmpeg developers
  built with gcc 16 (Debian 16.2.0-3)
  configuration: --prefix=/usr --extra-version=3 --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
--arch=amd64 --enable-gpl --disable-stripping --disable-pocketsphinx --disable-
libcaca --disable-libmfx --enable-gnutls --enable-libaom --enable-libass
--enable-libbs2b --enable-libcdio --enable-libcodec2 --enable-libdav1d
--enable-libflite --enable-libfontconfig --enable-libfreetype --enable-
libfribidi --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-
libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-
openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl
--enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint
--enable-frei0r --enable-ladspa --enable-libbluray --enable-libdvdnav --enable-
libdvdread --enable-libjack --enable-libjxl --enable-libpulse --enable-
librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1
--enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2
--enable-libplacebo --enable-librav1e --enable-librsvg --enable-shared
  libavutil      61.  1.102 / 61.  1.102
  libavcodec     63.  1.102 / 63.  1.102
  libavformat    63.  1.102 / 63.  1.102
  libavdevice    63.  1.102 / 63.  1.102
  libavfilter    12.  1.102 / 12.  1.102
  libswscale     10.  1.102 / 10.  1.102
  libswresample   7.  1.102 /  7.  1.102
mime type is not rfc8216 compliant
[in#0 @ 0x5634f7a14a80] Opening 'https://arte-
cmafhls.akamaized.net/am/cmaf/135000/135400/135413-000-A/202610021782BBD7570B91283DB734361FE86CE9AE/medias/135413-000-A_aud_VA-
ALL_2_43597289_8091428_20261002174735.mp4' for reading
    Last message repeated 1 times
Input #0, hls, from 'https://arte-
cmafhls.akamaized.net/am/cmaf/135000/135400/135413-000-A/202610021782BBD7570B91283DB734361FE86CE9AE/medias/135413-000-A_aud_VA-
ALL_2_43597289_8091428_20261002174735.m3u8':
  Duration: 00:01:21.13, start: 0.000000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
  Stream #0:0[0x0](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 128 kb/s (default)
    Metadata:
      variant_bitrate : 0
      handler_name    : SoundHandler
      compatible_brands: iso5iso6mp41
      major_brand     : iso5
      minor_version   : 512
      encoder         : Lavf59.5.100
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Output #0, mp4, to 'foo.mp4':
  Metadata:
    encoder         : Lavf63.1.102
  Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 128 kb/s (default)
    Metadata:
      variant_bitrate : 0
      handler_name    : SoundHandler
      compatible_brands: iso5iso6mp41
      major_brand     : iso5
      minor_version   : 512
      encoder         : Lavf59.5.100
Press [q] to stop, [?] for help
[out#0/mp4 @ 0x5634f7d73e80] video:0KiB audio:94KiB subtitle:0KiB other
streams:0KiB global headers:0KiB muxing overhead: 1.917726%
size=      96KiB time=00:00:05.99 bitrate= 131.1kbits/s speed=16.7x
elapsed=0:00:00.35

The orginal clip is 1:20 long, the output foo.mp4 only 6 seconds (probably just
the first segment).

It's not just the audio stream, the HD video stream
https://arte-
cmafhls.akamaized.net/am/cmaf/135000/135400/135413-000-A/202610021782BBD7570B91283DB734361FE86CE9AE/medias/135413-000-A_v1080_crf_h264.m3u8
shows the same problem.

#1150433#10
Date:
2026-10-09 17:02:47 UTC
From:
To:
https://arte-cmafhls.akamaized.net/am/cmaf/135000/135400/135413-000-A/202610021782BBD7570B91283DB734361FE86CE9AE/medias/135413-000-A_aud_VA-ALL_2_43597289_8091428_20261002174735.m3u8
-c copy foo.mp4

If I download the complete m3u8 stream file and audio files with

curl -Lv --remote-name-all
https://arte-cmafhls.akamaized.net/am/cmaf/135000/135400/135413-000-A/202610021782BBD7570B91283DB734361FE86CE9AE/medias/135413-000-A_aud_VA-ALL_2_43597289_8091428_20261002174735.{m3u8,mp4}

and start a local HTTP server that can serve byte ranges with "python -m
RangeHTTPServer" in another terminal and then try

ffmpeg -i
http://localhost:8000/135413-000-A_aud_VA-ALL_2_43597289_8091428_20261002174735.m3u8
-c copy foo.mp4
ffmpeg version 9.0.2-3 Copyright (c) 2000-2026 the FFmpeg developers
  built with gcc 16 (Debian 16.2.0-3)
  configuration: --prefix=/usr --extra-version=3 --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
--arch=amd64 --enable-gpl --disable-stripping --disable-pocketsphinx
--disable-libcaca --disable-libmfx --enable-gnutls --enable-libaom
--enable-libass --enable-libbs2b --enable-libcdio --enable-libcodec2
--enable-libdav1d --enable-libflite --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
--enable-libharfbuzz --enable-libmp3lame --enable-libmysofa
--enable-libopenjpeg --enable-libopenmpt --enable-libopus
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
--enable-openal --enable-opencl --enable-opengl --disable-sndio
--enable-libvpl --enable-libdc1394 --enable-libdrm --enable-libiec61883
--enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray
--enable-libdvdnav --enable-libdvdread --enable-libjack --enable-libjxl
--enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt
--enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq
--enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo
--enable-librav1e --enable-librsvg --enable-shared
  libavutil      61.  1.102 / 61.  1.102
  libavcodec     63.  1.102 / 63.  1.102
  libavformat    63.  1.102 / 63.  1.102
  libavdevice    63.  1.102 / 63.  1.102
  libavfilter    12.  1.102 / 12.  1.102
  libswscale     10.  1.102 / 10.  1.102
  libswresample   7.  1.102 /  7.  1.102
[in#0 @ 0x557c8e015a80] Opening '
http://localhost:8000/135413-000-A_aud_VA-ALL_2_43597289_8091428_20261002174735.mp4'
for reading
    Last message repeated 1 times
Input #0, hls, from '
http://localhost:8000/135413-000-A_aud_VA-ALL_2_43597289_8091428_20261002174735.m3u8
':
  Duration: 00:01:21.13, start: 0.000000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
  Stream #0:0[0x0](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 128 kb/s (default)
    Metadata:
      variant_bitrate : 0
      handler_name    : SoundHandler
      compatible_brands: iso5iso6mp41
      major_brand     : iso5
      minor_version   : 512
      encoder         : Lavf59.5.100
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Output #0, mp4, to 'foo.mp4':
  Metadata:
    encoder         : Lavf63.1.102
  Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 128 kb/s (default)
    Metadata:
      variant_bitrate : 0
      handler_name    : SoundHandler
      compatible_brands: iso5iso6mp41
      major_brand     : iso5
      minor_version   : 512
      encoder         : Lavf59.5.100
Press [q] to stop, [?] for help
[out#0/mp4 @ 0x557c8e0534c0] video:0KiB audio:94KiB subtitle:0KiB other
streams:0KiB global headers:0KiB muxing overhead: 1.917726%
size=      96KiB time=00:00:05.99 bitrate= 131.1kbits/s speed=3.69e+03x
elapsed=0:00:00.00

Again, foo.mp4 is just 6 seconds long, so it's not some strange behaviour
of ARTE's CDN servers.

#1150433#15
Date:
2026-10-09 17:13:59 UTC
From:
To:
So this looks like an upstream issue. Please report it at
https://code.ffmpeg.org/FFmpeg/FFmpeg/issues

Cheers.

#1150433#20
Date:
2026-10-10 17:04:39 UTC
From:
To:
Filed upstream as https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/25000
#1150433#27
Date:
2026-10-12 14:45:16 UTC
From:
To:
and the fix has been backported to branch release/9.0 with PR (merged)
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25016

I apply commit https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25016/commits
to Debian ffmpeg 9.0.2-3 and it seems to fix my problem.

Cheers, Roderich

#1150433#32
Date:
2026-10-20 20:07:56 UTC
From:
To:
Hello,

Bug #1150433 in ffmpeg reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/multimedia-team/ffmpeg/-/commit/987c610806cfe5d4d13debf097557f4de5c48839
------------------------------------------------------------------------
Apply upstream patch to fix download of HLS streams

Closes: #1150433
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1150433

#1150433#39
Date:
2026-10-20 20:24:07 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
ffmpeg, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1150433@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastian Ramacher <sramacher@debian.org> (supplier of updated ffmpeg package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 20 Oct 2026 21:37:42 +0200
Source: ffmpeg
Architecture: source
Version: 7:9.0.2-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: Sebastian Ramacher <sramacher@debian.org>
Closes: 1150433
Changes:
 ffmpeg (7:9.0.2-4) unstable; urgency=medium
 .
   * debian/: Remove --enable-opengl which has no effect
   * debian/patches: Apply upstream patch to fix download of HLS streams
     (Closes: #1150433)
Checksums-Sha1:
 9a8991750ff84bd9611e1520710565baaaee5ffb 5822 ffmpeg_9.0.2-4.dsc
 15a4feaec442a22170624251396e4e41db300ef2 65448 ffmpeg_9.0.2-4.debian.tar.xz
 92c5d5cb9f5ae292e688ea707951bed256b216a7 33645 ffmpeg_9.0.2-4_amd64.buildinfo
Checksums-Sha256:
 a4edad3ae5a213a5ae93555d2ab85cc0f0e443a3494d57337f6d9921c8cbb45f 5822 ffmpeg_9.0.2-4.dsc
 4434dc7ebb4295d7a8275cde5f03adc0d0d522196bc1cad26f6f9f135b9dacb0 65448 ffmpeg_9.0.2-4.debian.tar.xz
 2bcd344e68f1975ab618064e01c799358e97ca11f441adce2b4955681e4ef98f 33645 ffmpeg_9.0.2-4_amd64.buildinfo
Files:
 039f2c7cee3920e17f261ef336c0240e 5822 video optional ffmpeg_9.0.2-4.dsc
 14213b4d384f5ecfb3ffec6af9bd3632 65448 video optional ffmpeg_9.0.2-4.debian.tar.xz
 3df2484016e16e1558616ba7c6e73b3f 33645 video optional ffmpeg_9.0.2-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

wr0EARYKAG8FgmrXyhQJECGTazZgD82JRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z
LnNlcXVvaWEtcGdwLm9yZxPbiFuS7c6kJOecsg+1wp03PdhwXGN2hxqd1hXCn88Q
FiEEQmJ+hB2ZZ9qD4fqQIZNrNmAPzYkAANi4AQC0aBYU/XueA04k1y/rkL+9jWAY
YgJOaqti+mTVapWT3gD/fgWZsqFGX7VAn4lSslcSfcCrGv8q1RmNM16YBYtlagM=
=9juf
-----END PGP SIGNATURE-----