Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

scripts/lb-wrapper: Try "--format-sort='tbr~1000'" [i.e. target 1000 kbit/s codecs] #62

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

holta
Copy link
Member

@holta holta commented Dec 8, 2023

Minimal alternative to...

Towards building up our experimental knowledge!

@holta holta added the enhancement New feature or request label Dec 8, 2023
@holta holta requested a review from deldesir December 8, 2023 13:05
@holta holta changed the title scripts/lb-wrapper: Try "--format-sort='tbr~1000'" scripts/lb-wrapper: Try "--format-sort='tbr~1000'" [i.e. target 1000 kbit/s codecs] Dec 8, 2023
@EMG70
Copy link

EMG70 commented Dec 8, 2023

Tested with #51 and #57 .

User Task Status Progress Run Time Start Time Actions
Admin Download: learning media from https:// https://www.youtube.com/watch?v=i3ku5nx4tMU Finished 100 % 3s 12/8/23, 1:22 PM  
Admin Download: learning media from https://www.youtube.com/watch?v=i3ku5nx4tMU Finished 100 % 12s 12/8/23, 1:23 PM  
Admin Upload: File 4 things all great listeners know uploaded Finished 100 % 0s 12/8/23, 1:23 PM  
Admin Download: learning media from https://www.youtube.com/watch?v=QlQ-MEZgRGY Finished 100 % 9s 12/8/23, 1:36 PM  
Admin Download: learning media from https://www.youtube.com/watch?v=CaLOiGEDPJQ Finished 100 % 27s 12/8/23, 1:37 PM  
Admin Upload: File Why you don’t hear about the ozone layer anymore uploaded Finished 100 % 0s 12/8/23, 1:38 PM  

@holta
Copy link
Member Author

holta commented Dec 8, 2023

@deldesir can you help us try to reproduce the top 2 problems?

@holta
Copy link
Member Author

holta commented Dec 8, 2023

@deldesir does the output from yt-dlp --list-formats == yt-dlp -F help explain either of the 2 problems?

  • @EMG70 downloaded from https://www.youtube.com/watch?v=i3ku5nx4tMU ("4 things all great listeners know") with "Download to IIAB" and an MKV file resulted — this is extremely mysterious as MKV does not appear as one of the available formats when you run: ⚠️

    yt-dlp -F https://www.youtube.com/watch?v=i3ku5nx4tMU

root@box:~# yt-dlp -O title https://www.youtube.com/watch?v=i3ku5nx4tMU
4 things all great listeners know

