ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.39k stars 10.04k forks source link

PBS Video Not Downloading (version: 2020.12.31) #27605

Open Blackstar-debug opened 3 years ago

Blackstar-debug commented 3 years ago

Checklist

Verbose log

C:\YouTubeDL>youtube-dl -v https://www.pbs.org/wgbh/nova/video/the-impossible-flight/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.pbs.org/wgbh/nova/video/the-impossible-flight/']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.12.31
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4
[debug] Proxy map: {}
[debug] Using fake IP 6.64.187.149 (US) as X-Forwarded-For.
[pbs] Downloading JSON metadata
[pbs] the-impossible-flight: Downloading webpage
[pbs] Downloading widget/partnerplayer page
[pbs] Downloading portalplayer page
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpabf7r3hs\build\youtube_dl\YoutubeDL.py", line 803, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpabf7r3hs\build\youtube_dl\YoutubeDL.py", line 824, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpabf7r3hs\build\youtube_dl\extractor\common.py", line 532, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpabf7r3hs\build\youtube_dl\extractor\pbs.py", line 661, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpabf7r3hs\build\youtube_dl\extractor\common.py", line 1367, in _sort_formats
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

Cannot get PBS video to download on either the Windows or Linux version of 2020.12.31

URL: https://www.pbs.org/wgbh/nova/video/the-impossible-flight/

october262 commented 3 years ago

try youtube-dl https://ga.video.cdn.pbs.org/videos/nova/cb6c6210-67f0-49b3-8938-b98f86b92841/2000210212/hd-16x9-mezzanine-1080p/nova4503_r-hls-16x9-1080p-234p-145k.m3u8

StevenDTX commented 3 years ago

Dont use the wgbh link. This works just fine:

https://www.pbs.org/video/the-impossible-flight-riui2e/

Carlz10 commented 3 years ago

Dont use the wgbh link. This works just fine:

https://www.pbs.org/video/the-impossible-flight-riui2e/

I just tried this on v2021-01-16 and it didnt work...The endpoint given by @october262 kicked off without issues, though.

StevenDTX commented 3 years ago

Dont use the wgbh link. This works just fine: https://www.pbs.org/video/the-impossible-flight-riui2e/

I just tried this on v2021-01-16 and it didnt work...The endpoint given by @october262 kicked off without issues, though.

Works just fine:

E:\>c:\support\youtube-dl.exe https://www.pbs.org/video/the-impossible-flight-riui2e/ --hls-prefer-native --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.pbs.org/video/the-impossible-flight-riui2e/', '--hls-prefer-native', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.01.16
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg N-100433-g50a9210739, ffprobe N-100433-g50a9210739
[debug] Proxy map: {}
[debug] Using fake IP 6.45.164.255 (US) as X-Forwarded-For.
[pbs] Downloading JSON metadata
[pbs] the-impossible-flight-riui2e: Downloading webpage
[pbs] the-impossible-flight-riui2e: Downloading widget/partnerplayer page
[pbs] the-impossible-flight-riui2e: Downloading portalplayer page
[pbs] the-impossible-flight-riui2e: Downloading 0 video url info
[pbs] the-impossible-flight-riui2e: Downloading m3u8 information
[pbs] the-impossible-flight-riui2e: Downloading 1 video url info
[pbs] the-impossible-flight-riui2e: Checking http-2000k video URL
[pbs] the-impossible-flight-riui2e: http-2000k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-6500k video URL
[pbs] the-impossible-flight-riui2e: http-6500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-4500k video URL
[pbs] the-impossible-flight-riui2e: http-4500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-3000k video URL
[pbs] the-impossible-flight-riui2e: Checking http-1100k video URL
[pbs] the-impossible-flight-riui2e: http-1100k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-730k video URL
[pbs] the-impossible-flight-riui2e: http-730k video URL is invalid, skipping: HTTP Error 403: Forbidden
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://ga.video.cdn.pbs.org/videos/nova/cb6c6210-67f0-49b3-8938-b98f86b92841/2000210212/hd-16x9-mezzanine-1080p/nova4503_r-hls-16x9-1080p-1080p-6500k.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 1134
[download] Destination: NOVA - The Impossible Flight-3008829324.mp4
[download]   0.5% of ~5.49GiB at  8.15MiB/s ETA 19:14
ERROR: Interrupted by user
Carlz10 commented 3 years ago

Yeah weird, I just retried the exact same cmd again and it's running now too. Maybe a VPN issue, which I didn't suspect seeing as the other link worked without any problems šŸ¤·ā€ā™€ļø

Mennaruuk commented 3 years ago

This command: youtube-dl "https://www.pbs.org/video/the-impossible-flight-riui2e/" produces this error:

