Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with "-o -" you get a 403 forbidden error #2696

Closed
6 tasks done
devooc opened this issue Feb 8, 2022 · 17 comments
Closed
6 tasks done

with "-o -" you get a 403 forbidden error #2696

devooc opened this issue Feb 8, 2022 · 17 comments
Labels
geo-blocked Content is geo-blocked site-bug Issue with a specific website

Comments

@devooc
Copy link

devooc commented Feb 8, 2022

Checklist

Region

France

Example URLs

https://www.france.tv/sport/les-jeux-olympiques/3103093-big-air-f-le-podium-de-tess-ledeux-medaillee-d-argent-a-20-ans.html

Description

With some urls I can't use the "-o -" option to pipe to ffmpeg.

It starts and then there is this error :

[https @ 0x96f440] HTTP error 403 Forbidden
https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzQyNzN+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NTlkY2EzMDBjMTQ2ZDZhZDc3ZTU4ZmViNTIwYTc0YWQ1MjhlOTEyMWY5ZTQ1NThiNGNmMzgwMTExNDNkMDk1ZA==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-audio_fre=96000.m3u8: Server returned 403 Forbidden (access denied)

ERROR: ffmpeg exited with code 1

As end-user it is surprinsing to have different results for the same url by only changing the output.
The code for the "-o -" option does not work as well as for the file output.

!!! NB : I use the site without account. So I can't play the videos in my browser. But it works with yt-dlp ! The question is why not with "-o -" !!!

It is probably the same with all videos here :
https://www.france.tv/sport/

Verbose log

bash-5.1$ ./yt-dlp https://www.france.tv/sport/les-jeux-olympiques/3103093-big-air-f-le-podium-de-tess-ledeux-medaillee-d-argent-a-20-ans.html -o - -vU
[debug] Command-line config: ['https://www.france.tv/sport/les-jeux-olympiques/3103093-big-air-f-le-podium-de-tess-ledeux-medaillee-d-argent-a-20-ans.html', '-o', '-', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.02.04 [c1653e9ef] (zip)
[debug] Python version 3.9.10 (CPython 64bit) - Linux-5.16.3-x86_64-Intel-R-_Core-TM-_i3-6100H_CPU_@_2.70GHz-with-glibc2.33
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1
[debug] Optional libraries: sqlite
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [FranceTVSite] Extracting URL: https://www.france.tv/sport/les-jeux-olympiques/3103093-big-air-f-le-podium-de-tess-ledeux-medaillee-d-argent-a-20-ans.html
[FranceTVSite] 3103093-big-air-f-le-podium-de-tess-ledeux-medaillee-d-argent-a-20-ans: Downloading webpage
[debug] [FranceTV] Extracting URL: francetv:908f0d00-fce6-4895-9d33-4a44ccaf4fd3
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading desktop video JSON
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading mobile video JSON
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading signed hls manifest URL
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading m3u8 information
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading signed hls manifest URL
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading 1 format(s): hls-2217-1+hls-audio-aacl-96-Audio_Français-1
[debug] Invoking downloader on "https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU0Nzh+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NzllMDE5YWQyMWEwZmIxN2UzMTA3ZTljNTZhYTZiNzc2ZjMxYTcxMTc4N2I2YzA2N2UxN2E3OWE4YTA5YjI5Yw==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000.m3u8", "https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU0Nzh+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NzllMDE5YWQyMWEwZmIxN2UzMTA3ZTljNTZhYTZiNzc2ZjMxYTcxMTc4N2I2YzA2N2UxN2E3OWE4YTA5YjI5Yw==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-audio_fre=96000.m3u8"
[download] Destination: -
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.17 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU0Nzh+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NzllMDE5YWQyMWEwZmIxN2UzMTA3ZTljNTZhYTZiNzc2ZjMxYTcxMTc4N2I2YzA2N2UxN2E3OWE4YTA5YjI5Yw==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000.m3u8 -i https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU0Nzh+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NzllMDE5YWQyMWEwZmIxN2UzMTA3ZTljNTZhYTZiNzc2ZjMxYTcxMTc4N2I2YzA2N2UxN2E3OWE4YTA5YjI5Yw==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-audio_fre=96000.m3u8 -c copy -map 0:0 -map 1:0 -f mpegts -
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11.2.0 (GCC)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-4.4.1 --mandir=/usr/man --enable-gpl --enable-version3 --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libass --enable-libdav1d --enable-libdc1394 --enable-libdrm --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librsvg --enable-libsmbclient --enable-libssh --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-postproc --enable-runtime-cpudetect --enable-sdl2 --enable-vaapi --enable-vdpau --enable-pthreads --enable-bzlib --enable-zlib --enable-shared --enable-static --disable-debug --enable-libbluray --enable-frei0r --enable-openal --enable-opencl --enable-libpulse --enable-libvidstab --enable-libwebp --enable-gnutls --arch=x86_64 --enable-pic --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include -I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include/SDL2 -DRUNTIME_CPUDETECT' --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -lpthread -ldl -lssl -lcrypto -lz -lusb -ldrm' --pkg-config-flags=--static
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[tcp @ 0x1e69fc0] Starting connection attempt to 23.77.197.169 port 443
[tcp @ 0x1e69fc0] Successfully connected to 23.77.197.169 port 443
[hls @ 0x1e65900] Skip ('#EXT-X-VERSION:5')
[hls @ 0x1e65900] Skip ('## Created with Unified Streaming Platform(version=1.8.3)')
[hls @ 0x1e65900] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x1e65900] Skip ('#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z')
[hls @ 0x1e65900] HLS request for url 'https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU0Nzh+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NzllMDE5YWQyMWEwZmIxN2UzMTA3ZTljNTZhYTZiNzc2ZjMxYTcxMTc4N2I2YzA2N2UxN2E3OWE4YTA5YjI5Yw==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000-1.ts', offset 0, playlist 0
[hls @ 0x1e65900] Opening 'https://cloudingest.ftven.fr/keys/bfd3.key' for reading
[tcp @ 0x1e78600] Starting connection attempt to 23.77.197.169 port 443
[tcp @ 0x1e78600] Successfully connected to 23.77.197.169 port 443
[AVIOContext @ 0x1e84280] Statistics: 16 bytes read, 0 seeks
[hls @ 0x1e65900] Opening 'crypto+https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU0Nzh+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NzllMDE5YWQyMWEwZmIxN2UzMTA3ZTljNTZhYTZiNzc2ZjMxYTcxMTc4N2I2YzA2N2UxN2E3OWE4YTA5YjI5Yw==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000-1.ts' for reading
[tcp @ 0x1e7b4c0] Starting connection attempt to 23.77.197.169 port 443
[tcp @ 0x1e7b4c0] Successfully connected to 23.77.197.169 port 443
[h264 @ 0x2253d80] Reinit context to 1280x720, pix_fmt: yuv420p
[hls @ 0x1e65900] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
Input #0, hls, from 'https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU0Nzh+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NzllMDE5YWQyMWEwZmIxN2UzMTA3ZTljNTZhYTZiNzc2ZjMxYTcxMTc4N2I2YzA2N2UxN2E3OWE4YTA5YjI5Yw==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000.m3u8':
  Duration: 00:00:33.88, start: 10.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #0:0: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
[tcp @ 0x2250100] Starting connection attempt to 23.77.197.169 port 443
[tcp @ 0x2250100] Successfully connected to 23.77.197.169 port 443
[https @ 0x29a0dc0] HTTP error 403 Forbidden
https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU0Nzh+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NzllMDE5YWQyMWEwZmIxN2UzMTA3ZTljNTZhYTZiNzc2ZjMxYTcxMTc4N2I2YzA2N2UxN2E3OWE4YTA5YjI5Yw==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-audio_fre=96000.m3u8: Server returned 403 Forbidden (access denied)
[AVIOContext @ 0x24874c0] Statistics: 1280544 bytes read, 0 seeks
[AVIOContext @ 0x1e7a580] Statistics: 799 bytes read, 0 seeks