root@box:~# yt-dlp -F https://www.youtube.com/watch?v=i3ku5nx4tMU
[youtube] Extracting URL: https://www.youtube.com/watch?v=i3ku5nx4tMU
[youtube] i3ku5nx4tMU: Downloading webpage
[youtube] i3ku5nx4tMU: Downloading ios player API JSON
[youtube] i3ku5nx4tMU: Downloading android player API JSON
[youtube] i3ku5nx4tMU: Downloading m3u8 information
[info] Available formats for i3ku5nx4tMU:
ID  EXT   RESOLUTION FPS CH │   FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR ASR MORE INFO
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb2 mhtml 48x27        0    │                  mhtml │ images                                  storyboard
sb1 mhtml 80x45        0    │                  mhtml │ images                                  storyboard
sb0 mhtml 160x90       0    │                  mhtml │ images                                  storyboard
233 mp4   audio only        │                  m3u8  │ audio only          unknown             [en] Default
234 mp4   audio only        │                  m3u8  │ audio only          unknown             [en] Default
599 m4a   audio only      2 │    1.13MiB   31k https │ audio only          mp4a.40.5   31k 22k [en] ultralow, m4a_dash
600 webm  audio only      2 │    1.45MiB   40k https │ audio only          opus        40k 48k [en] ultralow, webm_dash
139 m4a   audio only      2 │    1.78MiB   49k https │ audio only          mp4a.40.5   49k 22k [en] low, m4a_dash
249 webm  audio only      2 │    2.15MiB   59k https │ audio only          opus        59k 48k [en] low, webm_dash
250 webm  audio only      2 │    2.86MiB   78k https │ audio only          opus        78k 48k [en] low, webm_dash
140 m4a   audio only      2 │    4.73MiB  129k https │ audio only          mp4a.40.2  129k 44k [en] medium, m4a_dash
251 webm  audio only      2 │    5.43MiB  149k https │ audio only          opus       149k 48k [en] medium, webm_dash
17  3gp   176x144     12  1 │    2.85MiB   78k https │ mp4v.20.3           mp4a.40.2       22k [en] 144p
597 mp4   256x144     12    │  931.22KiB   25k https │ avc1.4d400b     25k video only          144p, mp4_dash
602 mp4   256x144     12    │ ~  3.04MiB   81k m3u8  │ vp09.00.10.08   81k video only
598 webm  256x144     12    │  763.84KiB   20k https │ vp9             20k video only          144p, webm_dash
394 mp4   256x144     24    │    1.52MiB   42k https │ av01.0.00M.08   42k video only          144p, mp4_dash
269 mp4   256x144     24    │ ~  5.65MiB  151k m3u8  │ avc1.4D400C    151k video only
160 mp4   256x144     24    │    1.01MiB   28k https │ avc1.4D400C     28k video only          144p, mp4_dash
603 mp4   256x144     24    │ ~  5.75MiB  153k m3u8  │ vp09.00.11.08  153k video only
278 webm  256x144     24    │    1.84MiB   50k https │ vp09.00.11.08   50k video only          144p, webm_dash
395 mp4   426x240     24    │    1.74MiB   48k https │ av01.0.00M.08   48k video only          240p, mp4_dash
229 mp4   426x240     24    │ ~  8.00MiB  214k m3u8  │ avc1.4D4015    214k video only
133 mp4   426x240     24    │    1.49MiB   41k https │ avc1.4D4015     41k video only          240p, mp4_dash
604 mp4   426x240     24    │ ~ 10.47MiB  279k m3u8  │ vp09.00.20.08  279k video only
242 webm  426x240     24    │    1.94MiB   53k https │ vp09.00.20.08   53k video only          240p, webm_dash
396 mp4   640x360     24    │    2.96MiB   81k https │ av01.0.01M.08   81k video only          360p, mp4_dash
230 mp4   640x360     24    │ ~ 15.71MiB  419k m3u8  │ avc1.4D401E    419k video only
134 mp4   640x360     24    │    2.38MiB   65k https │ avc1.4D401E     65k video only          360p, mp4_dash
18  mp4   640x360     24  2 │   11.46MiB  314k https │ avc1.42001E         mp4a.40.2       44k [en] 360p
605 mp4   640x360     24    │ ~ 19.83MiB  529k m3u8  │ vp09.00.21.08  529k video only
243 webm  640x360     24    │    3.07MiB   84k https │ vp09.00.21.08   84k video only          360p, webm_dash
397 mp4   854x480     24    │    4.76MiB  130k https │ av01.0.04M.08  130k video only          480p, mp4_dash
231 mp4   854x480     24    │ ~ 20.72MiB  553k m3u8  │ avc1.4D401E    553k video only
135 mp4   854x480     24    │    3.34MiB   91k https │ avc1.4D401E     91k video only          480p, mp4_dash
606 mp4   854x480     24    │ ~ 25.66MiB  685k m3u8  │ vp09.00.30.08  685k video only
244 webm  854x480     24    │    4.25MiB  116k https │ vp09.00.30.08  116k video only          480p, webm_dash
22  mp4   1280x720    24  2 │ ≈ 10.52MiB  281k https │ avc1.64001F         mp4a.40.2       44k [en] 720p
398 mp4   1280x720    24    │    8.26MiB  226k https │ av01.0.05M.08  226k video only          720p, mp4_dash
232 mp4   1280x720    24    │ ~ 32.17MiB  858k m3u8  │ avc1.4D401F    858k video only
136 mp4   1280x720    24    │    5.54MiB  152k https │ avc1.4D401F    152k video only          720p, mp4_dash
609 mp4   1280x720    24    │ ~ 45.48MiB 1214k m3u8  │ vp09.00.31.08 1214k video only
247 webm  1280x720    24    │    6.73MiB  184k https │ vp09.00.31.08  184k video only          720p, webm_dash
399 mp4   1920x1080   24    │   14.49MiB  396k https │ av01.0.08M.08  396k video only          1080p, mp4_dash
270 mp4   1920x1080   24    │ ~ 90.39MiB 2412k m3u8  │ avc1.640028   2412k video only
137 mp4   1920x1080   24    │   16.57MiB  453k https │ avc1.640028    453k video only          1080p, mp4_dash
614 mp4   1920x1080   24    │ ~ 92.40MiB 2466k m3u8  │ vp09.00.40.08 2466k video only
248 webm  1920x1080   24    │   16.53MiB  452k https │ vp09.00.40.08  452k video only          1080p, webm_dash
616 mp4   1920x1080   24    │ ~150.36MiB 4012k m3u8  │ vp09.00.40.08 4012k video only          Premium
root@box:~# yt-dlp -O title https://www.youtube.com/watch?v=QlQ-MEZgRGY
What is Climate Change?

