VideoHelp Forum

+ Reply to Thread
Results 1 to 11 of 11
Thread
  1. Following a recent overhaul of the france.tv "replay" streaming platform, I just tested a patched youtube-dl repository – it works.
    Code:
    C:\Logiciels autonomes\youtube-dl-sarnoud-francetv>python youtube_dl/__main__.py -F https://www.france.tv/france-5/le-magazine-de-la-sante/2759743-emission-du-lundi-20-septembre-2021.html
    [FranceTVSite] 2759743-emission-du-lundi-20-septembre-2021: Downloading webpage
    [FranceTV] 6d5fa392-6959-48a5-8362-c7d0143dc8a6: Downloading desktop video JSON
    [FranceTV] 6d5fa392-6959-48a5-8362-c7d0143dc8a6: Downloading mobile video JSON
    [FranceTV] 6d5fa392-6959-48a5-8362-c7d0143dc8a6: Downloading signed dash manifest URL
    [FranceTV] 6d5fa392-6959-48a5-8362-c7d0143dc8a6: Downloading MPD manifest
    WARNING: [FranceTV] Unknown MIME type application/mp4 in DASH manifest
    [FranceTV] 6d5fa392-6959-48a5-8362-c7d0143dc8a6: Downloading signed hls manifest URL
    [FranceTV] 6d5fa392-6959-48a5-8362-c7d0143dc8a6: Downloading m3u8 information
    [info] Available formats for 6d5fa392-6959-48a5-8362-c7d0143dc8a6:
    format code                       extension  resolution note
    dash-audio_fre=96000              m4a        audio only [fr] DASH audio   96k , m4a_dash container, mp4a.40.2 (48000Hz)
    dash-video=400000                 mp4        384x216    DASH video  400k , mp4_dash container, avc1.42C01E, 25fps, video only
    dash-video=950000                 mp4        640x360    DASH video  950k , mp4_dash container, avc1.4D401F, 25fps, video only
    dash-video=1400000                mp4        960x540    DASH video 1400k , mp4_dash container, avc1.4D401F, 25fps, video only
    dash-video=2000000                mp4        1280x720   DASH video 2000k , mp4_dash container, avc1.64001F, 25fps, video only
    hls-522                           mp4        384x216     522k , avc1.42C01E, 25.0fps, video only
    hls-1105                          mp4        640x360    1105k , avc1.4D401F, 25.0fps, video only
    hls-1582                          mp4        960x540    1582k , avc1.4D401F, 25.0fps, video only
    hls-2218                          mp4        1280x720   2218k , avc1.64001F, 25.0fps, video only
    hls-audio-aacl-96-Audio_Français  mp4        audio only [fr]  (best)
    Question is, there are two distinct sets of streams, even though there is now only one link on the corresponding JSON page (there used to be two), ending with .../manifest.mpd. (I can get the JSON page from the "videoid" code contained in the HTML web page, through this URL.) How come ? I'm still confused as to what exactly DASH and HLS are, and what either of those protocols should look like in practice. In this case, if I get the actual / complete / working stream link through this URL, and run youtube-dl -F with it, it is recognized as DASH :
    Code:
    youtube-dl -F "https://cloudreplay.ftven.fr/61a1a2a088416/1038281316_monde_TA.ism/manifest.mpd?hdnea=exp=1632849649~acl=%2f61a1a2a088416%2f1038
    281316_monde_TA.ism*~hmac=fcbe55774e30d1c5bc3c7c76b1875f6487b8ee2c56ef02179c4dbf4bfaa0094a"
    [generic] manifest.mpd?hdnea=exp=1632849649~acl=/61a1a2a088416/1038281316_monde_TA: Requesting header
    [redirect] Following redirect to https://cloudreplay.ftven.fr/61a1a2a088416/1038281316_monde_TA.ism/ZXhwPTE2MzI4NzA2Nzl+YWNsPSUyZjYxYTFhMmEwODg0MTYlMmYxMDM4Mjgx
    MzE2X21vbmRlX1RBLmlzbSp+aG1hYz1iMWRjYTQ5MGY2N2I2MGM2NDRjOGNiZTQxZTkzZDQ0ZDk5NzY4OGViODc0OTZlMjU2MzJlODI4MDRmNGZjZmQ4/manifest.mpd
    [generic] manifest: Requesting header
    WARNING: Falling back on generic information extractor.
    [generic] manifest: Downloading webpage
    [generic] manifest: Extracting information
    WARNING: [generic] Unknown MIME type application/mp4 in DASH manifest
    [info] Available formats for manifest:
    format code      extension  resolution note
    audio_fre=96000  m4a        audio only [fr] DASH audio   96k , m4a_dash container, mp4a.40.2 (48000Hz)
    video=400000     mp4        384x216    DASH video  400k , mp4_dash container, avc1.42C01E, 25fps, video only
    video=950000     mp4        640x360    DASH video  950k , mp4_dash container, avc1.4D401F, 25fps, video only
    video=1400000    mp4        960x540    DASH video 1400k , mp4_dash container, avc1.4D401F, 25fps, video only
    video=2000000    mp4        1280x720   DASH video 2000k , mp4_dash container, avc1.64001F, 25fps, video only (best)
    Then if that is DASH, how can the HLS stream be retrieved from there ?
    And is there any reason to choose one over the other ? One thing I noticed is that the download in DASH seems quite slow, especially for the audio part ; normally it should be very quick to download, but it seems to get throttled somehow (for the above video it took about 6min to download a 37MB audio stream, even though the displayed download rate seemed to max out the connection at about 1MB/s).
    And with youtube-dl (regardless of the fact that it now seems to be a dead project), is there a way to auto select the best available stream in either DASH or HLS, even if the specific identification code changes ?

    Another question : even though the patched youtube-dl works through Python, it is not as convenient as a standalone EXE file ; how can I compile the Python directory as a single EXE file ? I managed to do it earlier with yt-dlp (which is still actively developped but hasn't had a recent update for the france.tv platform) with a simple "py pyinst.py" command, but that other directory doesn't have a similar pyinst.py file and I couldn't find specific instructions for a Windows install.
    Quote Quote  
  2. HLS & DASH:

    Both are separate Video+ Audio streams and different bitrates automatically adapt (thats the A(daptive) in DASH) to your internet speed to only allow a bitrate of a quality that your bandwidth can cope with for viewing - not ripping.

    HLS predates DASH by many years and is not recognised as any sort of standard and doesn't have to comply with anything. Its just a file split up into many pieces thrown at you normally via an .m3u8, piecemeal, from a server usually in H.264 format as a combined .ts (transportable stream) format container for the V+A. Filter url in DevTools for m3u8 and DL as.ts with Streamlink.

    DASH is an industry compliant format (the first one to gain that status in fact) and is also able to be encrypted by Widevine or Playready. HLS isn't. More usually thrown at you thru via an .mpd in mp4 format for the video, and m4a format for the audio.

    (There are many other variations of course).

    The reason the france.tv will supply both is to be backward compliant with as many different hardware devices as possible for its subscribers.

    So in conclusion if its best quality you want - for example in your first format listing - the 720p HLS stream Video hls-2218 (2218k) is actually higher bitrate than the DASH Video (dash-video=2000000) which is 2000k.

    yt-dlp -f hls-2218+m4a --external-downloader aria2c --no-check-certificate --cookies-from-browser firefox --merge-output-formats mkv "mpd-url"
    aria2c for windows
    https://github.com/aria2/aria2/releases

    and ffmpeg (full 106mb version) in same folder as yt-dlp
    https://www.mediafire.com/file/mv3ffex88q6z3ef/ffmpeg.exe/file

    substitute your browser name for firefox if using a different one (lowercase)

    Edit: not tested as not got an account and not creating one.
    Last edited by codehound; 29th Sep 2021 at 03:56.
    Quote Quote  
  3. Thanks for the concise yet thorough explanation regarding those protocols.
    One part of the question was : how does one (person of software) get the HLS content from the single provided link, ending with .../manifest.mpd, which appears to be a DASH link ? When downloading with youtube-dl and the option --dump-pages, I get these files :
    Code:
    6d5fa392-6959-48a5-8362-c7d0143dc8a6_https_-_hdfauthftv-a.akamaihd.net_esi_TAurl=https%3A%2F%2Fcloudreplay.ftven.fr%2F61a1a2a088416%2F1038281316_monde_TA.ism%2Fmanifest.mpd.dump
    6d5fa392-6959-48a5-8362-c7d0143dc8a6_https_-_hdfauthftv-a.akamaihd.net_esi_TAurl=https%3A%2F%2Fcloudreplay.ftven.fr%2F61a1a2a088416%2F1038281316_monde_TA.ism%2Fmaster.m3u8.dump
    So the HLS link would be obtained simply by replacing "manifest.mpd" by "master.m3u8", is that right ? How is one (person or software) supposed to know that, based on the information available in the JSON page ?

    Then : I downloaded both versions of the same video (the one mentioned above as an example) at the highest available resolution (by the way, as of now it doesn't require cookies / login, but there may be some kind of geo-blocking protection), it turns out that the video bitrate is actually almost identical, even though the individual video-only files have significantly different sizes, most likely due to a significantly different container overhead. But there's a problem in the final MP4 file generated from the HLS download, with ffmpeg doing the video+audio merging : the audio is cut short at 6min48s. I had already noticed that issue earlier when those videos were available in two versions named "m3u8-download" and "hls_v5_os", and by default youtube-dl picked the latter (since its default selection is equivalent to "-f bestvideo+bestaudio", which corresponds to separated video and audio streams, whereas the "m3u8-download" version was a single video+audio stream) : the resulting file would always have the audio cut at 6min48s, regardless of the total duration of the video. Does this ring a bell, is this a known issue with either youtube-dl, ffmpeg, or the HLS protocol ? Apparently youtube-dl doesn't allow TS among the possible output formats (although when downloading the "m3u8-download" version of a video, it would record to a temporary file with a .mp4 extension that was actually a TS file – I checked with WinHex and MediaInfo – then at the end automatically remux it to an actual MP4 file).
    Also there are inconsistencies with regards to the average / maximum bitrates. From MediaInfo : dash-video=2000000 : 729MB, global average bitrate 1967kbps, average video bitrate 1966kbps, max video bitrate 4189kbps identified as "iso6/dash", duration misidentified as 9min0s ; hls-2218 : 753MB, global bitrate 2034kbps, average video bitrate 1934kbps, max video bitrate 1965kbps, identified as "MPEG-TS", duration correctly identified as 51min48s ; MP4 merged from DASH download : 766MB, average video bitrate 1966kbps, complete audio stream ; MP4 merged from HLS download : 734MB, average video bitrate 1967kbps, audio stream truncated at 6min48s (see below for MediaInfo details if needed). This, even though the actual video / audio content is virtually identical (if, using xdelta, I compress the 729MB file from the merged HLS download with the 766MB file from the DASH download as reference, the resulting .diff file has a size of 721KB, meaning that very little data is required to re-create the former from the latter).
    If I merge the DASH streams with mp4box, I get a 765MB MP4 file with : average bitrate 1966kbps, max video bitrate 3914kbps, audio bitrate identified as "variable" (for both files generated with ffmpeg the audio bitrate is identified as "constant"). If I try to merge the HLS streams with mp4box, I get a gazillion of error lines and it FAILS MISEBARLY. What gives ?

    Then why are you suggesting aria2c ? What can it do that youtube-dl or yt-dlp can't ? What about Streamlink ? (Based on the description it is primarily meant to "pipe video streams from various services into a video player", so downloading doesn't seem to be its raison d'être.) Currently with the patched youtube-dl all I have to provide is the base web page URL, and it automatically retrieves the video links, which is much more convenient than having to dig the required information through the browser, or by dumping 1) the web page 2) the JSON page 3) the complete manifest.mpd link.

    Another question was : with youtube-dl or yt-dlp, are there ways to automatically select the best available stream from a specific protocol, or with a specific keyword in its identification code ? In this case for instance, the best quality HLS video stream is named "hls-2218", but for another video it might be "hls-2224" or "hls-2215" – can I tell it to select the best HLS version, or the best DASH version, without having to list all available formats with -F and then type the specific identification code for the one I want ?

    And yet another question regarding the subtitles : before the subtitles were available as standalone VTT or TTML files. Now the corresponding links have disappeared from the JSON pages, and it would seem like the subtitles are embedded within the video streams. The patched youtube-dl manages to retrieve the subtitles, but it takes much longer to parse all the fragments and whatnot. Yet the software Captvty still manages to download the subtitles in a split second from that same platform. How come ?



    [MediaInfo reports]

    – dash-video=2000000 download

    Code:
    Général
    Nom complet                              : H:\20210920 LMDLS.fvideo=2000000.mp4
    Format                                   : iso6
    Identifiant du codec                     : iso6 (iso6/dash)
    Taille du fichier                        : 729 Mio
    Durée                                    : 51 min 48s
    Débit global moyen                       : 1 967 kb/s
    
    Vidéo
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Profil du format                         : High@L3.1
    Paramètres du format                     : CABAC / 2 Ref Frames
    Paramètres du format, CABAC              : Oui
    Paramètres du format, RefFrames          : 2 images
    Paramètres du format, GOP                : M=1, N=50
    Identifiant du codec                     : avc1
    Identifiant du codec/Info                : Advanced Video Coding
    Durée                                    : 51 min 48s
    Débit                                    : 1 966 kb/s
    Débit maximum                            : 4 189 kb/s
    Largeur                                  : 1 280 pixels
    Hauteur                                  : 720 pixels
    Format à l'écran                         : 16/9
    Type d'images/s                          : Constant
    Images par seconde                       : 25,000 Im/s
    Espace de couleurs                       : YUV
    Sous-échantillonnage de la chrominance   : 4:2:0
    Profondeur des couleurs                  : 8 bits
    Type de balayage                         : Progressif
    Bits/(Pixel*Image)                       : 0.085
    Taille du flux                           : 728 Mio (100%)
    Codec configuration box                  : avcC

    – hls-2218 download

    Code:
    Général
    ID                                       : 16727 (0x4157)
    Nom complet                              : H:\20210920 LMDLS HLS V.fhls-2218.mp4
    Format                                   : MPEG-TS
    Taille du fichier                        : 754 Mio
    Durée                                    : 51 min 48s
    Type de débit global                     : Variable
    Débit global moyen                       : 2 034 kb/s
    FileExtension_Invalid                    : ts m2t m2s m4t m4s tmf ts tp trp ty
    
    Vidéo
    ID                                       : 33 (0x21)
    ID de menu                               : 16727 (0x4157)
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Profil du format                         : High@L3.1
    Paramètres du format                     : CABAC / 2 Ref Frames
    Paramètres du format, CABAC              : Oui
    Paramètres du format, RefFrames          : 2 images
    Paramètres du format, GOP                : M=1, N=50
    Identifiant du codec                     : 27
    Durée                                    : 51 min 48s
    Débit                                    : 1 934 kb/s
    Débit maximum                            : 1 965 kb/s
    Largeur                                  : 1 280 pixels
    Hauteur                                  : 720 pixels
    Format à l'écran                         : 16/9
    Images par seconde                       : 25,000 Im/s
    Espace de couleurs                       : YUV
    Sous-échantillonnage de la chrominance   : 4:2:0
    Profondeur des couleurs                  : 8 bits
    Type de balayage                         : Progressif
    Bits/(Pixel*Image)                       : 0.084
    Taille du flux                           : 717 Mio (95%)

    – merged DASH MP4 file (youtube-dl via ffmpeg)

    Code:
    Général
    Nom complet                              : H:\20210920 LMDLS.mp4
    Format                                   : MPEG-4
    Profil du format                         : Base Media
    Identifiant du codec                     : isom (isom/iso2/avc1/mp41)
    Taille du fichier                        : 766 Mio
    Durée                                    : 51 min 48s
    Débit global moyen                       : 2 066 kb/s
    Application utilisée                     : Lavf58.29.100
    
    Vidéo
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Profil du format                         : High@L3.1
    Paramètres du format                     : CABAC / 2 Ref Frames
    Paramètres du format, CABAC              : Oui
    Paramètres du format, RefFrames          : 2 images
    Paramètres du format, GOP                : M=1, N=50
    Identifiant du codec                     : avc1
    Identifiant du codec/Info                : Advanced Video Coding
    Durée                                    : 51 min 48s
    Débit                                    : 1 966 kb/s
    Largeur                                  : 1 280 pixels
    Hauteur                                  : 720 pixels
    Format à l'écran                         : 16/9
    Type d'images/s                          : Constant
    Images par seconde                       : 25,000 Im/s
    Espace de couleurs                       : YUV
    Sous-échantillonnage de la chrominance   : 4:2:0
    Profondeur des couleurs                  : 8 bits
    Type de balayage                         : Progressif
    Bits/(Pixel*Image)                       : 0.085
    Taille du flux                           : 728 Mio (95%)
    Codec configuration box                  : avcC
    
    Audio
    ID                                       : 2
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Identifiant du codec                     : mp4a-40-2
    Durée                                    : 51 min 48s
    Type de débit                            : Constant
    Débit                                    : 96,0 kb/s
    Canaux                                   : 2 canaux
    ChannelLayout                            : L R
    Echantillonnage                          : 48,0 kHz
    Images par seconde                       : 46,875 Im/s (1024 SPF)
    Mode de compression                      : Avec perte
    Taille du flux                           : 35,6 Mio (5%)
    Langue                                   : Français
    Default                                  : Oui
    AlternateGroup/String                    : 1

    – merged HLS MP4 file (youtube-dl via ffmpeg)

    Code:
    Général
    Nom complet                              : H:\20210920 LMDLS HLS V.mp4
    Format                                   : MPEG-4
    Profil du format                         : Base Media
    Identifiant du codec                     : isom (isom/iso2/avc1/mp41)
    Taille du fichier                        : 734 Mio
    Durée                                    : 51 min 48s
    Débit global moyen                       : 1 981 kb/s
    Application utilisée                     : Lavf58.29.100
    
    Vidéo
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Profil du format                         : High@L3.1
    Paramètres du format                     : CABAC / 2 Ref Frames
    Paramètres du format, CABAC              : Oui
    Paramètres du format, RefFrames          : 2 images
    Paramètres du format, GOP                : M=1, N=50
    Identifiant du codec                     : avc1
    Identifiant du codec/Info                : Advanced Video Coding
    Durée                                    : 51 min 48s
    Débit                                    : 1 967 kb/s
    Largeur                                  : 1 280 pixels
    Hauteur                                  : 720 pixels
    Format à l'écran                         : 16/9
    Type d'images/s                          : Constant
    Images par seconde                       : 25,000 Im/s
    Espace de couleurs                       : YUV
    Sous-échantillonnage de la chrominance   : 4:2:0
    Profondeur des couleurs                  : 8 bits
    Type de balayage                         : Progressif
    Bits/(Pixel*Image)                       : 0.085
    Taille du flux                           : 729 Mio (99%)
    Codec configuration box                  : avcC
    
    Audio
    ID                                       : 2
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Identifiant du codec                     : mp4a-40-2
    Durée                                    : 6 min 48s
    Type de débit                            : Constant
    Débit                                    : 96,0 kb/s
    Canaux                                   : 2 canaux
    ChannelLayout                            : L R
    Echantillonnage                          : 48,0 kHz
    Images par seconde                       : 46,875 Im/s (1024 SPF)
    Mode de compression                      : Avec perte
    Taille du flux                           : 4,67 Mio (1%)
    Default                                  : Oui
    AlternateGroup/String                    : 1

    – MP4 merged from DASH download (mp4box)

    Code:
    Général
    Nom complet                              : F:\20210920 LMDLS.mp4
    Format                                   : MPEG-4
    Profil du format                         : Base Media
    Identifiant du codec                     : isom (isom)
    Taille du fichier                        : 765 Mio
    Durée                                    : 51 min 48s
    Type de débit global                     : Variable
    Débit global moyen                       : 2 065 kb/s
    Date d'encodage                          : UTC 2021-09-29 13:42:26
    Date de marquage                         : UTC 2021-09-29 13:42:26
    
    Vidéo
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Profil du format                         : High@L3.1
    Paramètres du format                     : CABAC / 2 Ref Frames
    Paramètres du format, CABAC              : Oui
    Paramètres du format, RefFrames          : 2 images
    Paramètres du format, GOP                : M=1, N=50
    Identifiant du codec                     : avc1
    Identifiant du codec/Info                : Advanced Video Coding
    Durée                                    : 51 min 48s
    Débit                                    : 1 966 kb/s
    Débit maximum                            : 3 914 kb/s
    Largeur                                  : 1 280 pixels
    Hauteur                                  : 720 pixels
    Format à l'écran                         : 16/9
    Type d'images/s                          : Constant
    Images par seconde                       : 25,000 Im/s
    Espace de couleurs                       : YUV
    Sous-échantillonnage de la chrominance   : 4:2:0
    Profondeur des couleurs                  : 8 bits
    Type de balayage                         : Progressif
    Bits/(Pixel*Image)                       : 0.085
    Taille du flux                           : 728 Mio (95%)
    Date de marquage                         : UTC 2021-09-29 13:42:34
    Codec configuration box                  : avcC
    
    Audio
    ID                                       : 2
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Identifiant du codec                     : mp4a-40-2
    Durée                                    : 51 min 48s
    Type de débit                            : Variable
    Débit                                    : 96,0 kb/s
    Débit maximum                            : 101 kb/s
    Canaux                                   : 2 canaux
    ChannelLayout                            : L R
    Echantillonnage                          : 48,0 kHz
    Images par seconde                       : 46,875 Im/s (1024 SPF)
    Mode de compression                      : Avec perte
    Taille du flux                           : 35,6 Mio (5%)
    Langue                                   : Français
    Date de marquage                         : UTC 2021-09-29 13:42:34

    – attempt at merging HLS download with mp4box : it achieved failure

    Code:
    mp4box -add "20210920 LMDLS HLS V.fhls-2218.mp4":lang=und:name="" -add "20210920 LMDLS HLS V.fhls-audio-aacl-96-Audio_Français.mp4":lang=fre:name="" -new "F:\20210920 LMDLS HLS V.mp4" -tmp "C:"
    Importing MPEG-2 TS (PID 33)
    MPEG-4 AVC/H264 Video import (TS PID 33)
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - may have lost end of previous PES
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - may have lost end of previous PES
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - may have lost end of previous PES
    [...]
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - may have lost end of previous PES
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - may have lost end of previous PES
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - may have lost end of previous PES
    [MPEG-2 TS] TS Packet 895062 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - may have lost end of previous PES
    [MPEG-2 TS] PES 33: Packet discontinuity (1 expected - got 2) - trashing PES packet
    [MPEG-2 TS] TS Packet 895163 has error (PID could be 5607)
    [MPEG-2 TS] TS Packet 895246 has error (PID could be 28)
    [MPEG-2 TS] PES 33: Packet discontinuity (13 expected - got 14) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - trashing PES packet
    [MPEG-2 TS] TS Packet 895481 has error (PID could be 7087)
    [MPEG-2 TS] PES 33: Packet discontinuity (10 expected - got 11) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (0 expected - got 1) - trashing PES packet
    [MPEG-2 TS] TS Packet 895573 has error (PID could be 1556)
    [MPEG-2 TS] TS Packet 895585 has error (PID could be 4521)
    [MPEG-2 TS] PES 33: Packet discontinuity (8 expected - got 9) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (10 expected - got 11) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (12 expected - got 13) - trashing PES packet
    [MPEG-2 TS] TS Packet 895766 has error (PID could be 3227)
    [MPEG-2 TS] PES 33: Packet discontinuity (3 expected - got 4) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (1 expected - got 2) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (11 expected - got 12) - trashing PES packet
    [MPEG-2 TS] TS Packet 895867 has error (PID could be 5773)
    [MPEG-2 TS] TS Packet 895895 has error (PID could be 1702)
    [MPEG-2 TS] PES 33: Packet discontinuity (13 expected - got 14) - trashing PES packet
    [MPEG-2 TS] TS Packet 896014 has error (PID could be 4358)
    [MPEG-2 TS] TS Packet 896030 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (13 expected - got 14) - trashing PES packet
    [MPEG-2 TS] TS Packet 896106 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (4 expected - got 5) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (8 expected - got 9) - trashing PES packet
    [MPEG-2 TS] TS Packet 896194 has error (PID could be 2027)
    [MPEG-2 TS] PES 33: Packet discontinuity (5 expected - got 6) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (7 expected - got 8) - trashing PES packet
    [MPEG-2 TS] TS Packet 896261 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (7 expected - got 8) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (5 expected - got 6) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (11 expected - got 12) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (11 expected - got 12) - trashing PES packet
    [MPEG-2 TS] TS Packet 896378 has error (PID could be 2062)
    [MPEG-2 TS] PES 33: Packet discontinuity (4 expected - got 5) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (0 expected - got 1) - trashing PES packet
    [MPEG-2 TS] TS Packet 896435 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (1 expected - got 2) - trashing PES packet
    [MPEG-2 TS] TS Packet 896469 has error (PID could be 1259)
    [MPEG-2 TS] PES 33: Packet discontinuity (2 expected - got 3) - trashing PES packet
    [MPEG-2 TS] TS Packet 896623 has error (PID could be 1412)
    [MPEG-2 TS] TS Packet 896687 has error (PID could be 4310)
    [MPEG-2 TS] TS Packet 896762 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (1 expected - got 2) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (3 expected - got 4) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (7 expected - got 8) - trashing PES packet
    [MPEG-2 TS] TS Packet 897002 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (2 expected - got 3) - trashing PES packet
    [MPEG-2 TS] TS Packet 897044 has error (PID could be 6783)
    [MPEG-2 TS] PES 33: Packet discontinuity (3 expected - got 4) - trashing PES packet
    [MPEG-2 TS] TS Packet 897110 has error (PID could be 6949)
    [MPEG-2 TS] PES 33: Packet discontinuity (12 expected - got 13) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (6 expected - got 7) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (14 expected - got 15) - trashing PES packet
    [MPEG-2 TS] TS Packet 897265 is scrambled - not supported
    [MPEG-2 TS] TS Packet 897327 has error (PID could be 1376)
    [MPEG-2 TS] TS Packet 897385 is scrambled - not supported
    [MPEG-2 TS] TS Packet 897411 has error (PID could be 3498)
    [MPEG-2 TS] PES 33: Packet discontinuity (4 expected - got 5) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (0 expected - got 1) - trashing PES packet
    [MPEG-2 TS] TS Packet 897456 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (13 expected - got 14) - trashing PES packet
    [MPEG-2 TS] TS Packet 897540 has error (PID could be 1326)
    [MPEG-2 TS] TS Packet 897583 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (7 expected - got 8) - trashing PES packet
    [MPEG-2 TS] TS Packet 897684 is scrambled - not supported
    [MPEG-2 TS] TS Packet 897691 has error (PID could be 6416)
    [MPEG-2 TS] PES 33: Packet discontinuity (13 expected - got 14) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (9 expected - got 10) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (4 expected - got 5) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (10 expected - got 11) - trashing PES packet
    [MPEG-2 TS] TS Packet 897830 has error (PID could be 1267)
    [MPEG-2 TS] TS Packet 897853 has error (PID could be 3703)
    [MPEG-2 TS] PES 33: Packet discontinuity (6 expected - got 7) - trashing PES packet
    [MPEG-2 TS] TS Packet 897912 AF size is 196 when it must be 183 for AF type 2
    [MPEG-2 TS] TS Packet 897940 has error (PID could be 2105)
    [MPEG-2 TS] PES 33: Packet discontinuity (0 expected - got 1) - trashing PES packet
    [MPEG-2 TS] TS Packet 897991 is scrambled - not supported
    [MPEG-2 TS] TS Packet 897997 has error (PID could be 3463)
    [MPEG-2 TS] TS Packet 898271 has error (PID could be 4998)
    [MPEG-2 TS] PES 33: Packet discontinuity (1 expected - got 2) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (11 expected - got 12) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (7 expected - got 8) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (1 expected - got 2) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (13 expected - got 14) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (11 expected - got 12) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (7 expected - got 8) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (3 expected - got 4) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (13 expected - got 14) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (9 expected - got 10) - trashing PES packet
    [MPEG-2 TS] TS Packet 898732 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (8 expected - got 9) - trashing PES packet
    [MPEG-2 TS] TS Packet 898791 has error (PID could be 3766)
    [MPEG-2 TS] PES 33: Packet discontinuity (11 expected - got 12) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (15 expected - got 0) - trashing PES packet
    [MPEG-2 TS] TS Packet 898932 is scrambled - not supported
    [...]
    [MPEG-2 TS] TS Packet 920108 has error (PID could be 2040)
    [MPEG-2 TS] TS Packet 920115 has error (PID could be 3898)
    [MPEG-2 TS] TS Packet 920219 has error (PID could be 2164)
    [MPEG-2 TS] PES 33: Packet discontinuity (1 expected - got 2) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (11 expected - got 12) - trashing PES packet
    [MPEG-2 TS] TS Packet 920370 is scrambled - not supported
    [MPEG-2 TS] TS Packet 920409 has error (PID could be 1931)
    [MPEG-2 TS] PES 33: Packet discontinuity (7 expected - got 8) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (5 expected - got 6) - trashing PES packet
    [MPEG-2 TS] TS Packet 920483 has error (PID could be 4829)
    [MPEG-2 TS] PES 33: Packet discontinuity (0 expected - got 1) - trashing PES packet
    [MPEG-2 TS] TS Packet 920592 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (9 expected - got 10) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (5 expected - got 6) - trashing PES packet
    [MPEG-2 TS] TS Packet 920730 has error (PID could be 7586)
    [MPEG-2 TS] PES 33: Packet discontinuity (2 expected - got 3) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (10 expected - got 11) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (0 expected - got 1) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (10 expected - got 11) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (4 expected - got 5) - trashing PES packet
    [MPEG-2 TS] TS Packet 920966 has error (PID could be 7191)
    [MPEG-2 TS] PES 33: Packet discontinuity (5 expected - got 6) - trashing PES packet
    [MPEG-2 TS] TS Packet 921013 AF size is 71 when it must be 183 for AF type 2
    [MPEG-2 TS] PES 33: Packet discontinuity (14 expected - got 15) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (0 expected - got 1) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (6 expected - got 7) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (10 expected - got 11) - trashing PES packet
    [MPEG-2 TS] TS Packet 921257 is scrambled - not supported
    [MPEG-2 TS] PES 33: Packet discontinuity (1 expected - got 2) - trashing PES packet
    [MPEG-2 TS] PES 33: Packet discontinuity (11 expected - got 12) - trashing PES packet
    ^C
    Last edited by abolibibelot; 29th Sep 2021 at 10:38.
    Quote Quote  
  4. Then why are you suggesting aria2c ? What can it do that youtube-dl or yt-dlp can't ?
    It works in conjunction with the mother program and speeds downloads up 10 fold. If you want to spend an hour downloading something that can be downloaded in less than 10 minutes - lose the aria2c code. Your decision.

    What about Streamlink ? (Based on the description it is primarily meant to "pipe video streams from various services into a video player", so downloading doesn't seem to be its raison d'être.)
    The original intention was to pipe to a player - now the primary usage is to download to an output format. Its an excellent program but similar to yt-dl it will not download DRM.

    But yt-dlp will.

    Another question was : with youtube-dl or yt-dlp, are there ways to automatically select the best available stream from a specific protocol
    There is yes, but both programs differ wildly in their default selection criteria for 'best'. They are not similar in this respect whatsoever. Read the docs.

    https://github.com/yt-dlp/yt-dlp#differences-in-default-behavior

    Personally I never use this method and leave selection to chance - I nominate / name my video+audio selection formats.

    Apparently youtube-dl doesn't allow TS among the possible output formats
    It does:

    Code:
    --hls-use-mpegts
    Last edited by codehound; 29th Sep 2021 at 10:37.
    Quote Quote  
  5. It works in conjunction with the mother program and speeds downloads up 10 fold. If you want to spend an hour downloading something that can be downloaded in less than 10 minutes - lose the aria2c code. Your decision.
    Alright, alright ! Didn't say I didn't want to use it, only asked for a valid reason to use it, no need to be harsh...

    Personally I never use this method and leave selection to chance - I nominate / name my video+audio selection formats.
    For YouTube videos for instance I do the same, as every video has different formats available and the outcome of an automatic selection is rather unpredictable, but in a case like this, when regularly downloading the same broadcasts from the same platform proposing consistently the same formats, I figure that it can be safe to automate and do the download with a script.
    The integrated guide with youtube-dl is rather sparse on that aspect, and barely mentions advanced tricks which I've seen suggested on this forum (here for instance), it's quite difficult to come up with a working syntax based on the provided information.
    Code:
        --match-filter FILTER            Generic video filter. Specify any key (see
                                         the "OUTPUT TEMPLATE" for a list of
                                         available keys) to match if the key is
                                         present, !key to check if the key is not
                                         present, key > NUMBER (like "comment_count
                                         > 12", also works with >=, <, <=, !=, =) to
                                         compare against a number, key = 'LITERAL'
                                         (like "uploader = 'Mike Smith'", also works
                                         with !=) to match against a string literal
                                         and & to require multiple matches. Values
                                         which are not known are excluded unless you
                                         put a question mark (?) after the operator.
                                         For example, to only match videos that have
                                         been liked more than 100 times and disliked
                                         less than 50 times (or the dislike
                                         functionality is not available at the given
                                         service), but who also have a description,
                                         use --match-filter "like_count > 100 &
                                         dislike_count <? 50 & description" .
    It does: / --hls-use-mpegts
    Well then the integrated guide is confusing :
    Code:
        --merge-output-format FORMAT     If a merge is required (e.g.
                                         bestvideo+bestaudio), output to given
                                         container format. One of mkv, mp4, ogg,
                                         webm, flv. Ignored if no merge is required
    Quote Quote  
  6. Alright, alright ! Didn't say I didn't want to use it, only asked for a valid reason to use it, no need to be harsh...
    Sorry if that came over as harsh. I have no idea how saying 'your decision' could be interpreted as harsh, though. Its personal preference whether you want to use it or not.

    Have you any issues with this france.tv still ? If so, which video ? And what format do you want it in ? I'll be glad to help.
    Last edited by codehound; 29th Sep 2021 at 19:00.
    Quote Quote  
  7. Well, I tried to get aria2(c), but got stuck right there :
    Cross-compiling Windows binary

    In this section, we describe how to build a Windows binary using a mingw-w64 (http://mingw-w64.org/doku.php) cross-compiler on Debian Linux. The MinGW (http://www.mingw.org/) may not be able to build aria2.

    The easiest way to build Windows binary is use Dockerfile.mingw. See Dockerfile.mingw how to build binary. If you cannot use Dockerfile, then continue to read following paragraphs.

    Basically, after compiling and installing depended libraries, you can do cross-compile just passing appropriate --host option and specifying CPPFLAGS, LDFLAGS and PKG_CONFIG_LIBDIR variables to configure. For convenience and lowering our own development cost, we provide easier way to configure the build settings.

    mingw-config script is a configure script wrapper for mingw-w64. We use it to create official Windows build. This script assumes following libraries have been built for cross-compile:

    c-ares
    expat
    sqlite3
    zlib
    libssh2
    cppunit

    Some environment variables can be adjusted to change build settings:

    HOST
    cross-compile to build programs to run on HOST. It defaults to i686-w64-mingw32. To build 64bit binary, specify x86_64-w64-mingw32.
    PREFIX
    Prefix to the directory where dependent libraries are installed. It defaults to /usr/local/$HOST. -I$PREFIX/include will be added to CPPFLAGS. -L$PREFIX/lib will be added to LDFLAGS. $PREFIX/lib/pkgconfig will be set to PKG_CONFIG_LIBDIR.

    For example, to build 64bit binary do this:

    $ HOST=x86_64-w64-mingw32 ./mingw-config

    If you want libaria2 dll with --enable-libaria2, then don't use ARIA2_STATIC=yes and prepare the DLL version of external libraries.
    Sorry but this seems awfully complicated, and I have already more than enough complicated things to think about.
    Is there a pre-compliled Windows executable available somewhere ?


    The original intention was to pipe to a player - now the primary usage is to download to an output format. Its an excellent program but similar to yt-dl it will not download DRM.
    Then perhaps it would be time to update the description on the dedicated page in VideoHelp's download section.


    Have you any issues with this france.tv still ? If so, which video ? And what format do you want it in ? I'll be glad to help.
    I still have issues with any video from this platform because 1) there is a working extractor patch for youtube-dl but youtube-dl itself is no longer developped so it's a dead end ; 2) the patch is currently being adapted for yt-dlp but hasn't yet been merged with the main repository (if that's the correct terminology) ; downloading videos in DASH is slow (I'm definitely eager to try aria2c, but as I said above, merely getting it to work adds yet another layer of complexity to the whole thing), downloading videos in HLS is unreliable because of that truncated audio issue ; downloading subtitles is slow no matter what (Captvty manages to retrieve properly formatted subtitles in a split second, don't know how, I asked here, got no satisfying reply).
    The goal is merely to get regular MP4 files + subtitles, as before, as reliably as possible (as I already mentioned I've had reliability issues when downloading from this platform, had to download every video at least twice and usually at least three times until I got two identical non corrupted files ; at least one person confirmed having the same issue ; Captvty doesn't seem to have that problem, but the problem with Captvty is that it downloads to TS container, and for some reason those TS files can't be converted properly to MP4 in one step, if using ffmpeg there's always a glitch at the end, and mp4box chokes on them, no such issues when merging the elementary streams downloaded in DASH with youtube-dl / yt-dlp).
    Quote Quote  
  8. @abolibibelot

    You need aria2c for Windows, already compiled. Scroll down the page a little way and you will see the 2 Windows flavours for the latest release 1.36.0, x86 and x64, select the correct one for your windows version.
    https://github.com/aria2/aria2/releases

    Unzip, and put the .exe. in the same folder as yt-dlp.exe and ffmpeg.exe

    Is your ffmpeg a cropped down version ? It needs to be the full version ~107 mb
    https://www.mediafire.com/file/mv3ffex88q6z3ef/ffmpeg.exe/file

    Post back a VOD you require (or PM me). Lets get this sorted out.
    Last edited by codehound; 7th Oct 2021 at 14:37.
    Quote Quote  
  9. You need aria2c for Windows, already compiled. Scroll down the page a little way and you will see the 2 Windows flavours for the latest release 1.36.0, x86 and x64, select the correct one for your windows version.
    https://github.com/aria2/aria2/releases
    Sorry I missed that... (But the full-blown instructions for compiling on the main page are a bit confusing and a bit off-putting as a nearly newbie.)

    Regarding ffmpeg, I do have the full build of the most recent version I could find (2021/04/09) which is indeed about 107MB{1} in a folder called “CLI” which I put in Windows' PATH (so I can put all CLI utilities I use regularly in that one folder and avoid doing it all over again for each new one), but since there are many other versions scattered all over the place, it's rather unpredictable which one will actually be called into action. Recently I found out that when I type “ffmpeg” the version being executed is not the one in “CLI”, but a 2019 version (v. 4.2.3 as can be seen in the logs below) located in “C:\Program Files\ImageMagick\” — yet another SNAFU to take into account. So I renamed that newer version as “ffmpeg64.exe”, and normally that's the one executed when I type “ffmpeg64”, but this might not be what youtube-dl or yt-dlp expects — and since I'm currently using the patched youtube-dl through a Python command (with the complete path to the “__main__.py” file — see the full command below), I'm not even sure what “putting it in the same folder” means.
    What specific component does the full version have which is required here and is missing in “cropped down” builds ?
    Generally speaking, how does Windows (or whichever specific component of Windows managing the operation of command line utilities) decide which of several versions of the same executable with the same name all present in the “PATH” will get executed when the complete path is not specified in the command ? Are there rules like “by alphabetic order”, or “by path depth”, or is there a specific sorting order, with for instance “Windows” or “Program files” folders being parsed first, or does it depend upon the order in which folders are listed in the “PATH” settings, with system variables superseding user defined variables ?

    {1} Precisely : size = 112424960 / MD5 = 544FF37775A43DAAF30A7731FEC87BFE.


    For testing purposes, this one should be suitable — short duration, should be available about a month :
    https://www.france.tv/france-5/la-p-tite-librairie/2781809-kim-par-rudyard-kilpling.html
    Another one which should also be available about a month, with a longer duration, to investigate that truncated audio issue :
    https://www.france.tv/france-5/c-dans-l-air/2781807-emission-du-vendredi-1-octobre-2021.html


    Another weirdness I discovered : when the HLS stream gets downloaded automatically by youtube-dl (with the patched extractor), the audio is truncated after 6min48s as I already reported. But when the same HLS stream is downloaded manually (with youtube-dl's last official release from 2021/06/06), the audio track is complete. Apparently, when fed directly with a HLS link, youtube-dl downloads the elementary streams through ffmpeg, as MP4, and those streams can then be merged with no issue. When youtube-dl does the fetching / extraction process by itself, it downloads the elementary streams through another method, as TS / ADTS, and then the merged file has this issue with the audio track.

    – download with .html link, using youtube-dl patched extractor (with “-f bestvideo+bestaudio” setting which selects the HLS stream rather than the DASH stream most likely because the apparent bitrate is slightly higher as I reported above) :
    Code:
    G:\TV temp>python "C:\Logiciels autonomes\youtube-dl-sarnoud-francetv\youtube_dl\__main__.py" -f bestvideo+bestaudio https://www.france.tv/france-5/c-a-dire/c-a-dire-saison-15/2781793-vieillir-n-est-pas-un-crime.html -o "H:\%(upload_date)s - F5 - %(title)s [%(id)s] [bv+ba].%(ext)s" -k
    [FranceTVSite] 2781793-vieillir-n-est-pas-un-crime: Downloading webpage
    [FranceTV] 326b5bfc-64a7-4efc-ac3a-c1e0964fc486: Downloading desktop video JSON
    [FranceTV] 326b5bfc-64a7-4efc-ac3a-c1e0964fc486: Downloading mobile video JSON
    [FranceTV] 326b5bfc-64a7-4efc-ac3a-c1e0964fc486: Downloading signed dash manifest URL
    [FranceTV] 326b5bfc-64a7-4efc-ac3a-c1e0964fc486: Downloading MPD manifest
    WARNING: [FranceTV] Unknown MIME type application/mp4 in DASH manifest
    [FranceTV] 326b5bfc-64a7-4efc-ac3a-c1e0964fc486: Downloading signed hls manifest URL
    [FranceTV] 326b5bfc-64a7-4efc-ac3a-c1e0964fc486: Downloading m3u8 information
    [hlsnative] Downloading m3u8 manifest
    [hlsnative] Total fragments: 67
    [download] Destination: H:\NA - F5 - C à dire ! - Vieillir n'est pas un crime ! [326b5bfc-64a7-4efc-ac3a-c1e0964fc486] [bv+ba].mp4.fhls-2218
    [download] 100% of 131.56MiB in 02:17
    [hlsnative] Downloading m3u8 manifest
    [hlsnative] Total fragments: 68
    [download] Destination: H:\NA - F5 - C à dire ! - Vieillir n'est pas un crime ! [326b5bfc-64a7-4efc-ac3a-c1e0964fc486] [bv+ba].mp4.fhls-audio-aacl-96-Audio_Français
    [download] 100% of 6.31MiB in 00:18
    [ffmpeg] Merging formats into "H:\NA - F5 - C à dire ! - Vieillir n'est pas un crime ! [326b5bfc-64a7-4efc-ac3a-c1e0964fc486] [bv+ba].mp4"
    MediaInfo report for elementary video stream :
    Code:
    General
    ID                                       : 16727 (0x4157)
    Complete name                            : H:\NA - F5 - C à dire ! - Vieillir n'est pas un crime ! [326b5bfc-64a7-4efc-ac3a-c1e0964fc486] [bv+ba].mp4.fhls-2218
    Format                                   : MPEG-TS
    File size                                : 132 MiB
    Duration                                 : 8 min 55 s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 2 059 kb/s
    FileExtension_Invalid                    : ts m2t m2s m4t m4s tmf ts tp trp ty
    
    Video
    ID                                       : 33 (0x21)
    Menu ID                                  : 16727 (0x4157)
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.1
    Format settings                          : CABAC / 2 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, Reference frames        : 2 frames
    Format settings, GOP                     : M=1, N=50
    Codec ID                                 : 27
    Duration                                 : 8 min 55 s
    Bit rate                                 : 1 957 kb/s
    Maximum bit rate                         : 1 990 kb/s
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate                               : 25.000 FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.085
    Stream size                              : 125 MiB (95%)
    – MediaInfo report for elementary audio stream :
    Code:
    General
    Complete name                            : H:\NA - F5 - C à dire ! - Vieillir n'est pas un crime ! [326b5bfc-64a7-4efc-ac3a-c1e0964fc486] [bv+ba].mp4.fhls-audio-aacl-96-Audio_Français
    Format                                   : ADTS
    Format/Info                              : Audio Data Transport Stream
    File size                                : 6.31 MiB
    Overall bit rate mode                    : Variable
    FileExtension_Invalid                    : aac aacp adts
    
    Audio
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Format version                           : Version 4
    Codec ID                                 : 2 ## the duration is not specified
    Bit rate mode                            : Variable
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Stream size                              : 6.31 MiB (100%)
    – MediaInfo report for the merged MP4 file :
    Code:
    General
    Complete name                            : H:\NA - F5 - C à dire ! - Vieillir n'est pas un crime ! [326b5bfc-64a7-4efc-ac3a-c1e0964fc486] [bv+ba].mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom (isom/iso2/avc1/mp41)
    File size                                : 132 MiB
    Duration                                 : 8 min 56 s
    Overall bit rate                         : 2 068 kb/s
    Writing application                      : Lavf58.29.100
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.1
    Format settings                          : CABAC / 2 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, Reference frames        : 2 frames
    Format settings, GOP                     : M=1, N=50
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 8 min 56 s
    Bit rate                                 : 1 991 kb/s
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.086
    Stream size                              : 127 MiB (96%)
    Codec configuration box                  : avcC
    
    Audio
    ID                                       : 2
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : mp4a-40-2
    Duration                                 : 6 min 48 s
    Bit rate mode                            : Constant
    Bit rate                                 : 96.0 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Stream size                              : 4.67 MiB (4%)
    Default                                  : Yes
    Alternate group                          : 1
    – download with the HLS link, using youtube-dl's last official build :
    Code:
    G:\>youtube-dl -f bestvideo+bestaudio "https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02NT
    JhMmNiNzBhMmMyMjBiN2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/master.m3u8?hdnea=exp=1633708745~acl=%2f5eba540d27516%2f1040615901_monde_TA.ism*~hmac=0109bdbae2784cea3ab8f0be1627ac03e2e943b11cd4ec7646e25e766f581399" -o "H:\20211001 - F5 - C à dire [HLS].mp4" --write-info-json -k
    [generic] master.m3u8?hdnea=exp=1633708745~acl=/5eba540d27516/1040615901_monde_TA: Requesting header
    [generic] master.m3u8?hdnea=exp=1633708745~acl=/5eba540d27516/1040615901_monde_TA: Downloading m3u8 information
    [info] Writing video description metadata as JSON to: H:\20211001 - F5 - C à dire [HLS].info.json
    [download] Destination: H:\20211001 - F5 - C à dire [HLS].f2218.mp4
    ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
      built with gcc 9.3.1 (GCC) 20200523
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
      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
      libswscale      5.  5.100 /  5.  5.100
      libswresample   3.  5.100 /  3.  5.100
      libpostproc    55.  5.100 / 55.  5.100
    [hls @ 00000000005b2040] Skip ('#EXT-X-VERSION:5')
    [hls @ 00000000005b2040] Skip ('## Created with Unified Streaming Platform(version=1.8.3)')
    [hls @ 00000000005b2040] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
    [hls @ 00000000005b2040] Skip ('#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z')
    [hls @ 00000000005b2040] Opening 'https://cloudreplay.ftven.fr/keys/a52a.key' for reading
    [hls @ 00000000005b2040] Opening 'crypto+https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02
    NTJhMmNiNzBhMmMyMjBiN2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/1040615901_monde_TA-video=2000000-1.ts' for reading
    Input #0, hls, from 'https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02NTJhMmNiNzBhMmMyMjBi
    N2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/1040615901_monde_TA-video=2000000.m3u8':
      Duration: 00:08:56.00, start: 10.000000, bitrate: 0 kb/s
      Program 0
        Metadata:
          variant_bitrate : 0
        Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
        Metadata:
          variant_bitrate : 0
    Output #0, mp4, to 'file:H:\20211001 - F5 - C Ã* dire [HLS].f2218.mp4.part':
      Metadata:
        encoder         : Lavf58.29.100
        Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [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
    [hls @ 00000000005b2040] Opening 'crypto+https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02
    NTJhMmNiNzBhMmMyMjBiN2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/1040615901_monde_TA-video=2000000-2.ts' for reading
    [...]
    [hls @ 00000000005b2040] Opening 'crypto+https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02
    NTJhMmNiNzBhMmMyMjBiN2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/1040615901_monde_TA-video=2000000-66.ts' for reading
    [hls @ 00000000005b2040] Opening 'crypto+https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02
    NTJhMmNiNzBhMmMyMjBiN2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/1040615901_monde_TA-video=2000000-67.ts' for reading
    frame=13400 fps=101 q=-1.0 Lsize=  130324kB time=00:08:55.96 bitrate=1992.0kbits/s speed=4.05x
    video:130255kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.053193%
    [ffmpeg] Downloaded 133451934 bytes
    [download] 100% of 127.27MiB in 02:14
    [download] Destination: H:\20211001 - F5 - C à dire [HLS].faudio-aacl-96-Audio_Français.mp4
    ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
      built with gcc 9.3.1 (GCC) 20200523
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
      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
      libswscale      5.  5.100 /  5.  5.100
      libswresample   3.  5.100 /  3.  5.100
      libpostproc    55.  5.100 / 55.  5.100
    [hls @ 00000000004d2100] Skip ('#EXT-X-VERSION:5')
    [hls @ 00000000004d2100] Skip ('## Created with Unified Streaming Platform(version=1.8.3)')
    [hls @ 00000000004d2100] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
    [hls @ 00000000004d2100] Skip ('#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z')
    [hls @ 00000000004d2100] Opening 'https://cloudreplay.ftven.fr/keys/a52a.key' for reading
    [hls @ 00000000004d2100] Opening 'crypto+https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02
    NTJhMmNiNzBhMmMyMjBiN2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/1040615901_monde_TA-audio_fre=96000-1.aac' for reading
    Input #0, hls, from 'https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02NTJhMmNiNzBhMmMyMjBi
    N2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/1040615901_monde_TA-audio_fre=96000.m3u8':
      Duration: 00:08:56.06, start: 10.000000, bitrate: 0 kb/s
      Program 0
        Metadata:
          variant_bitrate : 0
        Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 87 kb/s
        Metadata:
          variant_bitrate : 0
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x00\x0d\xbb\xa0
    Output #0, mp4, to 'file:H:\20211001 - F5 - C Ã* dire [HLS].faudio-aacl-96-Audio_Français.mp4.part':
      Metadata:
        encoder         : Lavf58.29.100
        Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 87 kb/s
        Metadata:
          variant_bitrate : 0
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x00\x0d\xbb\xa0
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [hls @ 00000000004d2100] Opening 'crypto+https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02
    NTJhMmNiNzBhMmMyMjBiN2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/1040615901_monde_TA-audio_fre=96000-2.aac' for reading
    [...]
    [hls @ 00000000004d2100] Opening 'crypto+https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02
    NTJhMmNiNzBhMmMyMjBiN2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/1040615901_monde_TA-audio_fre=96000-67.aac' for reading
    [hls @ 00000000004d2100] Opening 'crypto+https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3Mjk3NDV+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz02
    NTJhMmNiNzBhMmMyMjBiN2E0N2I3MWFkOTMwNzY2Mjc1NDBiOTM0YWRmMGY1ZWEzNTFjMjI2OGRkMGVlODQ3/1040615901_monde_TA-audio_fre=96000-68.aac' for reading
    size=    6381kB time=00:08:56.04 bitrate=  97.5kbits/s speed=24.1x
    video:0kB audio:6454kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    [ffmpeg] Downloaded 6534629 bytes
    [download] 100% of 6.23MiB in 00:23
    [ffmpeg] Merging formats into "H:\20211001 - F5 - C à dire [HLS].mp4"
    – Media report for elementary video stream :
    Code:
    General
    Complete name                            : H:\20211001 - F5 - C à dire [HLS].f2218.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom (isom/iso2/avc1/mp41)
    File size                                : 127 MiB
    Duration                                 : 8 min 56 s
    Overall bit rate                         : 1 992 kb/s
    Writing application                      : Lavf58.29.100
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.1
    Format settings                          : CABAC / 2 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, Reference frames        : 2 frames
    Format settings, GOP                     : M=1, N=50
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 8 min 56 s
    Bit rate                                 : 1 991 kb/s
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.086
    Stream size                              : 127 MiB (100%)
    Codec configuration box                  : avcC
    – MediaInfo report for elementary audio stream :
    Code:
    General
    Complete name                            : H:\20211001 - F5 - C à dire [HLS].faudio-aacl-96-Audio_Français.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom (isom/iso2/mp41)
    File size                                : 6.23 MiB
    Duration                                 : 8 min 56 s
    Overall bit rate mode                    : Constant
    Overall bit rate                         : 97.5 kb/s
    Writing application                      : Lavf58.29.100
    
    Audio
    ID                                       : 1
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : mp4a-40-2
    Duration                                 : 8 min 56 s
    Bit rate mode                            : Constant
    Bit rate                                 : 96.0 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Stream size                              : 6.14 MiB (98%)
    Default                                  : Yes
    Alternate group                          : 1
    – MediaInfo report for merged MP4 file :
    Code:
    General
    Complete name                            : H:\20211001 - F5 - C à dire [HLS].mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom (isom/iso2/avc1/mp41)
    File size                                : 134 MiB
    Duration                                 : 8 min 56 s
    Overall bit rate                         : 2 091 kb/s
    Writing application                      : Lavf58.29.100
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.1
    Format settings                          : CABAC / 2 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, Reference frames        : 2 frames
    Format settings, GOP                     : M=1, N=50
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 8 min 56 s
    Bit rate                                 : 1 991 kb/s
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.086
    Stream size                              : 127 MiB (95%)
    Codec configuration box                  : avcC
    
    Audio
    ID                                       : 2
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : mp4a-40-2
    Duration                                 : 8 min 56 s
    Bit rate mode                            : Constant
    Bit rate                                 : 96.0 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Stream size                              : 6.14 MiB (5%)
    Default                                  : Yes
    Alternate group                          : 1

    [EDIT]
    I made another test with a HLS link, adding the option --hls-prefer-native : this time the files (V & A streams and merged MP4) are strictly identical to the ones obtained with the automated download (with the .html link) using the patched extractor (audio is truncated at 6min48s), which means that this is the default setting in that case. Conversely, using --hls-prefer-ffmpeg should fix the truncated audio issue with automated HLS downloads (as it is mentioned here).


    Code:
    G:\>youtube-dl -f bestvideo+bestaudio "https://cloudreplay.ftven.fr/5eba540d27516/1040615901_monde_TA.ism/ZXhwPTE2MzM3NDQzNzF+YWNsPSUyZjVlYmE1NDBkMjc1MTYlMmYxMDQwNjE1OTAxX21vbmRlX1RBLmlzbSp+aG1hYz0zMj
    k5MzcyM2U0MTRjYzg1MjVkNTBlZmIyYjUzOGVhYzRhNjhmNWJmODRkZjBmYTIxMGI3ZTg0Mjg3YjY4YWJj/master.m3u8?hdnea=exp=1633723371~acl=%2f5eba540d27516%2f1040615901_monde_TA.ism*~hmac=2630bb69bfb02d575226a09d3722f30
    7d83138bda3d5a6dd85fbb283b8e58fcc" --hls-prefer-native -o "H:\20211001 - F5 - C à dire [HLS --hls-prefer-native].mp4" --write-info-json -k
    [generic] master.m3u8?hdnea=exp=1633723371~acl=/5eba540d27516/1040615901_monde_TA: Requesting header
    [generic] master.m3u8?hdnea=exp=1633723371~acl=/5eba540d27516/1040615901_monde_TA: Downloading m3u8 information
    [info] Writing video description metadata as JSON to: H:\20211001 - F5 - C à dire [HLS --hls-prefer-native].info.json
    [hlsnative] Downloading m3u8 manifest
    [hlsnative] Total fragments: 67
    [download] Destination: H:\20211001 - F5 - C à dire [HLS --hls-prefer-native].f2218.mp4
    [download] 100% of 131.56MiB in 02:14
    [hlsnative] Downloading m3u8 manifest
    [hlsnative] Total fragments: 68
    [download] Destination: H:\20211001 - F5 - C à dire [HLS --hls-prefer-native].faudio-aacl-96-Audio_Français.mp4
    [download] 100% of 6.31MiB in 00:18
    [ffmpeg] Merging formats into "H:\20211001 - F5 - C à dire [HLS --hls-prefer-native].mp4"
    Code:
    General
    Complete name                            : H:\20211001 - F5 - C à dire [HLS --hls-prefer-native].mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom (isom/iso2/avc1/mp41)
    File size                                : 132 MiB
    Duration                                 : 8 min 56 s
    Overall bit rate                         : 2 068 kb/s
    Writing application                      : Lavf58.29.100
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.1
    Format settings                          : CABAC / 2 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, Reference frames        : 2 frames
    Format settings, GOP                     : M=1, N=50
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 8 min 56 s
    Bit rate                                 : 1 991 kb/s
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.086
    Stream size                              : 127 MiB (96%)
    Codec configuration box                  : avcC
    
    Audio
    ID                                       : 2
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : mp4a-40-2
    Duration                                 : 6 min 48 s
    Bit rate mode                            : Constant
    Bit rate                                 : 96.0 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Stream size                              : 4.67 MiB (4%)
    Default                                  : Yes
    Alternate group                          : 1
    Last edited by abolibibelot; 8th Oct 2021 at 16:13.
    Quote Quote  
  10. I have given my advice in a post above. But you are still persisting with an abandoned project in youtube-dl and not only that but a hacked version too.

    yt-dlp is not youtube-dl

    As for ffmpeg I wouldn't know what has been left out, you had better ask the person you got it off.

    And it seems you are calling all sorts of outdated versions of apps from all over the place.

    Do you really need help making a folder? You need to call your cmd prompt from within the new folder you have all the required apps in by clearing the address bar and typing cmd into the address bar and hitting Enter (return key). Then you know you are working directly with all the correct apps in one place.

    I am out tonight so answering on cell phone. I can look at the vod tomorrow. Plus if this is basic HLS it may even be better with streamlink.
    Last edited by codehound; 8th Oct 2021 at 19:07.
    Quote Quote  
  11. I have given my advice in a post above. But you are still persisting with an abandoned project in youtube-dl and not only that but a hacked version too.
    As I said, the france.tv extractor is being adapted for yt-dlp but hasn't been merged yet, so for now I make do with what's available.
    Part of the issue (before the actual download) is to retrieve the video links — I know how to do it manually, but it's very tedious to do it on a regular basis, so an automated method is much preferred. Right now, the france.tv extractor in yt-dlp is as broken as the one in youtube-dl, that's why I'm temporarily using this “hacked” version. (In a way all these tools can be considered as “hacks”, so I don't get that criticism.)

    And it seems you are calling all sorts of outdated versions of apps from all over the place.
    Not so long ago youtube-dl was considered a state-of-the-art application with an extremely active development community. Everything gets outdated so quickly these days...
    As for ffmpeg : nothing intentional, I recently installed ImageShack, which included its own copy of ffmpeg, which happens to be version 4.2.3 from 2019, and I later found out that, when typing a command with “ffmpeg” (no complete path), this version was executed instead of the more recent one I intentionally put in the “PATH”.

    Do you really need help making a folder? You need to call your cmd prompt from within the new folder you have all the required apps in by clearing the address bar and typing cmd into the address bar and hitting Enter (return key). Then you know you are working directly with all the correct apps in one place.
    No, what I meant here was : since currently (for lack of a compiled executable) I run youtube-dl through a Python command pointing to the “__main__.py” file in the “hacked” youtube-dl folder, and since that folder is a quite complex structure with 24 folders and 1762 files, I'm not sure where in that hierarchy the ffmpeg.exe file should be put for it to work properly with both youtube-dl and aria2c. Another option would be to compile a patched youtube-dl.exe (or yt-dlp.exe) myself, but I don't know how to do that without clear instructions (which I requested but didn't get).
    (By the way I didn't know about the “typing cmd in the adress bar” trick. I knew an equivalent trick which is : from the parent folder, right-click on the target folder's icon while pressing SHIFT, then click on the extra contextual menu item “open a command prompt window here”. A “CD” command works as well. Another method is to create a script and put it in the target folder.)

    Plus if this is basic HLS it may even be better with streamlink.
    Again, what would be the advantage in using Streamlink over youtube-dl / yt-dlp ? I just tested it with one of the base HTML links above : apparently it does have a specific extractor for this platform (which used to be called “Pluzz”), but as for the other two, it's currently outdated.
    Code:
    streamlink https://www.france.tv/france-5/la-p-tite-librairie/2781809-kim-par-rudyard-kilpling.html
    [cli][info] Found matching plugin pluzz for URL https://www.france.tv/france-5/la-p-tite-librairie/2781809-kim-par-rudyard-kilpling.html
    error: Unable to open URL: http://sivideo.webservices.francetelevisions.fr/tools/getInfosOeuvre/v2/?idDiffusion=e2a9e972-90b9-4256-b65e-b78acd3cc6d2 (404 Client
     Error: Not Found for url: http://sivideo.webservices.francetelevisions.fr/tools/getInfosOeuvre/v2/?idDiffusion=e2a9e972-90b9-4256-b65e-b78acd3cc6d2)
    Quote Quote