C:\Users\Menna\Downloads>youtube-dl --verbose "https://www.pbs.org/video/the-impossible-flight-riui2e/"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.pbs.org/video/the-impossible-flight-riui2e/']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.01.24.1
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[debug] Using fake IP 6.135.193.79 (US) as X-Forwarded-For.
[pbs] Downloading JSON metadata
[pbs] the-impossible-flight-riui2e: Downloading webpage
[pbs] the-impossible-flight-riui2e: Downloading widget/partnerplayer page
[pbs] the-impossible-flight-riui2e: Downloading portalplayer page
[pbs] the-impossible-flight-riui2e: Downloading 0 video url info
[pbs] the-impossible-flight-riui2e: Downloading m3u8 information
[pbs] the-impossible-flight-riui2e: Downloading 1 video url info
[pbs] the-impossible-flight-riui2e: Checking http-2000k video URL
[pbs] the-impossible-flight-riui2e: http-2000k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-6500k video URL
[pbs] the-impossible-flight-riui2e: http-6500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-4500k video URL
[pbs] the-impossible-flight-riui2e: http-4500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-3000k video URL
[pbs] the-impossible-flight-riui2e: Checking http-1100k video URL
[pbs] the-impossible-flight-riui2e: http-1100k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-730k video URL
[pbs] the-impossible-flight-riui2e: http-730k video URL is invalid, skipping: HTTP Error 403: Forbidden
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://ga.video.cdn.pbs.org/videos/nova/cb6c6210-67f0-49b3-8938-b98f86b92841/2000210212/hd-16x9-mezzanine-1080p/nova4503_r-hls-16x9-1080p-1080p-6500k.m3u8'
[download] Destination: NOVA - The Impossible Flight-3008829324.mp4
ERROR: m3u8 download detected but ffmpeg or avconv could not be found. Please install one.
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\__init__.py", line 475, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\__init__.py", line 465, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 2056, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 799, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 806, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 838, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 872, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 1679, in process_video_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 1963, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 1902, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\downloader\common.py", line 366, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\downloader\external.py", line 35, in real_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\downloader\external.py", line 227, in _call_downloader
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\downloader\common.py", line 165, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 628, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 590, in trouble

This command: youtube-dl --hls-prefer-native "https://www.pbs.org/video/the-impossible-flight-riui2e/" starts downloading the file:

C:\Users\Menna\Downloads>youtube-dl --hls-prefer-native "https://www.pbs.org/video/the-impossible-flight-riui2e/
[pbs] Downloading JSON metadata
[pbs] the-impossible-flight-riui2e: Downloading webpage
[pbs] the-impossible-flight-riui2e: Downloading widget/partnerplayer page
[pbs] the-impossible-flight-riui2e: Downloading portalplayer page
[pbs] the-impossible-flight-riui2e: Downloading 0 video url info
[pbs] the-impossible-flight-riui2e: Downloading m3u8 information
[pbs] the-impossible-flight-riui2e: Downloading 1 video url info
[pbs] the-impossible-flight-riui2e: Checking http-2000k video URL
[pbs] the-impossible-flight-riui2e: http-2000k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-6500k video URL
[pbs] the-impossible-flight-riui2e: http-6500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-4500k video URL
[pbs] the-impossible-flight-riui2e: http-4500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-3000k video URL
[pbs] the-impossible-flight-riui2e: Checking http-1100k video URL
[pbs] the-impossible-flight-riui2e: http-1100k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] the-impossible-flight-riui2e: Checking http-730k video URL
[pbs] the-impossible-flight-riui2e: http-730k video URL is invalid, skipping: HTTP Error 403: Forbidden
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 1134
[download] Destination: NOVA - The Impossible Flight-3008829324.mp4
[download]   0.0% of ~5.50GiB at  2.18MiB/s ETA 01:09:52

Why is the parameter --hls-prefer-native required?

Mennaruuk commented 3 years ago

Last comment is not longer valid, looks like the video has been pulled.

Right. But the error is reproducible with other online videos, such as the following URL: https://www.pbs.org/video/pandora-papersmassacre-in-el-salvador-v2wjzz