root@box:~# yt-dlp -F https://www.youtube.com/watch?v=QlQ-MEZgRGY
[youtube] Extracting URL: https://www.youtube.com/watch?v=QlQ-MEZgRGY
[youtube] QlQ-MEZgRGY: Downloading webpage
[youtube] QlQ-MEZgRGY: Downloading ios player API JSON
[youtube] QlQ-MEZgRGY: Downloading android player API JSON
[youtube] QlQ-MEZgRGY: Downloading m3u8 information
[info] Available formats for QlQ-MEZgRGY:
ID  EXT   RESOLUTION FPS CH │   FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR ASR MORE INFO
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb2 mhtml 48x27        1    │                  mhtml │ images                                  storyboard
sb1 mhtml 80x45        1    │                  mhtml │ images                                  storyboard
sb0 mhtml 160x90       1    │                  mhtml │ images                                  storyboard
233 mp4   audio only        │                  m3u8  │ audio only          unknown             Default
234 mp4   audio only        │                  m3u8  │ audio only          unknown             Default
599 m4a   audio only      2 │  424.77KiB   31k https │ audio only          mp4a.40.5   31k 22k ultralow, m4a_dash
600 webm  audio only      2 │  469.30KiB   34k https │ audio only          opus        34k 48k ultralow, webm_dash
139 m4a   audio only      2 │  672.73KiB   49k https │ audio only          mp4a.40.5   49k 22k low, m4a_dash
249 webm  audio only      2 │  687.70KiB   50k https │ audio only          opus        50k 48k low, webm_dash
250 webm  audio only      2 │  899.57KiB   65k https │ audio only          opus        65k 48k low, webm_dash
140 m4a   audio only      2 │    1.74MiB  130k https │ audio only          mp4a.40.2  130k 44k medium, m4a_dash
251 webm  audio only      2 │    1.75MiB  130k https │ audio only          opus       130k 48k medium, webm_dash
597 mp4   256x144     15    │  422.89KiB   31k https │ avc1.4d400b     31k video only          144p, mp4_dash
602 mp4   256x144     15    │ ~  1.12MiB   81k m3u8  │ vp09.00.10.08   81k video only
598 webm  256x144     15    │  304.97KiB   22k https │ vp9             22k video only          144p, webm_dash
269 mp4   256x144     30    │ ~  2.19MiB  158k m3u8  │ avc1.4D400C    158k video only
160 mp4   256x144     30    │  591.68KiB   43k https │ avc1.4D400C     43k video only          144p, mp4_dash
603 mp4   256x144     30    │ ~  2.07MiB  150k m3u8  │ vp09.00.11.08  150k video only
278 webm  256x144     30    │  813.11KiB   59k https │ vp09.00.11.08   59k video only          144p, webm_dash
229 mp4   426x240     30    │ ~  3.96MiB  287k m3u8  │ avc1.4D4015    287k video only
133 mp4   426x240     30    │    1.27MiB   95k https │ avc1.4D4015     95k video only          240p, mp4_dash
604 mp4   426x240     30    │ ~  3.61MiB  262k m3u8  │ vp09.00.20.08  262k video only
242 webm  426x240     30    │    1.21MiB   90k https │ vp09.00.20.08   90k video only          240p, webm_dash
230 mp4   640x360     30    │ ~  7.20MiB  522k m3u8  │ avc1.4D401E    522k video only
134 mp4   640x360     30    │    2.95MiB  219k https │ avc1.4D401E    219k video only          360p, mp4_dash
18  mp4   640x360     30  2 │ ≈  4.81MiB  349k https │ avc1.42001E         mp4a.40.2       44k 360p
605 mp4   640x360     30    │ ~  9.05MiB  656k m3u8  │ vp09.00.21.08  656k video only
243 webm  640x360     30    │    3.40MiB  253k https │ vp09.00.21.08  253k video only          360p, webm_dash
231 mp4   854x480     30    │ ~  9.57MiB  693k m3u8  │ avc1.4D401F    693k video only
135 mp4   854x480     30    │    5.24MiB  390k https │ avc1.4D401F    390k video only          480p, mp4_dash
606 mp4   854x480     30    │ ~ 11.99MiB  869k m3u8  │ vp09.00.30.08  869k video only
244 webm  854x480     30    │    4.61MiB  343k https │ vp09.00.30.08  343k video only          480p, webm_dash
22  mp4   1280x720    30  2 │ ≈ 10.60MiB  768k https │ avc1.64001F         mp4a.40.2       44k 720p
232 mp4   1280x720    30    │ ~ 17.29MiB 1253k m3u8  │ avc1.4D401F   1253k video only
136 mp4   1280x720    30    │    8.59MiB  639k https │ avc1.4D401F    639k video only          720p, mp4_dash
609 mp4   1280x720    30    │ ~ 18.18MiB 1318k m3u8  │ vp09.00.31.08 1318k video only
247 webm  1280x720    30    │    8.16MiB  608k https │ vp09.00.31.08  608k video only          720p, webm_dash
270 mp4   1920x1080   30    │ ~ 38.21MiB 2770k m3u8  │ avc1.640028   2770k video only
137 mp4   1920x1080   30    │   21.19MiB 1577k https │ avc1.640028   1577k video only          1080p, mp4_dash
614 mp4   1920x1080   30    │ ~ 37.04MiB 2685k m3u8  │ vp09.00.40.08 2685k video only
248 webm  1920x1080   30    │   14.97MiB 1114k https │ vp09.00.40.08 1114k video only          1080p, webm_dash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants