Content Type
Profiles
Forums
Events
Everything posted by nicolaasjan
-
Bad news ☹️ : yt-dlp starts preparations to remove Python 3.9 support (October 2025): https://github.com/yt-dlp/yt-dlp/pull/13861 https://github.com/yt-dlp/yt-dlp/issues/13858
-
@j7n When you don't want the webm, you can tell yt-dlp to skip it: `bestaudio[language=en][ext!=webm]`
-
If you specifically want opus, yt-dlp can do that for you? 🤔 Try this: yt-dlp -x -f bestaudio[ext=webm] --embed-metadata --embed-thumbnail https://www.youtube.com/watch?v=PD-MdiUm1_Y ( `-x` will extract the opus audio)
-
I think I misunderstood. Can you play them when using `--remux-video mkv` ?
-
Audio only files? You can do it with a batch file from within the directory where you have the webm audio files (save as e.g. webm2mka.bat): @echo off for %%i in (*.webm) do ( ffmpeg -i "%%i" -c:a copy "%%~ni.mka" ) echo Conversion complete! pause Or directly while downloading with yt-dlp (see Post-Processing Options): yt-dlp -f 251 --remux-video mka https://www.youtube.com/watch?v=PD-MdiUm1_Y Removing cache dir C:\Documents and Settings\Nico/.cache\yt-dlp ... [youtube] Extracting URL: https://www.youtube.com/watch?v=PD-MdiUm1_Y [youtube] PD-MdiUm1_Y: Downloading webpage [youtube] PD-MdiUm1_Y: Downloading tv client config [youtube] PD-MdiUm1_Y: Downloading player a1f2424c-main [youtube] PD-MdiUm1_Y: Downloading tv player API JSON [youtube] PD-MdiUm1_Y: Downloading ios player API JSON [youtube] PD-MdiUm1_Y: Downloading m3u8 information [SponsorBlock] Fetching SponsorBlock segments [SponsorBlock] No matching segments were found in the SponsorBlock database [info] PD-MdiUm1_Y: Downloading 1 format(s): 251 [info] Downloading video thumbnail 41 ... [info] Writing video thumbnail 41 to: C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webp [ThumbnailsConvertor] Converting thumbnail "C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webp" to jpg Deleting original file C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webp (pass -k to keep) [download] Destination: C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webm [download] 0.0% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.0% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.1% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.2% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.4% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.8% of 8.09MiB at 6.14MiB/s ETA 00:01 [download] 1.5% of 8.09MiB at 4.13MiB/s ETA 00:01[download] 3.1% of 8.09MiB at 4.97MiB/s ETA 00:01[download] 6.2% of 8.09MiB at 8.31MiB/s ETA 00:00[download] 12.4% of 8.09MiB at 11.08MiB/s ETA 00:00[download] 24.7% of 8.09MiB at 16.63MiB/s ETA 00:00[download] 49.4% of 8.09MiB at 22.18MiB/s ETA 00:00[download] 98.9% of 8.09MiB at 27.54MiB/s ETA 00:00[download] 100.0% of 8.09MiB at 27.85MiB/s ETA 00:00[download] 100% of 8.09MiB in 00:00:00 at 20.71MiB/s [VideoRemuxer] Remuxing video from webm to mka; Destination: C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].mka Deleting original file C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webm (pass -k to keep) [ModifyChapters] SponsorBlock information is unavailable [Metadata] Adding metadata to "C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].mka" [EmbedThumbnail] ffmpeg: Adding thumbnail to "C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].mka"
-
Given that the yt-dlp issue tracker will only accept issues accompanied with a verbose log from their own release builds, I'm afraid any issues experienced with my build cannot be discussed there. Also, any issues with my fork will mostly also happen with the upstream build. So, first search their issue tracker to see if someone has experienced something similar. If nothing is found, then perhaps ask right here? Or, like another forum member had done, PM me. He had an issue with some Polish site and I was able to reproduce it with the official yt-dlp build. Then I opened an issue there and it was solved.
-
Done. 😽
-
Yes, I saw that. However, their new code snippet used in that commit didn't play well with Python 3.4.4... Maybe I can implement it like: def random_user_agent(): _USER_AGENT_TPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36' _CHROME_VERSIONS = ( '132.0.0.0', '133.0.0.0', '134.0.0.0', '135.0.0.0', '136.0.0.0', '137.0.0.0', '138.0.0.0', ) return _USER_AGENT_TPL % random.choice(_CHROME_VERSIONS) 🤔
-
Hmm... I honestly have no idea. The build hashes for `youtube-dl.exe` in my repo can be seen under Assets. However, in the Nightly repo there are separate SHA2-256SUMS files. Maybe the program looks for these? (wild guess) The executables in my repo aren't built by GitHub Actions, but manually uploaded. I think you shouldn't worry about it to much.
-
I don't know anything about Python either, but I just uploaded the new `update.py` (with only one line changed) into the GitHub web editor and committed.
-
@VistaLover That's because of line 37 in `./youtube_dl/update.py`. UPDATE_URL = 'https://yt-dl.org/update/' For some reason it redirects to: https://github.com/yt-dlp/yt-dlp/update/ ---> 404. In version 2025.06.26 (and previous versions) I had it set to: UPDATE_URL = 'https://ytdl-org.github.io/youtube-dl/update/' (also 404, by the way) My version is not supposed to be updated with `-U`. Do you perhaps have any idea how to change `update.py` for my fork to actually make it work with `-U`? [Edit] I think I managed to fix it. Took `update.py` from youtube-dl Nightly as an example. youtube-dl -vU [debug] System config: [] [debug] User config: ['--console-title', '--rm-cache-dir', '-i', '-o', '/dev/shm/test-ytd/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4][vcodec^=avc]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--no-mtime', '--embed-thumbnail', '--force-ipv4'] [debug] Custom config: [] [debug] Command-line args: ['-vU'] [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8 [debug] youtube-dl version 2025.07.12 [debug] Lazy loading extractors enabled [debug] Single file build [debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-143-generic-x86_64-with-glibc2.35 - OpenSSL 3.0.2 15 Mar 2022 - glibc 2.35 [debug] exe versions: ffmpeg N-120171-g05094c1749-20250705, ffprobe N-120171-g05094c1749-20250705, rtmpdump 2.4 [debug] Proxy map: {} Latest version: 2025.07.12, Current version: 2025.07.12 youtube-dl is up to date (2025.07.12) Removing cache dir /home/nico/.cache/youtube-dl .. I also don't understand why @dirkf still hasn't updated the Installation section in the Readme. It's a complete mess. BTW, I've made a significant change to `./youtube_dl/utils.py`, as I suggested here. Youtube-dl actually works now.
-
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
See: https://forum.palemoon.org/viewtopic.php?f=17&t=32478#p263454 -
It's a convoluted mess... See issue #12482. You may need to provide a PO Token. That said, I didn't yet have this warning (I download 1080p avc1/mp4a videos most of the time). Related?
-
Can you try: --extractor-args youtube:lang=en ? [Edit] Ignore that. That is for the title, not for the audio. Maybe first get the formats using `yt-dlp -F URL`. Then choose for example this to get this mr. Beast video dubbed in Russian: yt-dlp -f 136+140-1 https://www.youtube.com/watch?v=yhB3BgJyGl8 Or: yt-dlp -f "bv*+ba[language=ru]" https://www.youtube.com/watch?v=yhB3BgJyGl8
-
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
Yes. -
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
Is it: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2768 ? -
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
Same in New Moon. I don't even get this error window; browser just closes... [Edit] Browser also instantly crashes when trying to open the uBlock Origin dashboard. Reverted to previous New Moon (2025-06-17) and no issues. -
@K4sum1 Could you try again with the new update? An important issue was fixed. I tried in my Windows 7 VM with the following command: yt-dlp --no-config -f "(bestvideo[height<=720]+bestaudio/best[height<=720])[vcodec!*=av01]" -t mkv "https://youtu.be/bCTObNkRGsg" And it gave me an mkv file with opus audio: Algemeen Unique ID : 57964954628617501393979581759164836982 (0x2B9BA4E945544816E3D80FC0D01CEC76) Volledige naam : C:\Users\Nico\I Built a Toilet Paper Slot Machine and It Actually Works! [bCTObNkRGsg].mkv Formaat : Matroska Formaatversie : Version 4 Bestandsgrootte : 5,04 MiB Duur : 2 min 22s Totale bitrate : 297 kb/s Framerate : 30,000 FPS Gebruikt programma : Lavf62.0.102 Gebruikte encoderbibliotheek : Lavf62.0.102 ErrorDetectionType : Per level 1 Video ID : 1 Formaat : VP9 Formaatprofiel : 0 Codec-ID : V_VP9 Duur : 2 min 22s Breedte : 360 pixels Hoogte : 640 pixels Beeldverhouding : 0,562 Frameratemodus : Constant Framerate : 30,000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Taal : Engels Default : Ja Forced : Nee Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio ID : 2 Formaat : Opus Codec-ID : A_OPUS Duur : 2 min 22s Kanaal(en) : 2 kanalen Channel layout : L R Samplerate : 48,0 kHz Bit depth : 32 bits Compression mode : Lossy Video vertraging : 7 ms Taal : Engels Default : Ja Forced : Nee
-
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
I've always wondered about this as well. In the past I built Pale Moon on Linux a few times on my old Haswell i5 with 16GB Ram and it took about 20 minutes. PS, Supercomputers don't run Windows. -
YouTube under Windows XP - Downloaders, players and browser support
nicolaasjan replied to AstroSkipper's topic in Windows XP
I've confirmed that version 2025.03.28.070132 still gives the right message: Current version: local@2025.03.28 Latest version: stable@2025.03.31 from yt-dlp/yt-dlp ERROR: Do not update the XP build with -U. Instead download from GitHub Releases again when a new version is available. Version 2025.04.01.080324 doesn't give the error message, but instead upgrades to the official x86 build. I must have forgotten to edit `version.py`. UPDATE_HINT = 'Do not update this build with -U. Instead download from my GitHub Releases again when a new version is available.'- 129 replies
-
2
-
- YouTube
- youtube-dl
-
(and 2 more)
Tagged with:
-
YouTube under Windows XP - Downloaders, players and browser support
nicolaasjan replied to AstroSkipper's topic in Windows XP
What did I change? I can't remember having done anything to the yt-dlp release.- 129 replies
-
1
-
- YouTube
- youtube-dl
-
(and 2 more)
Tagged with:
-
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
Yes, the same issue can be seen in Pale Moon (official). -
YouTube under Windows XP - Downloaders, players and browser support
nicolaasjan replied to AstroSkipper's topic in Windows XP
Not only my youtube-dl. The official one doesn't work either. [youtube] PD-MdiUm1_Y: Downloading player 20830619 WARNING: [youtube] PD-MdiUm1_Y: Unable to decode n-parameter: expect download to be blocked or throttled See issue #33102- 129 replies
-
2
-
- YouTube
- youtube-dl
-
(and 2 more)
Tagged with:
-
Yes, that was fixed 2 days ago with this commit.
-
Should be fixed with this commit. I've updated my build of youtube-dl. Click on the link in my signature, or get it from here. youtube-dl -v https://www.youtube.com/watch?v=VkAGO65m7zA [debug] System config: [] [debug] User config: ['--console-title', '--rm-cache-dir', '-i', '-o', '/dev/shm/test-ytd/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4][vcodec^=avc]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--no-mtime', '--embed-thumbnail', '--force-ipv4'] [debug] Custom config: [] [debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=VkAGO65m7zA'] [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8 [debug] youtube-dl version 2025.03.26 [debug] Lazy loading extractors enabled [debug] Single file build [debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-135-generic-x86_64-with-glibc2.35 - OpenSSL 3.0.2 15 Mar 2022 - glibc 2.35 [debug] exe versions: ffmpeg N-118905-gcbbc927a67-20250324, ffprobe N-118905-gcbbc927a67-20250324, rtmpdump 2.4 [debug] Proxy map: {} Removing cache dir /home/nico/.cache/youtube-dl ... [youtube] VkAGO65m7zA: Downloading webpage [youtube] VkAGO65m7zA: Downloading TVHTML5 API JSON [youtube] VkAGO65m7zA: Downloading player 363db69b [debug] [youtube] Decrypted nsig hfNZjNyvEvbXH8GgQ => lTBfL0Mv03nNQQ [debug] [youtube] Decrypted nsig SnZwwCPJNfqHtV0Tk => JsHrGt7DnNJHkg [youtube] VkAGO65m7zA: Downloading thumbnail ... [youtube] VkAGO65m7zA: Writing thumbnail to: /dev/shm/test-ytd/When food is actually too old to eat.jpg [debug] Invoking downloader on 'https://rr2---sn-5hnekn7l.googlevideo.com/videoplayback?expire=1742992623&ei=j6DjZ-3UEpbXi9oPidOKgA8&ip=<REDACTED>&id=o-AEOleGADhXuRXbThj2VuIcSnjUrVHXZSYGSXEeYo_j0t&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1742971023%2C&mh=FB&mm=31%2C29&mn=sn-5hnekn7l%2Csn-5hne6nzk&ms=au%2Crdu&mv=m&mvi=2&pl=16&rms=au%2Cau&initcwndbps=4437500&bui=AccgBcOLm1YHkTtGqu07fYP5Fel8A4c5q-XRthbkEuQMPN83U9Ty72c4mTtUNJUxse_jULIO_ljbCZKR&vprv=1&svpuc=1&mime=video%2Fmp4&ns=U7AzfhiMtEY_pkkvlCugQiAQ&rqh=1&gir=yes&clen=228049231&dur=986.652&lmt=1742776449710566&mt=1742970544&fvip=1&keepalive=yes&lmw=1&c=TVHTML5&sefc=1&txp=3309224&n=JsHrGt7DnNJHkg&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRgIhAItHUWwrzIfkhuj5qFuknvypVvS9O37PcvY3KiINKrnRAiEAlqo55UdO9FMjAMwgVm5WOAHzw6_ZVM2JFNBDAYsFX_g%3D&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=AFVRHeAwRgIhAN2Sc9eA0N5nprqjyM5zXmeKKYuZ2glBBcViD-wGCLszAiEA093797tCvs0GHOGWXbfu900wqhsd38EwivZc7FcnEac%3D' [dashsegments] Total fragments: 22 [download] Destination: /dev/shm/test-ytd/When food is actually too old to eat.f137.mp4 [download] 100% of 217.48MiB in 00:09 [debug] Invoking downloader on 'https://rr2---sn-5hnekn7l.googlevideo.com/videoplayback?expire=1742992623&ei=j6DjZ-3UEpbXi9oPidOKgA8&ip=<REDACTED>&id=o-AEOleGADhXuRXbThj2VuIcSnjUrVHXZSYGSXEeYo_j0t&itag=140&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1742971023%2C&mh=FB&mm=31%2C29&mn=sn-5hnekn7l%2Csn-5hne6nzk&ms=au%2Crdu&mv=m&mvi=2&pl=16&rms=au%2Cau&initcwndbps=4437500&bui=AccgBcOLm1YHkTtGqu07fYP5Fel8A4c5q-XRthbkEuQMPN83U9Ty72c4mTtUNJUxse_jULIO_ljbCZKR&vprv=1&svpuc=1&xtags=acont%3Doriginal%3Alang%3Den-US&mime=audio%2Fmp4&ns=U7AzfhiMtEY_pkkvlCugQiAQ&rqh=1&gir=yes&clen=15969555&dur=986.708&lmt=1742776468552695&mt=1742970544&fvip=1&keepalive=yes&lmw=1&c=TVHTML5&sefc=1&txp=3308224&n=JsHrGt7DnNJHkg&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cvprv%2Csvpuc%2Cxtags%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRQIhALAFRAve53AwIraDDScIy3fTXC3lvcudPLgLuo2qC6FDAiB4JzhAepvrlxaJpc-4Bc76PA3jlRnWlvyxI3Z3_A-ZVg%3D%3D&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=AFVRHeAwRgIhAN2Sc9eA0N5nprqjyM5zXmeKKYuZ2glBBcViD-wGCLszAiEA093797tCvs0GHOGWXbfu900wqhsd38EwivZc7FcnEac%3D' [dashsegments] Total fragments: 2 [download] Destination: /dev/shm/test-ytd/When food is actually too old to eat.m4a.f140-1.m4a [download] 100% of 15.23MiB in 00:00 [ffmpeg] Merging formats into "/dev/shm/test-ytd/When food is actually too old to eat.mp4" [debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/dev/shm/test-ytd/When food is actually too old to eat.f137.mp4' -i 'file:/dev/shm/test-ytd/When food is actually too old to eat.m4a.f140-1.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:/dev/shm/test-ytd/When food is actually too old to eat.temp.mp4' Deleting original file /dev/shm/test-ytd/When food is actually too old to eat.f137.mp4 (pass -k to keep) Deleting original file /dev/shm/test-ytd/When food is actually too old to eat.m4a.f140-1.m4a (pass -k to keep) [ffmpeg] Adding thumbnail to "/dev/shm/test-ytd/When food is actually too old to eat.mp4" [debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/dev/shm/test-ytd/When food is actually too old to eat.mp4' -i 'file:/dev/shm/test-ytd/When food is actually too old to eat.jpg' -c copy -map 0 -map 1 -disposition:v:1 attached_pic 'file:/dev/shm/test-ytd/When food is actually too old to eat.temp.mp4'