• The forum software that supports hummy.tv has been upgraded to XenForo 2.3!

    Please bear with us as we continue to tweak things, and feel free to post any questions, issues or suggestions in the upgrade thread.

[youtube-dl] Download files from youtube.com or other video platforms

You won't see the output properly unless you run the command at a terminal prompt. yt-dl treats anything that looks like a YT video ID as the equivalent YT URL. cd to the directory where the video should be saved beforehand.

Possibly your home network is IPv6-aware and the downloader is getting confused by an unexpected IPv6 address (or vice versa). The -4 and -6 options tell yt-dl to stick to each one. Without checking I can't recall what effect these have in the master code but ISTR passing them into the wget-based downloader used in the CF version.
 
I'm playing off-site with a supported user's HDR with a new BT digital-only service so IPv6 might be a thing. Just applying your options in qtube crashed and burned with the same "not supported by protocol" message embedded in a load of dubug.

I can try it again on the command line if that's of use.
 
Code:
humax# youtube-dl -v --abort-on-unavailable-fragment --fragment-retries 3 jwTkLWguwQI                    
[debug] System config: [u'--restrict-filenames', u'--prefer-ffmpeg', u'-f', u'best[height<=?1080][fps<=?60]
', u'-o', u'/mnt/hd2/My Video/%(title)s.%(ext)s']                                                        
[debug] User config: []                                                                                  
[debug] Custom config: []                                                                                
[debug] Command-line args: [u'--external-downloader', u'wget', u'--hls-prefer-ffmpeg', u'--cache-dir', u'/m
od/.cache/youtube-dl', u'-v', u'--abort-on-unavailable-fragment', u'--fragment-retries', u'3', u'jwTkLWguwQ
I']                                                                                                      
[debug] Encodings: locale ASCII, fs ASCII, out ASCII, pref ASCII                                          
[debug] youtube-dl version 2024.07.10                                                                    
[debug] Python 2.7.1 (CPython 7405b0-smp 32bit) - Linux-2.6.18-7.1-7405b0-smp-with-libc0 - OpenSSL 1.0.0a 1
 Jun 2010 - libc 0                                                                                        
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1                                                            
[debug] Proxy map: {}                                                                                    
[youtube] jwTkLWguwQI: Downloading webpage                                                                
[debug] [youtube] Decrypted nsig cEBU9RTq7n4i7Wdq => TA0gdIvhnjnODA                                      
[debug] [youtube] Decrypted nsig 6KtK3-h6u38pQla8 => yb9SK7o0bTdD9Q                                      
[debug] Invoking downloader on u'https://rr5---sn-cu-cgnl.googlevideo.com/videoplayback?sparams=expire%2Cei
%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Ccnr%2Cratebypa
ss%2Cdur%2Clmt&ei=MMObZq_8JuyIp-oP-4yH4As&ip=86.144.119.204&spc=NO7bAfbwcrO1ftT0bntgl6enq29eVTzk7Rly_7FmJ1D
mPir_F-NaWjGnv6frl2k&id=o-ANcS32pGMIlUfdRJGS2hG9-y8pk3CarR3SCmmEabTFEW&txp=5319224&svpuc=1&cnr=14&xpc=EgVo2
aDSNQ%3D%3D&requiressl=yes&ratebypass=yes&source=youtube&mv=m&sig=AJfQdSswRgIhAPO3e_yEVujYgIMevVFsuet59hlcH
xcQPVf_P0HmN4kDAiEAk1HXtCeJkkR7Xzx2Ahcg_nkPvWL23z6ymQwx8iYvNgk%3D&pcm2cms=yes&dur=265.334&ns=iId9xpiL13nkOe
A5LZfEYCkQ&initcwndbps=1977500&vprv=1&lsig=AHlkHjAwRAIgCoWiYT7ynu46rbGMXNlA3eyBYGcCrMI3ZgH3kDhToKoCIHG4Mtn8
P-yyrAoZ8ak213yFP_AXx56-NaiOTqKpB-Gt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lmt
=1703288179453477&c=WEB&sefc=1&bui=AXc671J88EyM1HnKaZlRMGUb8IPydtHQHzKXu5tOrqAx4iL8rw3fLahDU7SCDTlQUmqVeXss
QXbezdsd&mime=video%2Fmp4&fvip=3&rqh=1&itag=18&mm=31%2C29&mn=sn-cu-cgnl%2Csn-cu-auo6&mh=NM&n=TA0gdIvhnjnODA
&mt=1721483820&expire=1721505680&pl=25&ms=au%2Crdu&mvi=5'                                                
[download] Destination: /mnt/hd2/My Video/1976_World_Championship_Ballroom_Germany.mp4                    
[debug] wget command line: wget -O '/mnt/hd2/My Video/1976_World_Championship_Ballroom_Germany.mp4.part' -n
v '--compression=auto' --header 'Accept-Language: en-us,en;q=0.5' --header 'Accept: text/html,application/x
html+xml,application/xml;q=0.9,*/*;q=0.8' --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) A
ppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3702.1 Safari/537.36' --tries 10 -- 'https://rr5---sn-cu-
cgnl.googlevideo.com/videoplayback?sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2
Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Ccnr%2Cratebypass%2Cdur%2Clmt&ei=MMObZq_8JuyIp-oP-4yH4As&ip=86.144.1
19.204&spc=NO7bAfbwcrO1ftT0bntgl6enq29eVTzk7Rly_7FmJ1DmPir_F-NaWjGnv6frl2k&id=o-ANcS32pGMIlUfdRJGS2hG9-y8pk
3CarR3SCmmEabTFEW&txp=5319224&svpuc=1&cnr=14&xpc=EgVo2aDSNQ%3D%3D&requiressl=yes&ratebypass=yes&source=yout
ube&mv=m&sig=AJfQdSswRgIhAPO3e_yEVujYgIMevVFsuet59hlcHxcQPVf_P0HmN4kDAiEAk1HXtCeJkkR7Xzx2Ahcg_nkPvWL23z6ymQ
wx8iYvNgk%3D&pcm2cms=yes&dur=265.334&ns=iId9xpiL13nkOeA5LZfEYCkQ&initcwndbps=1977500&vprv=1&lsig=AHlkHjAwRA
IgCoWiYT7ynu46rbGMXNlA3eyBYGcCrMI3ZgH3kDhToKoCIHG4Mtn8P-yyrAoZ8ak213yFP_AXx56-NaiOTqKpB-Gt&lsparams=mh%2Cmm
%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lmt=1703288179453477&c=WEB&sefc=1&bui=AXc671J88EyM1HnKaZ
lRMGUb8IPydtHQHzKXu5tOrqAx4iL8rw3fLahDU7SCDTlQUmqVeXssQXbezdsd&mime=video%2Fmp4&fvip=3&rqh=1&itag=18&mm=31%
2C29&mn=sn-cu-cgnl%2Csn-cu-auo6&mh=NM&n=TA0gdIvhnjnODA&mt=1721483820&expire=1721505680&pl=25&ms=au%2Crdu&mv
i=5'                                                                                                      
failed: Address family not supported by protocol.                                                        
https://rr5---sn-cu-cgnl.googlevideo.com/videoplayback?sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequ
iressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Ccnr%2Cratebypass%2Cdur%2Clmt&ei=MMObZq_8JuyIp-o
P-4yH4As&ip=86.144.119.204&spc=NO7bAfbwcrO1ftT0bntgl6enq29eVTzk7Rly_7FmJ1DmPir_F-NaWjGnv6frl2k&id=o-ANcS32p
GMIlUfdRJGS2hG9-y8pk3CarR3SCmmEabTFEW&txp=5319224&svpuc=1&cnr=14&xpc=EgVo2aDSNQ%3D%3D&requiressl=yes&rateby
pass=yes&source=youtube&mv=m&sig=AJfQdSswRgIhAPO3e_yEVujYgIMevVFsuet59hlcHxcQPVf_P0HmN4kDAiEAk1HXtCeJkkR7Xz
x2Ahcg_nkPvWL23z6ymQwx8iYvNgk%3D&pcm2cms=yes&dur=265.334&ns=iId9xpiL13nkOeA5LZfEYCkQ&initcwndbps=1977500&vp
rv=1&lsig=AHlkHjAwRAIgCoWiYT7ynu46rbGMXNlA3eyBYGcCrMI3ZgH3kDhToKoCIHG4Mtn8P-yyrAoZ8ak213yFP_AXx56-NaiOTqKpB
-Gt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lmt=1703288179453477&c=WEB&sefc=1&bu
i=AXc671J88EyM1HnKaZlRMGUb8IPydtHQHzKXu5tOrqAx4iL8rw3fLahDU7SCDTlQUmqVeXssQXbezdsd&mime=video%2Fmp4&fvip=3&
rqh=1&itag=18&mm=31%2C29&mn=sn-cu-cgnl%2Csn-cu-auo6&mh=NM&n=TA0gdIvhnjnODA&mt=1721483820&expire=1721505680&
pl=25&ms=au%2Crdu&mvi=5:                                                                                  
2024-07-20 15:07:56 ERROR 404: Not Found.                                                                
                                                                                                         
                                                                                                         
                                                                                                         
ERROR: wget exited with code 8
  File "/mod/lib/python2.7/runpy.py", line 162, in _run_module_as_main                                    
    "__main__", fname, loader, pkg_name)                                                                  
  File "/mod/lib/python2.7/runpy.py", line 72, in _run_code                                              
    exec code in run_globals                                                                              
  File "/mnt/hd2/mod/lib/python2.7/dist-packages/youtube-dl/__main__.py", line 19, in <module>            
    youtube_dl.main()                                                                                    
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/__init__.py", line 477, in main            
    _real_main(argv)                                                                                      
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/__init__.py", line 467, in _real_main      
    retcode = ydl.download(all_urls)                                                                      
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 2254, in download      
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))                      
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 868, in extract_info  
    return self.__extract_info(url, ie, download, extra_info, process)                                    
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 875, in wrapper        
    return func(self, *args, **kwargs)                                                                    
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 982, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)                                        
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 1016, in process_ie_resu
lt                                                                                                        
    return self.process_video_result(ie_result, download=download)                                        
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 1860, in process_video_r
esult                                                                                                    
    self.process_info(new_info)                                                                          
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 138, in wrapper        
    return func(self, *args, **kwargs)                                                                    
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 2158, in process_info  
    success = dl(filename, info_dict)                                                                    
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 2088, in dl            
    return fd.download(name, new_info)                                                                    
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/downloader/common.py", line 380, in download
    return self.real_download(filename, info_dict)                                                        
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/downloader/external.py", line 82, in real_do
wnload                                                                                                    
    self.get_basename(), retval))                                                                        
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/downloader/common.py", line 175, in report_e
rror                                                                                                      
    self.ydl.report_error(*args, **kargs)                                                                
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 678, in report_error  
    self.trouble(*args, **kwargs)                                                                        
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 630, in trouble        
    tb_data = traceback.format_list(traceback.extract_stack())
 
Last edited:
First try getting any web resource, maybe some user avatar:
Code:
# wget --version
GNU Wget 1.20.3 built on linux-gnu.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls 
+ntlm +opie -psl +ssl/openssl 

Wgetrc: 
    /mod/etc/wgetrc (system)
Compile: 
    mipsel-linux-gcc -std=gnu99 -DHAVE_CONFIG_H 
    -DSYSTEM_WGETRC="/mod/etc/wgetrc" -DLOCALEDIR="/mod/share/locale" 
    -I. -I../lib -I../lib -DHAVE_LIBSSL -DNDEBUG -D_LARGEFILE_SOURCE 
    -D_FILE_OFFSET_BITS=64 
Link: 
    mipsel-linux-gcc -std=gnu99 -DHAVE_LIBSSL -DNDEBUG 
    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-R/mod/lib -luuid 
    -lssl -lcrypto -L/usr/lib/x86_64-linux-gnu -lz -lpcre ftp-opie.o 
    openssl.o http-ntlm.o ../lib/libgnu.a 

...
# wget 'https://hummy.tv/forum/data/avatars/m/0/365.jpg?1322684934'
--2024-07-20 15:10:13--  https://hummy.tv/forum/data/avatars/m/0/365.jpg?1322684934
Resolving hummy.tv... 2a00:5600:1600:0:c0:ffee:dc2:84, 89.248.55.84
Connecting to hummy.tv|2a00:5600:1600:0:c0:ffee:dc2:84|:443... failed: Address family not supported by protocol.
Connecting to hummy.tv|89.248.55.84|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21399 (21K) [image/jpeg]
Saving to: '365.jpg?1322684934'

365.jpg?1322684934  100%[===================>]  20.90K  --.-KB/s    in 0.02s   

2024-07-20 15:10:14 (887 KB/s) - '365.jpg?1322684934' saved [21399/21399]

# rm 365.jpg?1322684934 
# wget -4 'https://hummy.tv/forum/data/avatars/m/0/365.jpg?1322684934'
--2024-07-20 15:10:40--  https://hummy.tv/forum/data/avatars/m/0/365.jpg?1322684934
Resolving hummy.tv... 89.248.55.84
Connecting to hummy.tv|89.248.55.84|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21399 (21K) [image/jpeg]
Saving to: '365.jpg?1322684934'

365.jpg?1322684934  100%[===================>]  20.90K  --.-KB/s    in 0.03s   

2024-07-20 15:10:40 (604 KB/s) - '365.jpg?1322684934' saved [21399/21399]

#
Above IPv6 is being returned but it doesn't affect the result. The CF wget doesn't know about IPv6 (but strangely doesn't limit IPv6 when resolving, or strip out IPv6 from the query result -- there should be a build option that would force that; do Foxes-T2 support IPv6 at all?), so it gives up and uses the IPv4 address, which works. -4 (same option for wget and yt-dl: how did that happen?) causes the IPv4 address to be used with no warning message.

In your log, a worse problem occurs, where the download command gets 404. Maybe the code that calls wget is confused. What happens with youtube-dl -4 ...?
 
What happens with youtube-dl -4 ...?
More or less the same.

Code:
humax# youtube-dl -4 -v --abort-on-unavailable-fragment --fragment-retries 3 jwTkLWguwQI           
[debug] System config: [u'--restrict-filenames', u'--prefer-ffmpeg', u'-f', u'best[height<=?1080][f
ps<=?60]', u'-o', u'/mnt/hd2/My Video/%(title)s.%(ext)s']                                         
[debug] User config: []                                                                           
[debug] Custom config: []                                                                         
[debug] Command-line args: [u'--external-downloader', u'wget', u'--hls-prefer-ffmpeg', u'--cache-di
r', u'/mod/.cache/youtube-dl', u'-4', u'-v', u'--abort-on-unavailable-fragment', u'--fragment-retri
es', u'3', u'jwTkLWguwQI']                                                                         
[debug] Encodings: locale ASCII, fs ASCII, out ASCII, pref ASCII                                   
[debug] youtube-dl version 2024.07.10                                                             
[debug] Python 2.7.1 (CPython 7405b0-smp 32bit) - Linux-2.6.18-7.1-7405b0-smp-with-libc0 - OpenSSL
1.0.0a 1 Jun 2010 - libc 0                                                                         
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1                                                     
[debug] Proxy map: {}                                                                             
[youtube] jwTkLWguwQI: Downloading webpage                                                         
[debug] [youtube] Decrypted nsig FDHRJ3pqcMuHUocL => BxO-DbUyaJZFUA                               
[debug] [youtube] Decrypted nsig QXQKy9LmgGJ9EtTg => 2p4IJ_ZRw2kO0w                               
[debug] Invoking downloader on u'https://rr5---sn-cu-cgnl.googlevideo.com/videoplayback?sparams=exp
ire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cpcm2%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns
%2Crqh%2Ccnr%2Cratebypass%2Cdur%2Clmt&ei=FdWbZrDKIsGVhcIPqaKIgA4&ip=86.144.119.204&spc=NO7bAUzRKdsA
uSYE4cHBlPpN4azGIf76GSamrdXqo-ngWFAy2fzqYwZVk_RXFts&id=o-APBP8afzMU7jhzJcDkoFLXggqJSzPjHMj7xJyh2DvB
pX&txp=5319224&svpuc=1&cnr=14&xpc=EgVo2aDSNQ%3D%3D&pcm2=no&requiressl=yes&ratebypass=yes&source=you
tube&mv=m&sig=AJfQdSswRQIgbUyabCnxcRQxu5061NSwTfU_Dc5hyMjn1AXkN0k9S4ECIQDOQY4KdKqODGMnxdO8SM6UAo6mg
ELahhyUWEo1-iNGCg%3D%3D&dur=265.334&ns=uDN9VcqVT3efhSw_c8MeG2kQ&initcwndbps=1745000&vprv=1&lsig=AHl
kHjAwRgIhAMcdC3pyJoyiX4qvuYkbnSqyS-GgDxweITD6JIPSaHoeAiEA6kGNsCkLcEXX3J_yOc8t2PEE6G-ZLAj0HbmEBaPncP
0%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lmt=1703288179453477&c=WEB&sefc=1&bui
=AXc671Iz3w3UFl3TtreTPgbwyykjpsXM9VmR_xmNK8Ffx4dCKP7tbvavDboWvKcHf8RlIv_uYEoEWiuW&mime=video%2Fmp4&
fvip=3&rqh=1&itag=18&mm=31%2C29&mn=sn-cu-cgnl%2Csn-cu-auo6&mh=NM&n=BxO-DbUyaJZFUA&mt=1721488135&exp
ire=1721510261&pl=25&ms=au%2Crdu&mvi=5'                                                           
[download] Destination: /mnt/hd2/My Video/1976_World_Championship_Ballroom_Germany.mp4             
[debug] wget command line: wget -O '/mnt/hd2/My Video/1976_World_Championship_Ballroom_Germany.mp4.
part' -nv '--compression=auto' --header 'Accept-Language: en-us,en;q=0.5' --header 'Accept: text/ht
ml,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'User-Agent: Mozilla/5.0 (Window
s NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.74 Safari/537.36' --
tries 10 --bind-address 0.0.0.0 -- 'https://rr5---sn-cu-cgnl.googlevideo.com/videoplayback?sparams=
expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cpcm2%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2
Cns%2Crqh%2Ccnr%2Cratebypass%2Cdur%2Clmt&ei=FdWbZrDKIsGVhcIPqaKIgA4&ip=86.144.119.204&spc=NO7bAUzRK
dsAuSYE4cHBlPpN4azGIf76GSamrdXqo-ngWFAy2fzqYwZVk_RXFts&id=o-APBP8afzMU7jhzJcDkoFLXggqJSzPjHMj7xJyh2
DvBpX&txp=5319224&svpuc=1&cnr=14&xpc=EgVo2aDSNQ%3D%3D&pcm2=no&requiressl=yes&ratebypass=yes&source=
youtube&mv=m&sig=AJfQdSswRQIgbUyabCnxcRQxu5061NSwTfU_Dc5hyMjn1AXkN0k9S4ECIQDOQY4KdKqODGMnxdO8SM6UAo
6mgELahhyUWEo1-iNGCg%3D%3D&dur=265.334&ns=uDN9VcqVT3efhSw_c8MeG2kQ&initcwndbps=1745000&vprv=1&lsig=
AHlkHjAwRgIhAMcdC3pyJoyiX4qvuYkbnSqyS-GgDxweITD6JIPSaHoeAiEA6kGNsCkLcEXX3J_yOc8t2PEE6G-ZLAj0HbmEBaP
ncP0%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lmt=1703288179453477&c=WEB&sefc=1&
bui=AXc671Iz3w3UFl3TtreTPgbwyykjpsXM9VmR_xmNK8Ffx4dCKP7tbvavDboWvKcHf8RlIv_uYEoEWiuW&mime=video%2Fm
p4&fvip=3&rqh=1&itag=18&mm=31%2C29&mn=sn-cu-cgnl%2Csn-cu-auo6&mh=NM&n=BxO-DbUyaJZFUA&mt=1721488135&
expire=1721510261&pl=25&ms=au%2Crdu&mvi=5'                                                         
failed: Address family not supported by protocol.                                                 
https://rr5---sn-cu-cgnl.googlevideo.com/videoplayback?sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csourc
e%2Crequiressl%2Cxpc%2Cpcm2%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Ccnr%2Cratebypass%2Cdur%2
Clmt&ei=FdWbZrDKIsGVhcIPqaKIgA4&ip=86.144.119.204&spc=NO7bAUzRKdsAuSYE4cHBlPpN4azGIf76GSamrdXqo-ngW
FAy2fzqYwZVk_RXFts&id=o-APBP8afzMU7jhzJcDkoFLXggqJSzPjHMj7xJyh2DvBpX&txp=5319224&svpuc=1&cnr=14&xpc
=EgVo2aDSNQ%3D%3D&pcm2=no&requiressl=yes&ratebypass=yes&source=youtube&mv=m&sig=AJfQdSswRQIgbUyabCn
xcRQxu5061NSwTfU_Dc5hyMjn1AXkN0k9S4ECIQDOQY4KdKqODGMnxdO8SM6UAo6mgELahhyUWEo1-iNGCg%3D%3D&dur=265.3
34&ns=uDN9VcqVT3efhSw_c8MeG2kQ&initcwndbps=1745000&vprv=1&lsig=AHlkHjAwRgIhAMcdC3pyJoyiX4qvuYkbnSqy
S-GgDxweITD6JIPSaHoeAiEA6kGNsCkLcEXX3J_yOc8t2PEE6G-ZLAj0HbmEBaPncP0%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2
Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lmt=1703288179453477&c=WEB&sefc=1&bui=AXc671Iz3w3UFl3TtreTPgbwyykjpsXM
9VmR_xmNK8Ffx4dCKP7tbvavDboWvKcHf8RlIv_uYEoEWiuW&mime=video%2Fmp4&fvip=3&rqh=1&itag=18&mm=31%2C29&m
n=sn-cu-cgnl%2Csn-cu-auo6&mh=NM&n=BxO-DbUyaJZFUA&mt=1721488135&expire=1721510261&pl=25&ms=au%2Crdu&
mvi=5:                                                                                             
2024-07-20 16:24:16 ERROR 404: Not Found.                                                         
                                                                                                  
                                                                                                  
                                                                                                  
ERROR: wget exited with code 8
  File "/mod/lib/python2.7/runpy.py", line 162, in _run_module_as_main                             
    "__main__", fname, loader, pkg_name)                                                           
  File "/mod/lib/python2.7/runpy.py", line 72, in _run_code                                       
    exec code in run_globals                                                                       
  File "/mnt/hd2/mod/lib/python2.7/dist-packages/youtube-dl/__main__.py", line 19, in <module>     
    youtube_dl.main()                                                                             
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/__init__.py", line 477, in main     
    _real_main(argv)                                                                               
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/__init__.py", line 467, in _real_mai
n                                                                                                 
    retcode = ydl.download(all_urls)                                                               
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 2254, in downloa
d                                                                                                 
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))               
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 868, in extract_
info                                                                                               
    return self.__extract_info(url, ie, download, extra_info, process)                             
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 875, in wrapper
    return func(self, *args, **kwargs)                                                             
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 982, in __extrac
t_info                                                                                             
    return self.process_ie_result(ie_result, download, extra_info)                                 
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 1016, in process
_ie_result                                                                                         
    return self.process_video_result(ie_result, download=download)                                 
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 1860, in process
_video_result                                                                                     
    self.process_info(new_info)                                                                   
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 138, in wrapper
    return func(self, *args, **kwargs)                                                             
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 2158, in process
_info                                                                                             
    success = dl(filename, info_dict)                                                             
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 2088, in dl     
    return fd.download(name, new_info)                                                             
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/downloader/common.py", line 380, in
download                                                                                           
    return self.real_download(filename, info_dict)                                                 
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/downloader/external.py", line 82, in
 real_download                                                                                     
    self.get_basename(), retval))                                                                 
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/downloader/common.py", line 175, in
report_error                                                                                       
    self.ydl.report_error(*args, **kargs)                                                         
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 678, in report_e
rror                                                                                               
    self.trouble(*args, **kwargs)                                                                 
  File "/mod/lib/python2.7/dist-packages/youtube-dl/youtube_dl/YoutubeDL.py", line 630, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())
 
Will it work just using pc/laptop/computer to download?
Ie. Is it an issue with the Humax version/code or is it an issue with the other end?
Sorry, I think @/df managed it ok.
 
YT has changed the available formats. Possibly yt-dl format selection is now finding DASH formats instead of unfragmented formats and so causing this problem.

Try --external-downloader ffmpeg. The WgetFD external downloader is marked as supporting the default protocols 'http', 'https', 'ftp', 'ftps', so for DASH the internal default is used, which may be a bad thing, in a way that I'd have to debug to explain. FFmpegFD also supports 'http_dash_segments' and so is used.

You could exclude DASH formats altogether (YT only) with --youtube-skip-dash-manifest, or filter them out in the format selection (less efficient but would work for any site). However HLS formats, which might be selected if DASH aren't available, also need --external-downloader ffmpeg.
 
Not sure if this will help (or maybe provide some clues for youtube-dl)
Code:
myuser@mint:~$ yt-dlp https://youtu.be/jwTkLWguwQI
[youtube] jwTkLWguwQI: Downloading webpage
[youtube] jwTkLWguwQI: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
[youtube] jwTkLWguwQI: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (2/3)...
[youtube] jwTkLWguwQI: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (3/3)...
[youtube] jwTkLWguwQI: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: 'Bad Request'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
[youtube] jwTkLWguwQI: Downloading player d60b0ef9
WARNING: [youtube] jwTkLWguwQI: nsig extraction failed: You may experience throttling for some formats
         n = ySHRDO9qHIZgnEB5 ; player = https://www.youtube.com/s/player/d60b0ef9/player_ias.vflset/en_US/base.js
WARNING: [youtube] jwTkLWguwQI: nsig extraction failed: You may experience throttling for some formats
         n = 8SjwvNz6TMHP6evg ; player = https://www.youtube.com/s/player/d60b0ef9/player_ias.vflset/en_US/base.js
ERROR: [youtube] jwTkLWguwQI: Unable to extract uploader id; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

myuser@mint:~$ sudo yt-dlp -U
[sudo] password for myuser:     
Latest version: 2024.07.16, Current version: 2022.11.11
Current Build Hash f2592772909153062bd03e3b545df2ddfb0c477369624fd60a4e9cd9c2124943
Updating to version 2024.07.16 ...
Updated yt-dlp to version 2024.07.16
myuser@mint:~$ yt-dlp https://youtu.be/jwTkLWguwQI
[youtube] Extracting URL: yt-dlp https://youtu.be/jwTkLWguwQI
[youtube] jwTkLWguwQI: Downloading webpage
[youtube] jwTkLWguwQI: Downloading ios player API JSON
[youtube] jwTkLWguwQI: Downloading player d60b0ef9
[youtube] jwTkLWguwQI: Downloading m3u8 information
[info] jwTkLWguwQI: Downloading 1 format(s): 137+251
[download] Destination: 1976 World Championship Ballroom   Germany [jwTkLWguwQI].f137.mp4
[download]  18.2% of   97.35MiB at  785.06KiB/s ETA 01:43

Edit1: I think adapting an old method with @/df's suggestion
youtube-dl -4 -F ..
followed by
youtube-dl -4 -f 137+140 .. or youtube-dl -4 -f 136+140 ..
should work.
 
Last edited:
The process did't fail, but resulted in a download of only 262 bytes!

I give up, I'll see what I can do at home. Thanks for the pointers.
 
Still not having any luck with this. I've tried it with yt-dlp on my Mint machine, I presume the command line options are the same, but that comes back saying the packets are larger than expected!
 
I have found I can download the video component using -f 160, which is at the original resolution 256x144. The audio component is 140. What config do I need to download both 160 and 140 and combine them?

Edit: Belay that. The question still stands, as it would be useful to know (and I'll add it to the guide), but there is something severely wrong with the product of -f 160.
 
Last edited:
YT made some changes on Wednesday that broke YT-DLP which was updated to deal with it yesterday (Thursday). I presume other YT downloaders were affected too.
 
What config do I need to download both 160 and 140 and combine them?
Whenever I have done this kind of thing on a PC I would use (in your example): -f 160+140

It is important that the video component is the first one specified.
The downloads are done to separate files, combined afterwards by YT-DLP to a new file and the originals deleted.
I think it is that simple - or am I missing something?
 
This is really a question solved by RTFM.

Basically, the default format selection in the base product, when not piping the output, is bestvideo+bestaudio/best; the matching stream(s) are downloaded and, if necessary and as long as ffmpeg is available, merged; retention of intermediate files is an option.

yt-dlp has a useful -S ... option to change the priority of available formats (ie, what does best... mean). With youtube-dl, it's recommended to specify what formats you want in a specific format selection option, possibly with fallback selections separated by /.
 
Not very knowledgeable user updated to youtube-dl version 2024.08.01 today. Unable to get YT videos seemingly because player bd3293c9 is not found. I ran youtube-dl with -v -F Extracts here:

[debug] [youtube] Extracting signature function js_bd3293c9_108
[youtube] avm3i3iL2f4: Downloading player bd3293c9
ERROR: Unable to extract nsig function code (caused by RegexNotFoundError(u'Unable to extract \x1b[0;34mInitial JS player n function name\x1b[0m; please report this issue ...

Which looks similar but different to the issue fixed on git last week
 
They changed things again yesterday so 'download as highest MP4' would download as 4K VP90 (3840x2160) with no sound and today there's a new YT-DLG that fixes it.
 
Back
Top