ERROR: ffmpeg exited with code 1
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/__main__.py", line 19, in <module>
    yt_dlp.main()
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/__init__.py", line 857, in main
    _real_main(argv)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/__init__.py", line 847, in _real_main
    retcode = ydl.download(all_urls)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 3212, in download
    self.__download_wrapper(self.extract_info)(
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 3185, in wrapper
    res = func(*args, **kwargs)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 1372, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 1381, in wrapper
    return func(self, *args, **kwargs)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 1465, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 1536, in process_ie_result
    return self.extract_info(
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 1372, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 1381, in wrapper
    return func(self, *args, **kwargs)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 1465, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 1517, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 2607, in process_video_result
    self.process_info(new_info)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 3035, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 2801, in dl
    return fd.download(name, new_info, subtitle)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/downloader/common.py", line 440, in download
    ret = self.real_download(filename, info_dict)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/downloader/external.py", line 68, in real_download
    self.report_error('%s exited with code %d' % (
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/downloader/common.py", line 177, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 930, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/LinuxData/Softs/Youtube/Yt/./yt-dlp/yt_dlp/YoutubeDL.py", line 860, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())
@devooc devooc added site-enhancement Feature request for some website triage Untriaged issue labels Feb 8, 2022
@devooc
Copy link
Author

devooc commented Feb 8, 2022

The same output when it works.

bash-5.1$ ./yt-dlp https://www.france.tv/sport/les-jeux-olympiques/3103093-big-air-f-le-podium-de-tess-ledeux-medaillee-d-argent-a-20-ans.html  -vU
[debug] Command-line config: ['https://www.france.tv/sport/les-jeux-olympiques/3103093-big-air-f-le-podium-de-tess-ledeux-medaillee-d-argent-a-20-ans.html', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.02.04 [c1653e9ef] (zip)
[debug] Python version 3.9.10 (CPython 64bit) - Linux-5.16.3-x86_64-Intel-R-_Core-TM-_i3-6100H_CPU_@_2.70GHz-with-glibc2.33
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1
[debug] Optional libraries: sqlite
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [FranceTVSite] Extracting URL: https://www.france.tv/sport/les-jeux-olympiques/3103093-big-air-f-le-podium-de-tess-ledeux-medaillee-d-argent-a-20-ans.html
[FranceTVSite] 3103093-big-air-f-le-podium-de-tess-ledeux-medaillee-d-argent-a-20-ans: Downloading webpage
[debug] [FranceTV] Extracting URL: francetv:908f0d00-fce6-4895-9d33-4a44ccaf4fd3
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading desktop video JSON
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading mobile video JSON
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading signed hls manifest URL
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading m3u8 information
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading signed hls manifest URL
[FranceTV] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 908f0d00-fce6-4895-9d33-4a44ccaf4fd3: Downloading 1 format(s): hls-2217-1+hls-audio-aacl-96-Audio_Français-1
[debug] Invoking downloader on "https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU2NjZ+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NGY4OTAzMzY5NGMzZWRmZjA0ZjkzZTY1M2JkNWNjN2U3NTMzZmMzODA5ZTAzYWFkZjk4OGFlMjY5YmJmYjNjNg==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000.m3u8"
[hlsnative] Downloading m3u8 manifest
WARNING: The stream has AES-128 encryption and pycryptodomex is not available; extraction will be delegated to ffmpeg
[download] Destination: Big Air (F)  - le podium de Tess Ledeux, médaillée d'argent à 20 ans [908f0d00-fce6-4895-9d33-4a44ccaf4fd3].fhls-2217-1.mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU2NjZ+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NGY4OTAzMzY5NGMzZWRmZjA0ZjkzZTY1M2JkNWNjN2U3NTMzZmMzODA5ZTAzYWFkZjk4OGFlMjY5YmJmYjNjNg==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000.m3u8 -c copy -f mp4 'file:Big Air (F)  - le podium de Tess Ledeux, médaillée d'"'"'argent à 20 ans [908f0d00-fce6-4895-9d33-4a44ccaf4fd3].fhls-2217-1.mp4.part'
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11.2.0 (GCC)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-4.4.1 --mandir=/usr/man --enable-gpl --enable-version3 --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libass --enable-libdav1d --enable-libdc1394 --enable-libdrm --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librsvg --enable-libsmbclient --enable-libssh --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-postproc --enable-runtime-cpudetect --enable-sdl2 --enable-vaapi --enable-vdpau --enable-pthreads --enable-bzlib --enable-zlib --enable-shared --enable-static --disable-debug --enable-libbluray --enable-frei0r --enable-openal --enable-opencl --enable-libpulse --enable-libvidstab --enable-libwebp --enable-gnutls --arch=x86_64 --enable-pic --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include -I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include/SDL2 -DRUNTIME_CPUDETECT' --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -lpthread -ldl -lssl -lcrypto -lz -lusb -ldrm' --pkg-config-flags=--static
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[tcp @ 0x987e80] Starting connection attempt to 23.77.197.149 port 443
[tcp @ 0x987e80] Successfully connected to 23.77.197.149 port 443
[hls @ 0x983780] Skip ('#EXT-X-VERSION:5')
[hls @ 0x983780] Skip ('## Created with Unified Streaming Platform(version=1.8.3)')
[hls @ 0x983780] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x983780] Skip ('#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z')
[hls @ 0x983780] HLS request for url 'https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU2NjZ+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NGY4OTAzMzY5NGMzZWRmZjA0ZjkzZTY1M2JkNWNjN2U3NTMzZmMzODA5ZTAzYWFkZjk4OGFlMjY5YmJmYjNjNg==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000-1.ts', offset 0, playlist 0
[hls @ 0x983780] Opening 'https://cloudingest.ftven.fr/keys/bfd3.key' for reading
[tcp @ 0x9964c0] Starting connection attempt to 23.77.197.149 port 443
[tcp @ 0x9964c0] Successfully connected to 23.77.197.149 port 443
[AVIOContext @ 0x9a2140] Statistics: 16 bytes read, 0 seeks
[hls @ 0x983780] Opening 'crypto+https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU2NjZ+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NGY4OTAzMzY5NGMzZWRmZjA0ZjkzZTY1M2JkNWNjN2U3NTMzZmMzODA5ZTAzYWFkZjk4OGFlMjY5YmJmYjNjNg==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000-1.ts' for reading
[tcp @ 0x999380] Starting connection attempt to 23.77.197.149 port 443
[tcp @ 0x999380] Successfully connected to 23.77.197.149 port 443
[h264 @ 0xd72140] Reinit context to 1280x720, pix_fmt: yuv420p
[hls @ 0x983780] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
Input #0, hls, from 'https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU2NjZ+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NGY4OTAzMzY5NGMzZWRmZjA0ZjkzZTY1M2JkNWNjN2U3NTMzZmMzODA5ZTAzYWFkZjk4OGFlMjY5YmJmYjNjNg==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000.m3u8':
  Duration: 00:00:33.88, start: 10.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #0:0: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
Output #0, mp4, to 'file:Big Air (F)  - le podium de Tess Ledeux, médaillée d'argent à 20 ans [908f0d00-fce6-4895-9d33-4a44ccaf4fd3].fhls-2217-1.mp4.part':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[AVIOContext @ 0x993780] Statistics: 1907448 bytes read, 0 seeksate=1777.3kbits/s speed=13.3x    
[hls @ 0x983780] HLS request for url 'https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU2NjZ+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NGY4OTAzMzY5NGMzZWRmZjA0ZjkzZTY1M2JkNWNjN2U3NTMzZmMzODA5ZTAzYWFkZjk4OGFlMjY5YmJmYjNjNg==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000-2.ts', offset 0, playlist 0
[hls @ 0x983780] Opening 'crypto+https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU2NjZ+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NGY4OTAzMzY5NGMzZWRmZjA0ZjkzZTY1M2JkNWNjN2U3NTMzZmMzODA5ZTAzYWFkZjk4OGFlMjY5YmJmYjNjNg==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000-2.ts' for reading
[tcp @ 0x993a40] Starting connection attempt to 23.77.197.149 port 443
[tcp @ 0x993a40] Successfully connected to 23.77.197.149 port 443
[AVIOContext @ 0xd85540] Statistics: 2184184 bytes read, 0 seeksate=1896.7kbits/s speed=4.83x    
[hls @ 0x983780] HLS request for url 'https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU2NjZ+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NGY4OTAzMzY5NGMzZWRmZjA0ZjkzZTY1M2JkNWNjN2U3NTMzZmMzODA5ZTAzYWFkZjk4OGFlMjY5YmJmYjNjNg==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000-3.ts', offset 0, playlist 0
[hls @ 0x983780] Opening 'crypto+https://cloudingest.ftven.fr/380e682b62026/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA.ism/ZXhwPTE2NDQzNzU2NjZ+YWNsPSUyZjM4MGU2ODJiNjIwMjYlMmY5MDhmMGQwMC1mY2U2LTQ4OTUtOWQzMy00YTQ0Y2NhZjRmZDNfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NGY4OTAzMzY5NGMzZWRmZjA0ZjkzZTY1M2JkNWNjN2U3NTMzZmMzODA5ZTAzYWFkZjk4OGFlMjY5YmJmYjNjNg==/908f0d00-fce6-4895-9d33-4a44ccaf4fd3_france-domtom_TA-video=2000000-3.ts' for reading

@pukkandan pukkandan added site-bug Issue with a specific website and removed site-enhancement Feature request for some website labels Feb 9, 2022
@devooc
Copy link
Author

devooc commented Feb 10, 2022

I don't know if it can help but this url works :
./yt-dlp https://www.france.tv/beijing-h24/direct.html -o -
The difference is that it is a live stream. The non-working urls are replay videos.
I hope it helps.

@pukkandan

This comment was marked as resolved.

@pukkandan pukkandan added geo-blocked Content is geo-blocked and removed triage Untriaged issue labels Feb 11, 2022
@devooc

This comment was marked as resolved.

@elyse0
Copy link
Contributor

elyse0 commented Apr 23, 2022

When providing a specific format, it works as expected. The error only occurs when we try to merge multiple formats

yt-dlp -vU -f 'hls-2218' -o - 'https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html'
[debug] Command-line config: ['-vU', '-f', 'hls-2218', '-o', '-', 'https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.04.08 [7884ade65]
[debug] Lazy loading extractors is disabled
[debug] Python version 3.10.4 (CPython 64bit) - Linux-5.15.0-25-generic-x86_64-with-glibc2.35
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1
[debug] Optional libraries: Cryptodome, brotli, certifi, mutagen, secretstorage, sqlite3, websockets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [FranceTVSite] Extracting URL: https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html
[FranceTVSite] 1980815-seule-au-monde: Downloading webpage
[debug] [FranceTV] Extracting URL: francetv:833b322d-321e-4201-a43d-c57f6e763eb6
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading desktop video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading mobile video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed dash manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading MPD manifest
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed hls manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading 1 format(s): hls-2218
[debug] Invoking downloader on "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA3NzUxOTJ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9NDQzZjBmNGRjNjAzZGE5ZGQ1ZGI3ZTM1YzhkYjU4ZjRlNTcyNzZlNWRlNGNiM2M1MGE3M2ZmMTYwY2FmMTJhNQ==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 163
[download] Destination: -
[debug] File locking is not supported on this platform. Proceeding without locking
[download]  11.9% of ~310.59MiB at  6.73MiB/s ETA 00:31 (frag 19/163)

@elyse0
Copy link
Contributor

elyse0 commented Apr 24, 2022

I've been looking into this and I think I've found a hint

I enabled debug mode for ffmpeg to check the http requests that it was sending, and I found that after some requests (3 in this case), it stops sending the appropriate User-Agent.

I've tested using ffmpeg with and without the user-agent, and it definitely affects the response.

@pukkandan Do you think it's a ffmpeg bug? Or any ideas on how to fix it?

[debug] Command-line config: ['-vU', '-o', '-', 'https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8 (No ANSI), err utf-8 (No ANSI), pref UTF-8
[debug] yt-dlp version 2022.04.08 [7884ade65] (source)
[debug] Lazy loading extractors is disabled
[debug] Plugins: ['SamplePluginIE', 'SamplePluginPP']
[debug] Git HEAD: a1ddaa899
[debug] Python version 3.8.10 (CPython 64bit) - Linux-5.4.0-109-generic-x86_64-with-glibc2.29
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, brotli, certifi, mutagen, sqlite3, websockets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [FranceTVSite] Extracting URL: https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html
[FranceTVSite] 1980815-seule-au-monde: Downloading webpage
[debug] [FranceTV] Extracting URL: francetv:833b322d-321e-4201-a43d-c57f6e763eb6
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading desktop video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading mobile video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed dash manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading MPD manifest
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed hls manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading 1 format(s): hls-2218+dash-audio_fre=96000
[debug] Invoking downloader on "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8", "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650780573~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=de02b5ab0eed8f724b7054f62da096b560c7f44adc6643c2bc4480ea408e88c2"
[download] Destination: -
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -v debug -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.70 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8 -i 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650780573~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=de02b5ab0eed8f724b7054f62da096b560c7f44adc6643c2bc4480ea408e88c2' -c copy -map 0:0 -map 1:0 -f mpegts -
https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8", "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650780573~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=de02b5ab0eed8f724b7054f62da096b560c7f44adc6643c2bc4480ea408e88c2
Moreee args ['ffmpeg', '-y', '-loglevel', 'verbose', '-v', 'debug', '-headers', 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.70 Safari/537.36\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nSec-Fetch-Mode: navigate\r\n', '-i', 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8', '-i', 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650780573~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=de02b5ab0eed8f724b7054f62da096b560c7f44adc6643c2bc4480ea408e88c2', '-c', 'copy', '-map', '0:0', '-map', '1:0', '-f', 'mpegts', '-']
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Successfully parsed a group of options.
Parsing a group of options: input url https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8.
Successfully parsed a group of options.
Opening an input file: https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8.
[NULL @ 0x55ae57b3f940] Opening 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8' for reading
[https @ 0x55ae57b40600] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x55ae57b42d40] Original list of addresses:
[tcp @ 0x55ae57b42d40] Address 96.17.206.8 port 443
[tcp @ 0x55ae57b42d40] Address 96.17.206.30 port 443
[tcp @ 0x55ae57b42d40] Address 96.17.206.25 port 443
[tcp @ 0x55ae57b42d40] Interleaved list of addresses:
[tcp @ 0x55ae57b42d40] Address 96.17.206.8 port 443
[tcp @ 0x55ae57b42d40] Address 96.17.206.30 port 443
[tcp @ 0x55ae57b42d40] Address 96.17.206.25 port 443
[tcp @ 0x55ae57b42d40] Starting connection attempt to 96.17.206.8 port 443
[tcp @ 0x55ae57b42d40] Successfully connected to 96.17.206.8 port 443
[https @ 0x55ae57b40600] request: GET /2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8 HTTP/1.1
Range: bytes=0-
Connection: close
Host: cloudingest.ftven.fr
Icy-MetaData: 1
+User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.70 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate


[hls @ 0x55ae57b3f940] Format hls probed with size=2048 and score=100
[hls @ 0x55ae57b3f940] Skip ('#EXT-X-VERSION:5')
[hls @ 0x55ae57b3f940] Skip ('## Created with Unified Streaming Platform(version=1.8.3)')
[hls @ 0x55ae57b3f940] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x55ae57b3f940] Skip ('#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z')
[hls @ 0x55ae57b3f940] HLS request for url 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000-1.ts', offset 0, playlist 0
[hls @ 0x55ae57b3f940] Opening 'https://cloudingest.ftven.fr/keys/bfd3.key' for reading
[tcp @ 0x55ae57e564c0] Original list of addresses:
[tcp @ 0x55ae57e564c0] Address 96.17.206.8 port 443
[tcp @ 0x55ae57e564c0] Address 96.17.206.30 port 443
[tcp @ 0x55ae57e564c0] Address 96.17.206.25 port 443
[tcp @ 0x55ae57e564c0] Interleaved list of addresses:
[tcp @ 0x55ae57e564c0] Address 96.17.206.8 port 443
[tcp @ 0x55ae57e564c0] Address 96.17.206.30 port 443
[tcp @ 0x55ae57e564c0] Address 96.17.206.25 port 443
[tcp @ 0x55ae57e564c0] Starting connection attempt to 96.17.206.8 port 443
[tcp @ 0x55ae57e564c0] Successfully connected to 96.17.206.8 port 443
[https @ 0x55ae57e540c0] request: GET /keys/bfd3.key HTTP/1.1
Connection: keep-alive
Host: cloudingest.ftven.fr
Icy-MetaData: 1
+User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.70 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate


[AVIOContext @ 0x55ae57e5d780] Statistics: 16 bytes read, 0 seeks
[hls @ 0x55ae57b3f940] Opening 'crypto+https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000-1.ts' for reading
[tcp @ 0x55ae57e24980] Original list of addresses:
[tcp @ 0x55ae57e24980] Address 96.17.206.8 port 443
[tcp @ 0x55ae57e24980] Address 96.17.206.30 port 443
[tcp @ 0x55ae57e24980] Address 96.17.206.25 port 443
[tcp @ 0x55ae57e24980] Interleaved list of addresses:
[tcp @ 0x55ae57e24980] Address 96.17.206.8 port 443
[tcp @ 0x55ae57e24980] Address 96.17.206.30 port 443
[tcp @ 0x55ae57e24980] Address 96.17.206.25 port 443
[tcp @ 0x55ae57e24980] Starting connection attempt to 96.17.206.8 port 443
[tcp @ 0x55ae57e24980] Successfully connected to 96.17.206.8 port 443
[https @ 0x55ae57e56480] request: GET /2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000-1.ts HTTP/1.1
Connection: keep-alive
Host: cloudingest.ftven.fr
Icy-MetaData: 1
+User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.70 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate


Format mpegts probed with size=2048 and score=50
[mpegts @ 0x55ae57e4ad80] stream=0 stream_type=1b pid=21 prog_reg_desc=
[hls @ 0x55ae57b3f940] Before avformat_find_stream_info() pos: 15553 bytes read:15553 seeks:0 nb_streams:1
[AVBSFContext @ 0x55ae57f73ac0] nal_unit_type: 9(AUD), nal_ref_idc: 0
[AVBSFContext @ 0x55ae57f73ac0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[AVBSFContext @ 0x55ae57f73ac0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[AVBSFContext @ 0x55ae57f73ac0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x55ae57f5ab40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x55ae57f5ab40] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55ae57f5ab40] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x55ae57f5ab40] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x55ae57f5ab40] Format yuv420p chosen by get_format().
[h264 @ 0x55ae57f5ab40] Reinit context to 1280x720, pix_fmt: yuv420p
[h264 @ 0x55ae57f5ab40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x55ae57f5ab40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x55ae57f5ab40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x55ae57f5ab40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x55ae57f5ab40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x55ae57f5ab40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x55ae57f5ab40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x55ae57f5ab40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x55ae57f5ab40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x55ae57f5ab40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x55ae57f5ab40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x55ae57f5ab40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[hls @ 0x55ae57b3f940] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
[hls @ 0x55ae57b3f940] Setting avg frame rate based on r frame rate
[hls @ 0x55ae57b3f940] After avformat_find_stream_info() pos: 15553 bytes read:15553 seeks:0 frames:127
Input #0, hls, from 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4MDE1NzZ+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGI1ZjBhZDkyNmZlMmEyZjQ0NGQzZDMxNDEzOWY2OGI2YzMxYjNiNTUyZTAyYjExMzVjMzYxZTUwMWI1MzBmNg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8':
  Duration: 00:21:40.52, start: 10.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0, 127, 1/90000: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, left), 1280x720 [SAR 1:1 DAR 16:9], 0/1, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
Successfully opened the file.
Parsing a group of options: input url https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650780573~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=de02b5ab0eed8f724b7054f62da096b560c7f44adc6643c2bc4480ea408e88c2.
Successfully parsed a group of options.
Opening an input file: https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650780573~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=de02b5ab0eed8f724b7054f62da096b560c7f44adc6643c2bc4480ea408e88c2.
[NULL @ 0x55ae57f73340] Opening 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650780573~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=de02b5ab0eed8f724b7054f62da096b560c7f44adc6643c2bc4480ea408e88c2' for reading
[https @ 0x55ae581a85c0] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x55ae57f52100] Original list of addresses:
[tcp @ 0x55ae57f52100] Address 96.17.206.8 port 443
[tcp @ 0x55ae57f52100] Address 96.17.206.30 port 443
[tcp @ 0x55ae57f52100] Address 96.17.206.25 port 443
[tcp @ 0x55ae57f52100] Interleaved list of addresses:
[tcp @ 0x55ae57f52100] Address 96.17.206.8 port 443
[tcp @ 0x55ae57f52100] Address 96.17.206.30 port 443
[tcp @ 0x55ae57f52100] Address 96.17.206.25 port 443
[tcp @ 0x55ae57f52100] Starting connection attempt to 96.17.206.8 port 443
[tcp @ 0x55ae57f52100] Successfully connected to 96.17.206.8 port 443
[https @ 0x55ae581a85c0] request: GET /2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650780573~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=de02b5ab0eed8f724b7054f62da096b560c7f44adc6643c2bc4480ea408e88c2 HTTP/1.1
-User-Agent: Lavf/58.29.100
Accept: */*
Range: bytes=0-
Connection: close
Host: cloudingest.ftven.fr
Icy-MetaData: 1


[https @ 0x55ae581a85c0] HTTP error 403 Forbidden
https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650780573~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=de02b5ab0eed8f724b7054f62da096b560c7f44adc6643c2bc4480ea408e88c2: Server returned 403 Forbidden (access denied)
[AVIOContext @ 0x55ae57f4fa80] Statistics: 1312112 bytes read, 0 seeks
[AVIOContext @ 0x55ae57b48740] Statistics: 15553 bytes read, 0 seeks


ERROR: ffmpeg exited with code 1
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/__main__.py", line 16, in <module>
    yt_dlp.main()
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/__init__.py", line 855, in main
    _real_main(argv)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/__init__.py", line 845, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 3237, in download
    self.__download_wrapper(self.extract_info)(
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 3210, in wrapper
    res = func(*args, **kwargs)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 1371, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 1380, in wrapper
    return func(self, *args, **kwargs)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 1464, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 1539, in process_ie_result
    return self.extract_info(
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 1371, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 1380, in wrapper
    return func(self, *args, **kwargs)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 1464, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 1520, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 2620, in process_video_result
    self.process_info(new_info)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 3058, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 2819, in dl
    return fd.download(name, new_info, subtitle)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/downloader/common.py", line 439, in download
    ret = self.real_download(filename, info_dict)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/downloader/external.py", line 64, in real_download
    self.report_error('%s exited with code %d' % (
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 930, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/home/amish/Documents/Programming/yt-dlp/yt_dlp/YoutubeDL.py", line 864, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())


Process finished with exit code 1

@pukkandan
Copy link
Member

Could you check if the issue can be reproduced with --compat-options no-direct-merge

@elyse0
Copy link
Contributor

elyse0 commented Apr 24, 2022

It can't be reproduced using --compat-options no-direct-merge

Now the download succeeds, but it fails when we try to merge video+audio. Since we're streaming to stdout, makes sense that it can't find the file

[debug] Command-line config: ['-vU', '-o', '-', '--compat-options', 'no-direct-merge', 'https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.04.08 [7884ade65]
[debug] Compatibility options: no-direct-merge
[debug] Python version 3.10.4 (CPython 64bit) - Linux-5.15.0-25-generic-x86_64-with-glibc2.35
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1
[debug] Optional libraries: brotli, certifi, Cryptodome, secretstorage, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [FranceTVSite] Extracting URL: https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html
[FranceTVSite] 1980815-seule-au-monde: Downloading webpage
[debug] [FranceTV] Extracting URL: francetv:833b322d-321e-4201-a43d-c57f6e763eb6
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading desktop video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading mobile video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed dash manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading MPD manifest
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed hls manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading 1 format(s): hls-2218+dash-audio_fre=96000
WARNING: You have requested downloading multiple formats to stdout but the formats are incompatible for simultaneous download. The formats will be streamed one after the other
[debug] Invoking downloader on "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA4Mzc4OTd+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9M2E1MWE1YTMwNDk4YjA5OTFkZjFkYzNkOTc2ODQ4NjdlOGQyNTBhNTZkYzIxNzU4N2JjNjFiNGZmNGZiYjNmMw==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 163
[download] Destination: -
[debug] File locking is not supported on this platform. Proceeding without locking
[download] 100% of 312.05MiB in 00:38
[debug] Invoking downloader on "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650816897~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=2e641bcda7e1e59bced4b26ae9a1fe75287e421d8c0f15e8b19233f6ef3d40a4"
[dashsegments] Total fragments: 652
[download] Destination: -
[download]   0.2% of ~438.70KiB at 13.62KiB/s ETA 00:30 (frag 1/652)ERROR: write to closed file
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1408, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1492, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1548, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 2648, in process_video_result
    self.process_info(new_info)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 3120, in process_info
    partial_success, real_download = self.dl(fname, new_info)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 2846, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/downloader/common.py", line 457, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/downloader/dash.py", line 56, in real_download
    return self.download_and_append_fragments_multiple(*args)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/downloader/fragment.py", line 387, in download_and_append_fragments_multiple
    return self.download_and_append_fragments(*args[0], pack_func=pack_func, finish_func=finish_func)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/downloader/fragment.py", line 531, in download_and_append_fragments
    result = append_fragment(decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/downloader/fragment.py", line 498, in append_fragment
    self._append_fragment(ctx, pack_func(frag_content, frag_index))
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/downloader/fragment.py", line 156, in _append_fragment
    ctx['dest_stream'].write(frag_content)
ValueError: write to closed file

@pukkandan
Copy link
Member

youtube-dl never had the ability to stream separate video+audio to stdout. I had added the ability to do this in yt-dlp by passing both URLs to ffmpeg at once like ffmpeg -i URL1 -i URL2 ... (which is reverted by this compat option)

When downloading the 2 streams at once for this website, ffmpeg seems to mess up the UA. I am not sure about the exact reason. Could you try opening an issue on ffmpeg?

@pukkandan pukkandan added the external issue Issue with an external tool label Apr 24, 2022
@elyse0
Copy link
Contributor

elyse0 commented Apr 25, 2022

Yep, I have opened an issue there

When I finished writing the issue, it came to my mind that maybe it is expected behavior? I mean, maybe someone would want different headers for each stream 🤔

Setting the user-agent for each stream, makes it work mm... What do you think? @pukkandan

ffmpeg -v debug \
         -user_agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0" \
         -i http://ffmpeg-bug.s3-website-us-east-1.amazonaws.com/video/video.m3u8 \
         -user_agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0" \
         -i http://ffmpeg-bug.s3-website-us-east-1.amazonaws.com/audio/audio.m3u8 \
         -c copy \
         ncs-seconds.mp4

@pukkandan
Copy link
Member

I thought -headers was a global option, not an input option. I can't find the option in the docs...

Anyway, if passing it each URL works, we can easily do that

@pukkandan pukkandan removed the external issue Issue with an external tool label Apr 25, 2022
@pukkandan pukkandan self-assigned this Apr 25, 2022
@elyse0
Copy link
Contributor

elyse0 commented Apr 25, 2022

The docs for this are in https://ffmpeg.org/ffmpeg-protocols.html#http Although, it isn't clear if the options are global or not.

Okay, lets do it! (:

@elyse0
Copy link
Contributor

elyse0 commented Apr 26, 2022

I just wanted to note that using a Dash stream (which is the default audio format for this example), doesn't work. But it seems to me like a ffmpeg problem,because is failing to parse the manifest.mpd

Hls works fine though (:

yt-dlp -vU -o - "https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html"
[debug] Command-line config: ['-vU', '-o', '-', 'https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, err UTF-8, pref UTF-8
[debug] yt-dlp version 2022.04.08 [7884ade65]
[debug] Lazy loading extractors is disabled
[debug] Python version 3.7.3 (CPython 64bit) - Linux-4.19.0-20-amd64-x86_64-with-debian-10.11
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.1.8-0, ffprobe 4.1.8-0
[debug] Optional libraries: Cryptodome, brotli, certifi, mutagen, secretstorage, sqlite3, websockets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [FranceTVSite] Extracting URL: https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html
[FranceTVSite] 1980815-seule-au-monde: Downloading webpage
[debug] [FranceTV] Extracting URL: francetv:833b322d-321e-4201-a43d-c57f6e763eb6
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading desktop video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading mobile video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed dash manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading MPD manifest
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed hls manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading 1 format(s): hls-2218+dash-audio_fre=96000
[debug] Invoking downloader on "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA5NzUwODN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9N2ZlNjQ0ZWU1OTdkNTI0NTZjNTc2ZWVmNjQzOGE0YzkyZWJmYmNkNGIxMmZmNjg2YTNhODMxMmVhNWFkOTMyOA==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8", "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650954083~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=7e568f14a89824fbfc8650f785f3c09c974072d02d6f38cbb9bc989c2dcb983b"
[download] Destination: -
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.24 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA5NzUwODN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9N2ZlNjQ0ZWU1OTdkNTI0NTZjNTc2ZWVmNjQzOGE0YzkyZWJmYmNkNGIxMmZmNjg2YTNhODMxMmVhNWFkOTMyOA==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8 -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.24 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650954083~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=7e568f14a89824fbfc8650f785f3c09c974072d02d6f38cbb9bc989c2dcb983b' -c copy -map 0:0 -map 1:0 -f mpegts -
ffmpeg version 4.1.8-0+deb10u1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --prefix=/usr --extra-version=0+deb10u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
[tcp @ 0x557793658e00] Starting connection attempt to 104.117.77.130 port 443
[tcp @ 0x557793658e00] Successfully connected to 104.117.77.130 port 443
[hls,applehttp @ 0x557793655b00] HLS request for url 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA5NzUwODN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9N2ZlNjQ0ZWU1OTdkNTI0NTZjNTc2ZWVmNjQzOGE0YzkyZWJmYmNkNGIxMmZmNjg2YTNhODMxMmVhNWFkOTMyOA==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000-1.ts', offset 0, playlist 0
[hls,applehttp @ 0x557793655b00] Opening 'https://cloudingest.ftven.fr/keys/bfd3.key' for reading
[tcp @ 0x55779397d200] Starting connection attempt to 104.117.77.169 port 443
[tcp @ 0x55779397d200] Successfully connected to 104.117.77.169 port 443
[AVIOContext @ 0x55779399cfc0] Statistics: 16 bytes read, 0 seeks
[hls,applehttp @ 0x557793655b00] Opening 'crypto+https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA5NzUwODN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9N2ZlNjQ0ZWU1OTdkNTI0NTZjNTc2ZWVmNjQzOGE0YzkyZWJmYmNkNGIxMmZmNjg2YTNhODMxMmVhNWFkOTMyOA==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000-1.ts' for reading
[tcp @ 0x557793963280] Starting connection attempt to 104.117.77.130 port 443
[tcp @ 0x557793963280] Successfully connected to 104.117.77.130 port 443
[h264 @ 0x557793a0f5c0] Reinit context to 1280x720, pix_fmt: yuv420p
[hls,applehttp @ 0x557793655b00] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
Input #0, hls,applehttp, from 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA5NzUwODN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9N2ZlNjQ0ZWU1OTdkNTI0NTZjNTc2ZWVmNjQzOGE0YzkyZWJmYmNkNGIxMmZmNjg2YTNhODMxMmVhNWFkOTMyOA==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8':
  Duration: 00:21:40.52, start: 10.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, left), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
[tcp @ 0x557793cf6640] Starting connection attempt to 104.117.77.169 port 443
[tcp @ 0x557793cf6640] Successfully connected to 104.117.77.169 port 443
[tcp @ 0x557793a10e00] Starting connection attempt to 104.117.77.130 port 443
[tcp @ 0x557793a10e00] Successfully connected to 104.117.77.130 port 443
https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA5NzUwODN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9N2ZlNjQ0ZWU1OTdkNTI0NTZjNTc2ZWVmNjQzOGE0YzkyZWJmYmNkNGIxMmZmNjg2YTNhODMxMmVhNWFkOTMyOA==/manifest.mpd:270: parser error : Premature end of data in tag SegmentTimeline line 37
          
          ^
https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA5NzUwODN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9N2ZlNjQ0ZWU1OTdkNTI0NTZjNTc2ZWVmNjQzOGE0YzkyZWJmYmNkNGIxMmZmNjg2YTNhODMxMmVhNWFkOTMyOA==/manifest.mpd:270: parser error : Premature end of data in tag SegmentTemplate line 33
          
          ^
https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA5NzUwODN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9N2ZlNjQ0ZWU1OTdkNTI0NTZjNTc2ZWVmNjQzOGE0YzkyZWJmYmNkNGIxMmZmNjg2YTNhODMxMmVhNWFkOTMyOA==/manifest.mpd:270: parser error : Premature end of data in tag AdaptationSet line 18
          
          ^
https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA5NzUwODN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9N2ZlNjQ0ZWU1OTdkNTI0NTZjNTc2ZWVmNjQzOGE0YzkyZWJmYmNkNGIxMmZmNjg2YTNhODMxMmVhNWFkOTMyOA==/manifest.mpd:270: parser error : Premature end of data in tag Period line 14
          
          ^
https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTA5NzUwODN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9N2ZlNjQ0ZWU1OTdkNTI0NTZjNTc2ZWVmNjQzOGE0YzkyZWJmYmNkNGIxMmZmNjg2YTNhODMxMmVhNWFkOTMyOA==/manifest.mpd:270: parser error : Premature end of data in tag MPD line 3
          
          ^
[dash @ 0x557793a0c040] Unable to parse 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650954083~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=7e568f14a89824fbfc8650f785f3c09c974072d02d6f38cbb9bc989c2dcb983b' - missing root node
[AVIOContext @ 0x557793d7eec0] Statistics: 15888 bytes read, 0 seeks
https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650954083~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=7e568f14a89824fbfc8650f785f3c09c974072d02d6f38cbb9bc989c2dcb983b: Invalid data found when processing input
[AVIOContext @ 0x557793a84800] Statistics: 1313360 bytes read, 0 seeks
[AVIOContext @ 0x557793961a40] Statistics: 15553 bytes read, 0 seeks


ERROR: ffmpeg exited with code 1
  File "/usr/local/bin/yt-dlp", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/__init__.py", line 855, in main
    _real_main(argv)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/__init__.py", line 845, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 3237, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 3209, in wrapper
    res = func(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1371, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1380, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1464, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1542, in process_ie_result
    extra_info=extra_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1371, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1380, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1464, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1520, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 2620, in process_video_result
    self.process_info(new_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 3057, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 2818, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/downloader/common.py", line 439, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/downloader/external.py", line 65, in real_download
    self.get_basename(), retval))
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 930, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 864, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

@pukkandan
Copy link
Member

I just wanted to note that using a Dash stream (which is the default audio format for this example), doesn't work. But it seems to me like a ffmpeg problem,because is failing to parse the manifest.mpd

Could you check if the native downloader works? (download a single format)

@elyse0
Copy link
Contributor

elyse0 commented Apr 26, 2022

Yep, native downloader works

yt-dlp -vU -f 'dash-audio_fre=96000' -o - "https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html"
[debug] Command-line config: ['-vU', '-f', 'dash-audio_fre=96000', '-o', '-', 'https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, err UTF-8, pref UTF-8
[debug] yt-dlp version 2022.04.08 [7884ade65]
[debug] Lazy loading extractors is disabled
[debug] Python version 3.7.3 (CPython 64bit) - Linux-4.19.0-20-amd64-x86_64-with-debian-10.11
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.1.8-0, ffprobe 4.1.8-0
[debug] Optional libraries: Cryptodome, brotli, certifi, mutagen, secretstorage, sqlite3, websockets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [FranceTVSite] Extracting URL: https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html
[FranceTVSite] 1980815-seule-au-monde: Downloading webpage
[debug] [FranceTV] Extracting URL: francetv:833b322d-321e-4201-a43d-c57f6e763eb6
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading desktop video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading mobile video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed dash manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading MPD manifest
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed hls manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading 1 format(s): dash-audio_fre=96000
[debug] Invoking downloader on "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650996690~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=a0a64438f6e87d58b49e3f860579a4c00b424bfd2a80a41f7cfe11a5a82720a3"
[dashsegments] Total fragments: 652
[download] Destination: -
[debug] File locking is not supported on this platform. Proceeding without locking
[download]   3.9% of ~14.73MiB at 355.00KiB/s ETA 00:31 (frag 25/652)

@elyse0
Copy link
Contributor

elyse0 commented Apr 26, 2022

I've downloaded the latest version of ffmpeg and it seems like the parsing error has been fixed; but now fails with 403 Forbidden.

yt-dlp -vU -o - "https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html"
[debug] Command-line config: ['-vU', '-o', '-', 'https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, err UTF-8, pref UTF-8
[debug] yt-dlp version 2022.04.08 [7884ade65]
[debug] Lazy loading extractors is disabled
[debug] Python version 3.7.3 (CPython 64bit) - Linux-4.19.0-20-amd64-x86_64-with-debian-10.11
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-61656-gfbd22504c4-static (setts), ffprobe 4.1.8-0
[debug] Optional libraries: Cryptodome, brotli, certifi, mutagen, secretstorage, sqlite3, websockets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [FranceTVSite] Extracting URL: https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html
[FranceTVSite] 1980815-seule-au-monde: Downloading webpage
[debug] [FranceTV] Extracting URL: francetv:833b322d-321e-4201-a43d-c57f6e763eb6
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading desktop video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading mobile video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed dash manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading MPD manifest
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed hls manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading 1 format(s): hls-2218+dash-audio_fre=96000
[debug] Invoking downloader on "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMTk5Njl+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9OTgyZGU4OWFjYzI4MzViNTVlNmI3NTc2NDJiZWM2MjFmODIyMWY1NjM3OWVmNDc4YzhiNzdmODZhNDY1MTkwNA==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8", "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650998968~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c2ba212c33e6be84e5904150e4434490fc673eb22346140860749141dc7b18e0"
[download] Destination: -
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMTk5Njl+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9OTgyZGU4OWFjYzI4MzViNTVlNmI3NTc2NDJiZWM2MjFmODIyMWY1NjM3OWVmNDc4YzhiNzdmODZhNDY1MTkwNA==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8 -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650998968~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c2ba212c33e6be84e5904150e4434490fc673eb22346140860749141dc7b18e0' -c copy -map 0:0 -map 1:0 -f mpegts -
ffmpeg version N-61656-gfbd22504c4-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      57. 24.101 / 57. 24.101
  libavcodec     59. 26.100 / 59. 26.100
  libavformat    59. 22.100 / 59. 22.100
  libavdevice    59.  6.100 / 59.  6.100
  libavfilter     8. 33.100 /  8. 33.100
  libswscale      6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
  libpostproc    56.  5.100 / 56.  5.100
[tcp @ 0x6108140] Starting connection attempt to 104.117.77.130 port 443
[tcp @ 0x6108140] Successfully connected to 104.117.77.130 port 443
[hls @ 0x6103b00] Skip ('#EXT-X-VERSION:5')
[hls @ 0x6103b00] Skip ('## Created with Unified Streaming Platform(version=1.8.3)')
[hls @ 0x6103b00] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x6103b00] Skip ('#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z')
[hls @ 0x6103b00] HLS request for url 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMTk5Njl+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9OTgyZGU4OWFjYzI4MzViNTVlNmI3NTc2NDJiZWM2MjFmODIyMWY1NjM3OWVmNDc4YzhiNzdmODZhNDY1MTkwNA==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000-1.ts', offset 0, playlist 0
[hls @ 0x6103b00] Opening 'https://cloudingest.ftven.fr/keys/bfd3.key' for reading
[tcp @ 0x644a180] Starting connection attempt to 104.117.77.169 port 443
[tcp @ 0x644a180] Successfully connected to 104.117.77.169 port 443
[AVIOContext @ 0x6779fc0] Statistics: 16 bytes read, 0 seeks
[hls @ 0x6103b00] Opening 'crypto+https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMTk5Njl+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9OTgyZGU4OWFjYzI4MzViNTVlNmI3NTc2NDJiZWM2MjFmODIyMWY1NjM3OWVmNDc4YzhiNzdmODZhNDY1MTkwNA==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000-1.ts' for reading
[tcp @ 0x6417480] Starting connection attempt to 104.117.77.169 port 443
[tcp @ 0x6417480] Successfully connected to 104.117.77.169 port 443
[h264 @ 0x654e180] Reinit context to 1280x720, pix_fmt: yuv420p
[hls @ 0x6103b00] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
Input #0, hls, from 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMTk5Njl+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9OTgyZGU4OWFjYzI4MzViNTVlNmI3NTc2NDJiZWM2MjFmODIyMWY1NjM3OWVmNDc4YzhiNzdmODZhNDY1MTkwNA==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8':
  Duration: 00:21:40.52, start: 10.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #0:0: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, left), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn
    Metadata:
      variant_bitrate : 0
[tcp @ 0x6910f00] Starting connection attempt to 104.117.77.130 port 443
[tcp @ 0x6910f00] Successfully connected to 104.117.77.130 port 443
[tcp @ 0x690ec40] Starting connection attempt to 104.117.77.169 port 443
[tcp @ 0x690ec40] Successfully connected to 104.117.77.169 port 443
[dash @ 0x654e580] DASH request for url 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/dash/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=400000.dash', offset 0
[tcp @ 0x6910e00] Starting connection attempt to 104.117.77.169 port 443
[tcp @ 0x6910e00] Successfully connected to 104.117.77.169 port 443
[https @ 0x65574c0] HTTP error 403 Forbidden
[dash @ 0x654e580] Failed to open an initialization section
[dash @ 0x654e580] Error when loading first fragment of playlist
[AVIOContext @ 0x6d4bb40] Statistics: 23907 bytes read, 0 seeks
https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1650998968~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c2ba212c33e6be84e5904150e4434490fc673eb22346140860749141dc7b18e0: Server returned 403 Forbidden (access denied)
[AVIOContext @ 0x677cd40] Statistics: 1313440 bytes read, 0 seeks
[AVIOContext @ 0x6415d40] Statistics: 15553 bytes read, 0 seeks


ERROR: ffmpeg exited with code 1
  File "/usr/local/bin/yt-dlp", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/__init__.py", line 855, in main
    _real_main(argv)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/__init__.py", line 845, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 3237, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 3209, in wrapper
    res = func(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1371, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1380, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1464, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1542, in process_ie_result
    extra_info=extra_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1371, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1380, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1464, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1520, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 2620, in process_video_result
    self.process_info(new_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 3057, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 2818, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/downloader/common.py", line 439, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/downloader/external.py", line 65, in real_download
    self.get_basename(), retval))
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 930, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 864, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

In closer look it's really interesting, because when we pass the manifest.mpd url to ffmpeg, it will try to download video+audio.

Which can be seen by the fact that we fail downloading video=400000.dash, even though we specified dash-audio_fre=96000

yt-dlp -vU -f "hls-2218+dash-audio_fre=96000" -o - "https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html"
[debug] Command-line config: ['-vU', '-f', 'hls-2218+dash-audio_fre=96000', '-o', '-', 'https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, err UTF-8, pref UTF-8
[debug] yt-dlp version 2022.04.08 [7884ade65]
[debug] Lazy loading extractors is disabled
[debug] Python version 3.7.3 (CPython 64bit) - Linux-4.19.0-20-amd64-x86_64-with-debian-10.11
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-61656-gfbd22504c4-static (setts), ffprobe 4.1.8-0
[debug] Optional libraries: Cryptodome, brotli, certifi, mutagen, secretstorage, sqlite3, websockets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [FranceTVSite] Extracting URL: https://www.france.tv/slash/skam-france/saison-1/1980815-seule-au-monde.html
[FranceTVSite] 1980815-seule-au-monde: Downloading webpage
[debug] [FranceTV] Extracting URL: francetv:833b322d-321e-4201-a43d-c57f6e763eb6
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading desktop video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading mobile video JSON
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed dash manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading MPD manifest
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading signed hls manifest URL
[FranceTV] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 833b322d-321e-4201-a43d-c57f6e763eb6: Downloading 1 format(s): hls-2218+dash-audio_fre=96000
[debug] Invoking downloader on "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8", "https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1651002142~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c18693bfaa56c76d0b5889ea7f21d71f6eb68f81acd7282d1c4b4777e85b8319"
[download] Destination: -
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -v debug -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8 -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1651002142~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c18693bfaa56c76d0b5889ea7f21d71f6eb68f81acd7282d1c4b4777e85b8319' -c copy -map 0:0 -map 1:0 -f mpegts -
ffmpeg version N-61656-gfbd22504c4-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      57. 24.101 / 57. 24.101
  libavcodec     59. 26.100 / 59. 26.100
  libavformat    59. 22.100 / 59. 22.100
  libavdevice    59.  6.100 / 59.  6.100
  libavfilter     8. 33.100 /  8. 33.100
  libswscale      6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
  libpostproc    56.  5.100 / 56.  5.100
Successfully parsed a group of options.
Parsing a group of options: input url https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8.
Successfully parsed a group of options.
Opening an input file: https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8.
[NULL @ 0x6d18b40] Opening 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8' for reading
[https @ 0x6d19740] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x6d1d140] Original list of addresses:
[tcp @ 0x6d1d140] Address 96.17.206.5 port 443
[tcp @ 0x6d1d140] Address 96.17.206.28 port 443
[tcp @ 0x6d1d140] Address 96.17.206.8 port 443
[tcp @ 0x6d1d140] Address 96.17.206.17 port 443
[tcp @ 0x6d1d140] Address 96.17.206.14 port 443
[tcp @ 0x6d1d140] Address 96.17.206.20 port 443
[tcp @ 0x6d1d140] Address 96.17.206.22 port 443
[tcp @ 0x6d1d140] Address 96.17.206.25 port 443
[tcp @ 0x6d1d140] Interleaved list of addresses:
[tcp @ 0x6d1d140] Address 96.17.206.5 port 443
[tcp @ 0x6d1d140] Address 96.17.206.28 port 443
[tcp @ 0x6d1d140] Address 96.17.206.8 port 443
[tcp @ 0x6d1d140] Address 96.17.206.17 port 443
[tcp @ 0x6d1d140] Address 96.17.206.14 port 443
[tcp @ 0x6d1d140] Address 96.17.206.20 port 443
[tcp @ 0x6d1d140] Address 96.17.206.22 port 443
[tcp @ 0x6d1d140] Address 96.17.206.25 port 443
[tcp @ 0x6d1d140] Starting connection attempt to 96.17.206.5 port 443
[tcp @ 0x6d1d140] Successfully connected to 96.17.206.5 port 443
[https @ 0x6d19740] request: GET /2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8 HTTP/1.1
Range: bytes=0-
Connection: close
Host: cloudingest.ftven.fr
Icy-MetaData: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate


[hls @ 0x6d18b40] Format hls probed with size=2048 and score=100
[hls @ 0x6d18b40] Skip ('#EXT-X-VERSION:5')
[hls @ 0x6d18b40] Skip ('## Created with Unified Streaming Platform(version=1.8.3)')
[hls @ 0x6d18b40] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x6d18b40] Skip ('#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z')
[hls @ 0x6d18b40] HLS request for url 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000-1.ts', offset 0, playlist 0
[hls @ 0x6d18b40] Opening 'https://cloudingest.ftven.fr/keys/bfd3.key' for reading
[tcp @ 0x7060040] Original list of addresses:
[tcp @ 0x7060040] Address 96.17.206.20 port 443
[tcp @ 0x7060040] Address 96.17.206.25 port 443
[tcp @ 0x7060040] Address 96.17.206.22 port 443
[tcp @ 0x7060040] Address 96.17.206.17 port 443
[tcp @ 0x7060040] Address 96.17.206.14 port 443
[tcp @ 0x7060040] Address 96.17.206.5 port 443
[tcp @ 0x7060040] Address 96.17.206.8 port 443
[tcp @ 0x7060040] Address 96.17.206.28 port 443
[tcp @ 0x7060040] Interleaved list of addresses:
[tcp @ 0x7060040] Address 96.17.206.20 port 443
[tcp @ 0x7060040] Address 96.17.206.25 port 443
[tcp @ 0x7060040] Address 96.17.206.22 port 443
[tcp @ 0x7060040] Address 96.17.206.17 port 443
[tcp @ 0x7060040] Address 96.17.206.14 port 443
[tcp @ 0x7060040] Address 96.17.206.5 port 443
[tcp @ 0x7060040] Address 96.17.206.8 port 443
[tcp @ 0x7060040] Address 96.17.206.28 port 443
[tcp @ 0x7060040] Starting connection attempt to 96.17.206.20 port 443
[tcp @ 0x7060040] Successfully connected to 96.17.206.20 port 443
[https @ 0x705cb40] request: GET /keys/bfd3.key HTTP/1.1
Range: bytes=0-
Connection: keep-alive
Host: cloudingest.ftven.fr
Icy-MetaData: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate


[AVIOContext @ 0x706e680] Statistics: 16 bytes read, 0 seeks
[hls @ 0x6d18b40] Opening 'crypto+https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000-1.ts' for reading
[tcp @ 0x706e940] Original list of addresses:
[tcp @ 0x706e940] Address 96.17.206.17 port 443
[tcp @ 0x706e940] Address 96.17.206.14 port 443
[tcp @ 0x706e940] Address 96.17.206.20 port 443
[tcp @ 0x706e940] Address 96.17.206.22 port 443
[tcp @ 0x706e940] Address 96.17.206.25 port 443
[tcp @ 0x706e940] Address 96.17.206.5 port 443
[tcp @ 0x706e940] Address 96.17.206.28 port 443
[tcp @ 0x706e940] Address 96.17.206.8 port 443
[tcp @ 0x706e940] Interleaved list of addresses:
[tcp @ 0x706e940] Address 96.17.206.17 port 443
[tcp @ 0x706e940] Address 96.17.206.14 port 443
[tcp @ 0x706e940] Address 96.17.206.20 port 443
[tcp @ 0x706e940] Address 96.17.206.22 port 443
[tcp @ 0x706e940] Address 96.17.206.25 port 443
[tcp @ 0x706e940] Address 96.17.206.5 port 443
[tcp @ 0x706e940] Address 96.17.206.28 port 443
[tcp @ 0x706e940] Address 96.17.206.8 port 443
[tcp @ 0x706e940] Starting connection attempt to 96.17.206.17 port 443
[tcp @ 0x706e940] Successfully connected to 96.17.206.17 port 443
[https @ 0x705ffc0] request: GET /2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000-1.ts HTTP/1.1
Range: bytes=0-
Connection: keep-alive
Host: cloudingest.ftven.fr
Icy-MetaData: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate


Format mpegts probed with size=2048 and score=50
[mpegts @ 0x7053a00] stream=0 stream_type=1b pid=21 prog_reg_desc=
[hls @ 0x6d18b40] Before avformat_find_stream_info() pos: 15553 bytes read:15553 seeks:0 nb_streams:1
[extract_extradata @ 0x740b080] nal_unit_type: 9(AUD), nal_ref_idc: 0
[extract_extradata @ 0x740b080] nal_unit_type: 7(SPS), nal_ref_idc: 3
[extract_extradata @ 0x740b080] nal_unit_type: 8(PPS), nal_ref_idc: 3
[extract_extradata @ 0x740b080] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7395f40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x7395f40] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x7395f40] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x7395f40] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7395f40] Format yuv420p chosen by get_format().
[h264 @ 0x7395f40] Reinit context to 1280x720, pix_fmt: yuv420p
[h264 @ 0x7395f40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x7395f40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x7395f40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x7395f40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x7395f40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x7395f40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x7395f40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x7395f40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x7395f40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x7395f40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x7395f40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 0x7395f40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[hls @ 0x6d18b40] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
[hls @ 0x6d18b40] After avformat_find_stream_info() pos: 15553 bytes read:15553 seeks:0 frames:127
Input #0, hls, from 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=2000000.m3u8':
  Duration: 00:21:40.52, start: 10.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #0:0, 127, 1/90000: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, left), 1280x720 [SAR 1:1 DAR 16:9], 0/1, 25 fps, 25 tbr, 90k tbn
    Metadata:
      variant_bitrate : 0
Successfully opened the file.
Parsing a group of options: input url https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1651002142~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c18693bfaa56c76d0b5889ea7f21d71f6eb68f81acd7282d1c4b4777e85b8319.
Successfully parsed a group of options.
Opening an input file: https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1651002142~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c18693bfaa56c76d0b5889ea7f21d71f6eb68f81acd7282d1c4b4777e85b8319.
[NULL @ 0x7197380] Opening 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1651002142~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c18693bfaa56c76d0b5889ea7f21d71f6eb68f81acd7282d1c4b4777e85b8319' for reading
[https @ 0x716b080] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x7521a40] Original list of addresses:
[tcp @ 0x7521a40] Address 96.17.206.20 port 443
[tcp @ 0x7521a40] Address 96.17.206.25 port 443
[tcp @ 0x7521a40] Address 96.17.206.22 port 443
[tcp @ 0x7521a40] Address 96.17.206.17 port 443
[tcp @ 0x7521a40] Address 96.17.206.14 port 443
[tcp @ 0x7521a40] Address 96.17.206.5 port 443
[tcp @ 0x7521a40] Address 96.17.206.8 port 443
[tcp @ 0x7521a40] Address 96.17.206.28 port 443
[tcp @ 0x7521a40] Interleaved list of addresses:
[tcp @ 0x7521a40] Address 96.17.206.20 port 443
[tcp @ 0x7521a40] Address 96.17.206.25 port 443
[tcp @ 0x7521a40] Address 96.17.206.22 port 443
[tcp @ 0x7521a40] Address 96.17.206.17 port 443
[tcp @ 0x7521a40] Address 96.17.206.14 port 443
[tcp @ 0x7521a40] Address 96.17.206.5 port 443
[tcp @ 0x7521a40] Address 96.17.206.8 port 443
[tcp @ 0x7521a40] Address 96.17.206.28 port 443
[tcp @ 0x7521a40] Starting connection attempt to 96.17.206.20 port 443
[tcp @ 0x7521a40] Successfully connected to 96.17.206.20 port 443
[https @ 0x716b080] request: GET /2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1651002142~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c18693bfaa56c76d0b5889ea7f21d71f6eb68f81acd7282d1c4b4777e85b8319 HTTP/1.1
Range: bytes=0-
Connection: close
Host: cloudingest.ftven.fr
Icy-MetaData: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate


[tcp @ 0x7525600] Original list of addresses:
[tcp @ 0x7525600] Address 96.17.206.8 port 443
[tcp @ 0x7525600] Address 96.17.206.28 port 443
[tcp @ 0x7525600] Address 96.17.206.20 port 443
[tcp @ 0x7525600] Address 96.17.206.25 port 443
[tcp @ 0x7525600] Address 96.17.206.22 port 443
[tcp @ 0x7525600] Address 96.17.206.17 port 443
[tcp @ 0x7525600] Address 96.17.206.14 port 443
[tcp @ 0x7525600] Address 96.17.206.5 port 443
[tcp @ 0x7525600] Interleaved list of addresses:
[tcp @ 0x7525600] Address 96.17.206.8 port 443
[tcp @ 0x7525600] Address 96.17.206.28 port 443
[tcp @ 0x7525600] Address 96.17.206.20 port 443
[tcp @ 0x7525600] Address 96.17.206.25 port 443
[tcp @ 0x7525600] Address 96.17.206.22 port 443
[tcp @ 0x7525600] Address 96.17.206.17 port 443
[tcp @ 0x7525600] Address 96.17.206.14 port 443
[tcp @ 0x7525600] Address 96.17.206.5 port 443
[tcp @ 0x7525600] Starting connection attempt to 96.17.206.8 port 443
[tcp @ 0x7525600] Successfully connected to 96.17.206.8 port 443
[https @ 0x716b080] request: GET /2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/ZXhwPTE2NTEwMjMxNDN+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGYzODQxYmIwNGVmNzY0Y2Y4NWM3YzFkZDc2OGIzMzI0OGJkZTE0Nzc0OGQwN2FmNzJhZWE2Y2RlNDY1OTNkMg==/manifest.mpd HTTP/1.1
Range: bytes=0-
Connection: close
Host: cloudingest.ftven.fr
Icy-MetaData: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate


[dash @ 0x7197380] Format dash probed with size=2048 and score=100
[https @ 0x716b080] Last chunk received, closing conn
[dash @ 0x7197380] DASH request for url 'https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/dash/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=400000.dash', offset 0
[https @ 0x705c2c0] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x74cbc40] Original list of addresses:
[tcp @ 0x74cbc40] Address 96.17.206.25 port 443
[tcp @ 0x74cbc40] Address 96.17.206.5 port 443
[tcp @ 0x74cbc40] Address 96.17.206.28 port 443
[tcp @ 0x74cbc40] Address 96.17.206.8 port 443
[tcp @ 0x74cbc40] Address 96.17.206.17 port 443
[tcp @ 0x74cbc40] Address 96.17.206.14 port 443
[tcp @ 0x74cbc40] Address 96.17.206.20 port 443
[tcp @ 0x74cbc40] Address 96.17.206.22 port 443
[tcp @ 0x74cbc40] Interleaved list of addresses:
[tcp @ 0x74cbc40] Address 96.17.206.25 port 443
[tcp @ 0x74cbc40] Address 96.17.206.5 port 443
[tcp @ 0x74cbc40] Address 96.17.206.28 port 443
[tcp @ 0x74cbc40] Address 96.17.206.8 port 443
[tcp @ 0x74cbc40] Address 96.17.206.17 port 443
[tcp @ 0x74cbc40] Address 96.17.206.14 port 443
[tcp @ 0x74cbc40] Address 96.17.206.20 port 443
[tcp @ 0x74cbc40] Address 96.17.206.22 port 443
[tcp @ 0x74cbc40] Starting connection attempt to 96.17.206.25 port 443
[tcp @ 0x74cbc40] Successfully connected to 96.17.206.25 port 443
[https @ 0x705c2c0] request: GET /2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/dash/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=400000.dash HTTP/1.1
Range: bytes=0-
Connection: close
Host: cloudingest.ftven.fr
Icy-MetaData: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate


[https @ 0x705c2c0] HTTP error 403 Forbidden
[dash @ 0x7197380] Failed to open an initialization section
[dash @ 0x7197380] Error when loading first fragment of playlist
[AVIOContext @ 0x747ec00] Statistics: 23907 bytes read, 0 seeks
https://cloudingest.ftven.fr/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism/manifest.mpd?hdnea=exp=1651002142~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c18693bfaa56c76d0b5889ea7f21d71f6eb68f81acd7282d1c4b4777e85b8319: Server returned 403 Forbidden (access denied)
[AVIOContext @ 0x706ca00] Statistics: 1311296 bytes read, 0 seeks
[AVIOContext @ 0x702ad40] Statistics: 15553 bytes read, 0 seeks


ERROR: ffmpeg exited with code 1
  File "/usr/local/bin/yt-dlp", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/__init__.py", line 855, in main
    _real_main(argv)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/__init__.py", line 845, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 3237, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 3209, in wrapper
    res = func(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1371, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1380, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1464, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1542, in process_ie_result
    extra_info=extra_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1371, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1380, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1464, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 1520, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 2620, in process_video_result
    self.process_info(new_info)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 3057, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 2818, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/downloader/common.py", line 439, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/downloader/external.py", line 65, in real_download
    self.get_basename(), retval))
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 930, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/yt_dlp/YoutubeDL.py", line 864, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

If we ignore the fact that we're trying to download the video instead of the audio, it seems like we get 403 Forbidden because it fails to find the correct base path

This is the original manifest.mpd url:

https://cloudingest.ftven.fr \
	/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism \
	/manifest.mpd \
	?hdnea=exp=1651002142~acl=%2f2b43723d56716%2f833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism*~hmac=c18693bfaa56c76d0b5889ea7f21d71f6eb68f81acd7282d1c4b4777e85b8319

Ffmpeg uses this base path:

https://cloudingest.ftven.fr \
	/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism \
	/dash \
	/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-video=400000.dash

Native downloader uses this:

https://cloudingest.ftven.fr \
	/2b43723d56716/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA.ism \
	/ZXhwPTE2NTEwMjEzMzl+YWNsPSUyZjJiNDM3MjNkNTY3MTYlMmY4MzNiMzIyZC0zMjFlLTQyMDEtYTQzZC1jNTdmNmU3NjNlYjZfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9YWQ0ZDYwMmE3YWNkNTFlMWUyZTYyNDI1OGQ4N2I5OWMzYWFhZTZiYmIxOGE0ZWQ5MTlkOTJhNzgwNDAyYTZlZg== \
	/dash \
	/833b322d-321e-4201-a43d-c57f6e763eb6_france-domtom_TA-audio_fre=96000.dash

Since most of the time we will use the Native downloader instead of Ffmpeg, probably this behavior has been unnoticed 🤔

  • Maybe we could get the native downloader to give us the correct base path, but seems weird.
  • Why is it downloading the video from dash? Mmm

@pukkandan pukkandan reopened this Apr 26, 2022
@elyse0
Copy link
Contributor

elyse0 commented Apr 27, 2022

I have found the issue 🐞

The problem is that we are being redirected to another url when we get our manifest.mpd, but we still use the original url instead of the redirected.

image

Opening PR (:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
geo-blocked Content is geo-blocked site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

3 participants