youtube-dl -v "https://www.pbs.org/video/pandora-papersmassacre-in-el-salvador-v2wjzz"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.pbs.org/video/pandora-papersmassacre-in-el-salvador-v2wjzz']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[debug] Using fake IP 6.138.213.157 (US) as X-Forwarded-For.
[pbs] Downloading JSON metadata
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading webpage
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading widget/partnerplayer page
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading portalplayer page
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading 0 video url info
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading m3u8 information
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading 1 video url info
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-2000k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-2000k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-6500k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-6500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-4500k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-4500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-3000k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-1100k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-1100k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-730k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-730k video URL is invalid, skipping: HTTP Error 403: Forbidden
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://ga.video.cdn.pbs.org/videos/frontline/fbc5696b-ac83-4af4-8f76-d2e9e247f71d/2000264985/hd-16x9-mezzanine-1080p/00004011-hls-16x9-1080p-1080p-6500k.m3u8'
[download] Destination: FRONTLINE - Pandora Papers_Massacre in El Salvador-3061353278.mp4
ERROR: m3u8 download detected but ffmpeg or avconv could not be found. Please install one.
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\__init__.py", line 475, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\__init__.py", line 465, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 2069, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 808, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 847, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 881, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 1692, in process_video_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 1976, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 1915, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\downloader\common.py", line 366, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\downloader\external.py", line 35, in real_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\downloader\external.py", line 227, in _call_downloader
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\downloader\common.py", line 165, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 628, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 590, in trouble

vs


youtube-dl -v --hls-prefer-native "https://www.pbs.org/video/pandora-papersmassacre-in-el-salvador-v2wjzz"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--hls-prefer-native', 'https://www.pbs.org/video/pandora-papersmassacre-in-el-salvador-v2wjzz']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[debug] Using fake IP 6.111.176.158 (US) as X-Forwarded-For.
[pbs] Downloading JSON metadata
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading webpage
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading widget/partnerplayer page
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading portalplayer page
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading 0 video url info
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading m3u8 information
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading 1 video url info
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-2000k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-2000k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-6500k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-6500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-4500k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-4500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-3000k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-1100k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-1100k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-730k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-730k video URL is invalid, skipping: HTTP Error 403: Forbidden
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://ga.video.cdn.pbs.org/videos/frontline/fbc5696b-ac83-4af4-8f76-d2e9e247f71d/2000264985/hd-16x9-mezzanine-1080p/00004011-hls-16x9-1080p-1080p-6500k.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 543
[download] Destination: FRONTLINE - Pandora Papers_Massacre in El Salvador-3061353278.mp4
[download]   0.1% of ~2.56GiB at  1.44MiB/s ETA 33:58

FWIW, switch over to yt-dlp. No need to pass --hls-prefer-native with it.

Mennaruuk commented 3 years ago

Interesting. Not sure why it can download some videos but not others. I filed an issue over at yt-dlp. BTW, nice repo you have there! Starred.

Vangelis66 commented 3 years ago

@Mennaruuk asked:

Why is the parameter --hls-prefer-native required?

Please, study your posted logs more carefully šŸ˜‰ ;

[debug] youtube-dl version 2021.01.24.1
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
...
ERROR: m3u8 download detected but ffmpeg or avconv could not be found. Please install one.

and

