Porteus switched from youtube-dl to yt-dlp - and how to get the most recent version

Post links to your 64bit module repos here. Repo maintainers are responsible for resolving any issues caused by their xzm's.
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Porteus switched from youtube-dl to yt-dlp - and how to get the most recent version

Post#31 by Rava » 19 Sep 2022, 08:29

When you interrupt a download and start it anew using youtube-dl it will continue the partial download.

yt-dlp seems to be unable to do so by default - at least in some cases.
Even when yt-dlp claims this

Code: Select all

    -c, --continue                  Resume partially downloaded files/fragments
                                    (default)
    --no-continue                   Do not resume partially downloaded
                                    fragments. If the file is not fragmented,
                                    restart download of the entire file
I realized that it will not continue a partially downloaded files/fragments. At least when I tried doing so on an https://www.cbsnews.com/news/ URL - maybe that was because of some "If the […]file is not fragmented, restart download of the entire file" issue?
Or was it because of the crypto+https:// part?

The cbsnews.com/news/ one was this

Code: Select all

yt-dlp -f hls-500+hls-audio_aac-English-1 https://www.cbsnews.com/news/president-joe-biden-taiwan-60-minutes-2022-09-18/
and it looked quite fragmented to me:

Code: Select all

[…]
hls @ 0x1b89240] Opening 'crypto+https://cbsios-vh.akamaihd.net/i/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2022/09/18/2074067012000/0918_60minutes_pelley_1298824_,2228,4628,3128,1628,848,503,000.mp4.csmil/segment72_5_av.ts?null=0&id=AgCyGPtNWN3EBXwlKGOwuJ2TOb+K1TEJoPT314+498LsLSKRv0sLJ3B5pRtOsjnIythkXRt73Wq6Ow%3d%3d&hdntl=exp=1663661820~acl=/i/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2022/09/18/2074067012000/0918_60minutes_pelley_1298824_*~data=hdntl~hmac=51fe4a4a059efd71952d551a6fd5b6746fe33b105d9c45c829c1c14a37279ce1' for reading
frame=21300 fps=274 q=-1.0 size=   43520kB time=00:11:50.69 bitrate= 501.6kbits/frame=21479 fps=274 q=-1.0 size=   44032kB time=00:11:56.69 bitrate= 503.3kbits/
[hls @ 0x1b89240] Opening 'crypto+https://cbsios-vh.akamaihd.net/i/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2022/09/18/2074067012000/0918_60minutes_pelley_1298824_,2228,4628,3128,1628,848,503,000.mp4.csmil/segment73_5_av.ts?null=0&id=AgCyGPtNWN3EBXwlKGOwuJ2TOb+K1TEJoPT314+498LsLSKRv0sLJ3B5pRtOsjnIythkXRt73Wq6Ow%3d%3d&hdntl=exp=1663661820~acl=/i/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2022/09/18/2074067012000/0918_60minutes_pelley_1298824_*~data=hdntl~hmac=51fe4a4a059efd71952d551a6fd5b6746fe33b105d9c45c829c1c14a37279ce1' for reading
frame=21600 fps=273 q=-1.0 size=   44032kB time=00:12:00.74 bitrate= 500.5kbits/frame=21840 fps=275 q=-1.0 size=   44544kB time=00:12:08.72 bitrate= 500.7kbits/
[…]
What are your experiences with continuing a partial download using yt-dlp?
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Porteus switched from youtube-dl to yt-dlp - and how to get the most recent version

Post#32 by Rava » 21 Sep 2022, 14:12

Only while I did my most recent download I realized something weird with yt-dlp:

Code: Select all

guest@porteus:/video/gesundheit/LiebscherBracht$ yt-dlp -f 244+249 9TCdf8xes1M
[youtube] 9TCdf8xes1M: Downloading webpage
[youtube] 9TCdf8xes1M: Downloading android player API JSON
[info] 9TCdf8xes1M: Downloading 1 format(s): 244+249
[download] Destination: Roland beantwortet: Die häufigsten Fragen zum Live-Training [9TCdf8xes1M].f244.webm
[download]  47.5% of 39.26MiB at  905.02KiB/s ETA 00:23
[download] 100% of 39.26MiB in 00:54 at 738.44KiB/s
[download] Destination: Roland beantwortet: Die häufigsten Fragen zum Live-Training [9TCdf8xes1M].f249.webm
[download]  19.0% of 9.52MiB at  427.60KiB/s ETA 00:18
[download] 100% of 9.52MiB in 00:16 at 575.00KiB/s
[Merger] Merging formats into "Roland beantwortet: Die häufigsten Fragen zum Live-Training [9TCdf8xes1M].webm"
Deleting original file Roland beantwortet: Die häufigsten Fragen zu+m Live-Training [9TCdf8xes1M].f249.webm (pass -k to keep)
Deleting original file Roland beantwortet: Die häufigsten Fragen zum Live-Training [9TCdf8xes1M].f244.webm (pass -k to keep)
Do you see it?
I obviously download 2 formats - a video only one - 244 and an audio-only-one - 249.
Still it tells me this
[info] 9TCdf8xes1M: Downloading 1 format(s): 244+249
No, 244+249 are two formats, not one.
But whatever. That is so minor I not even bother to report that as a bug to the yt-dlp developers.
Cheers!
Yours Rava

Post Reply