[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
...
ERROR: m3u8 download detected but ffmpeg or avconv could not be found. Please install one.

IOW, your youtube-dl.exe binary can't locate a ffmpeg.exe binary to use as HLS downloader - [hlsnative] works, because it's a pure Python-based implementation, already compiled inside your yt-dl binary...

Should you wish to use ffmpeg, place a precompiled Windows binary (suitable for your OS version and architecture) adjacent to youtube-dl.exe or on another PATH of your choosing; in the latter case, the PATH must be given to yt-dl either via a cmdline flag ( --ffmpeg-location PATH) or inside a config file, if such exists...

EDIT: https://github.com/ytdl-org/youtube-dl#on-windows-how-should-i-set-up-ffmpeg-and-youtube-dl-where-should-i-put-the-exe-files

youtube-dl --proxy "127.0.0.1:xxxx" "https://www.pbs.org/video/pandora-papersmassacre-in-el-salvador-v2wjzz" -v --external-downloader-args "-v 8 -stats"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--proxy', '127.0.0.1:xxxx', 'https://www.pbs.org/video/pandora-papersmassacre-in-el-salvador-v2wjzz', '-v', '--external-downloader
-args', '-v 8 -stats']
[debug] Encodings: locale cp1253, fs utf-8, out utf-8, pref cp1253
[debug] youtube-dl version 2021.06.06+18-git-20210701-ga803582+PR#28955v2
[debug] Python version 3.7.12 (CPython) - Windows-Vista-6.0.6003-SP2
[debug] exe versions: ffmpeg 4.4.1, ffprobe 4.4.1, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {'http': '127.0.0.1:xxxx', 'https': '127.0.0.1:xxxx'}
[debug] Using fake IP 6.125.241.228 (US) as X-Forwarded-For.
[pbs] Downloading JSON metadata
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading webpage
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading widget/partnerplayer page
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading portalplayer page
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading 0 video url info
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading m3u8 information
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Downloading 1 video url info
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-2000k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-2000k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-6500k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-6500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-4500k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-4500k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-3000k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-1100k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-1100k video URL is invalid, skipping: HTTP Error 403: Forbidden
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: Checking http-730k video URL
[pbs] pandora-papersmassacre-in-el-salvador-v2wjzz: http-730k video URL is invalid, skipping: HTTP Error 403: Forbidden
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://ga.video.cdn.pbs.org/videos/frontline/fbc5696b-ac83-4af4-8f76-d2e9e247f71d/2000264985/hd-16x9-mezzanine-1080p/00004011-hls-16x9-1080p-1080p-6500k.m3u8'
[download] Destination: FRONTLINE - Pandora Papers_Massacre in El Salvador-3061353278.mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -v 8 -stats -headers "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/70.0.3538.69 Safari/537.36
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
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
Cookie: pbsol.station=WPTD
X-Forwarded-For: 6.125.241.228
" -i "https://ga.video.cdn.pbs.org/videos/frontline/fbc5696b-ac83-4af4-8f76-d2e9e247f71d/2000264985/hd-16x9-mezzanine-1080p/00004011-hls-16x9-1080p-1080p-6500k.m3u8" -c copy -f mp4 "file:FRONTLINE - Pandora Papers_Massacre in El Salvador-3061353278.mp4.part"
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-debug --disable-w32threads --arch=x86 --target-os=mingw32 --cross-prefix=/home/anton/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi --enable-libmysofa --enable-libopenjpeg --enable-libopenh264 --enable-liblensfun --enable-libvmaf --enable-libsrt --enable-libxml2 --enable-opengl --enable-libdav1d --enable-cuda-llvm --enable-libaom --enable-libvpx --enable-nvenc --enable-nvdec --extra-libs=-lharfbuzz --extra-libs=-lm --extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf --enable-libmfx --enable-gpl --enable-frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-avisynth --enable-libaribb24 --enable-libxvid --enable-libdavs2 --enable-libxavs --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/anton/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32
  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
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
frame=    1 fps=0.0 q=-1.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=
frame=   41 fps=0.0 q=-1.0 size=       0kB time=00:00:01.30 bitrate=   0.3kbits/
frame=   44 fps= 37 q=-1.0 size=       0kB time=00:00:01.40 bitrate=   0.3kbits/
frame=   49 fps= 27 q=-1.0 size=       0kB time=00:00:01.56 bitrate=   0.2kbits/
frame=   53 fps= 19 q=-1.0 size=     256kB time=00:00:01.70 bitrate=1232.6kbits/
frame=   56 fps= 16 q=-1.0 size=     256kB time=00:00:01.80 bitrate=1164.1kbits/
frame=   57 fps= 14 q=-1.0 size=     256kB time=00:00:01.83 bitrate=1143.0kbits/
frame=   59 fps= 13 q=-1.0 size=     256kB time=00:00:01.90 bitrate=1102.9kbits/
frame=   62 fps= 12 q=-1.0 size=     256kB time=00:00:02.00 bitrate=1047.7kbits/
frame=   65 fps= 11 q=-1.0 size=     512kB time=00:00:02.10 bitrate=1995.5kbits/
frame=   68 fps= 10 q=-1.0 size=     512kB time=00:00:02.20 bitrate=1904.8kbits/
frame=   70 fps=9.5 q=-1.0 size=     768kB time=00:00:02.26 bitrate=2773.1kbits/
frame=   70 fps=8.8 q=-1.0 size=     768kB time=00:00:02.26 bitrate=2773.1kbits/
frame=   73 fps=8.6 q=-1.0 size=     768kB time=00:00:02.36 bitrate=2655.9kbits/
frame=   75 fps=8.2 q=-1.0 size=     768kB time=00:00:02.43 bitrate=2583.1kbits/
frame=   75 fps=7.9 q=-1.0 Lsize=    1991kB time=00:00:02.43 bitrate=6697.6kbits
/s speed=0.257x

ERROR: Interrupted by user

Be also aware that the lack of ffmpeg on your yt-dl setup means many post-processing functions (e.g. repackaging streams to other container, muxing separately downloaded V+A elementary streams) won't be possible, either...

@89z wrote:

Mine does:

While I do appreciate your coding efforts and feel you genuinely wish to help people fetch things for which yt-dl, in its current state, has handicaps with (rather than simply promote your "own" solution[s]), please don't turn this into a pis*ing contest šŸ˜‰ ; BTW, I'd really appreciate it if you'd be king enough to also release win32 editions of your "tools" (as currently am in a 32-bit WinOS...).