Comments (12)
btw, how are you running it? I can't see your git HEAD in the debug.
Did you compile it yourself? If so, it may not work. When you compile, the necessary packages must also be compiled alongside. So some changes will have to be made in make_win
. I suggest you either wait till I make the next release, or run from source
from yt-dlp.
@cd /d "C:\Users\Nico\Desktop\yt-dlp-master\youtube_dlc"
@py __main__.py %*
But cd into the folder will cause all relative paths to be set from there. So you probably don't want to do that. If you want to retain your cd, you can just use the youtube-dlc.cmd
in the repo. Or, you could do:
@cd /d "PATH YOU WANT TO BE CD"
@py "C:\Users\Nico\Desktop\yt-dlp-master\youtube_dlc\__main__.py" %*
Edit: I forgot the %*
which tells it to pass the arguments through to dlc
from yt-dlp.
I don't see make_win.bat, pyinst.py and pyinst32.py any more?
I combined pyinst with pyinst32 and moved it inside devscripts. You can run py devscripts\pyinst.py 64
or py devscripts\pyinst.py 32
to build. I've updated the instructions in https://github.com/pukkandan/yt-dlp#compile
make_win code was outdated, so I removed it.
relevent commit: pukkandan/empty@e38df8f
I am closing this issue since the release is now available
Edit: just saw your edit, lol
from yt-dlp.
Try using py -m pip install mutagen
. By default, python
points to python2 and py
to python3
from yt-dlp.
btw, how are you running it? I can't see your git HEAD in the debug.
Did you compile it yourself? If so, it may not work. When you compile, the necessary packages must also be compiled alongside. So some changes will have to be made in
make_win
. I suggest you either wait till I make the next release, or run from source
Yes, I compiled myself with pyinst.py
, not knowing that the necessary packages needed to be compiled alongside.
I was thinking that it should work on Windows, because it also worked on Linux. My bad...
py -m pip install mutagen
made no difference.
C:\Users\Nico\Desktop\yt-dlp-master\youtube_dlc> .\__main__.py -v -x -f bestaudio https://www.youtube.com/watch?v=UsYkLXycbYU
This worked.
Sorry for the inconvenience.
I must learn to be more patient...
from yt-dlp.
Sorry for the inconvenience.
No inconvenience for me. Dont worry about it :)
from yt-dlp.
(offtopic)
Now that you're here; how would a Windows batch file look like?
cd
to C:\Users\Nico\Desktop\yt-dlp-master\youtube_dlc
and then call __main__.py
.
I can then use that in my "Open With" context menu in the browser.
from yt-dlp.
Can you download the release and confirm that mutagen imports correctly? I dont have a win7 system to check
from yt-dlp.
Can you download the release and confirm that mutagen imports correctly? I dont have a win7 system to check
Yes, I can confirm it works!
(thumbnail visible in the media player)
PS C:\Windows\system32> youtube-dlc -v -x -f bestaudio https://www.youtube.com/watch?v=UsYkLXycbYU
[debug] User config file: C:\Users\Nico\AppData\Roaming\youtube-dlc\config.txt
[debug] User config: ['--no-mtime', '-o', '~/Desktop/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4]+bestaud
io[ext=m4a]/best[ext=mp4]/best', '--embed-thumbnail']
[debug] Command-line config: ['-v', '-x', '-f', 'bestaudio', 'https://www.youtube.com/watch?v=UsYkLXycbYU']
[debug] Loading archive file None
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] yt-dlp version 2021.01.29
[debug] Python version 3.8.7 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 2021-01-27-git-149bfc2445-full_build-www.gyan.dev, ffprobe 2021-01-27-git-149bfc2445-full_b
uild-www.gyan.dev
[debug] Proxy map: {}
[youtube] UsYkLXycbYU: Downloading webpage
[youtube] {18} signature length 103, html5 player 7bc032d0
[youtube] UsYkLXycbYU: Downloading player https://www.youtube.com/s/player/7bc032d0/player_ias.vflset/en_US/base.js
[youtube] {134} signature length 107, html5 player 7bc032d0
[youtube] UsYkLXycbYU: Downloading player https://www.youtube.com/s/player/7bc032d0/player_ias.vflset/en_US/base.js
[youtube] {243} signature length 107, html5 player 7bc032d0
[youtube] {133} signature length 107, html5 player 7bc032d0
[youtube] {242} signature length 103, html5 player 7bc032d0
[youtube] {160} signature length 107, html5 player 7bc032d0
[youtube] {278} signature length 103, html5 player 7bc032d0
[youtube] {140} signature length 107, html5 player 7bc032d0
[youtube] {249} signature length 107, html5 player 7bc032d0
[youtube] {250} signature length 107, html5 player 7bc032d0
[youtube] {251} signature length 107, html5 player 7bc032d0
[debug] Sort order given by user:
[debug] Formats sorted by: lang, quality, hasvid, ie_pref, res, fps, vcodec, acodec, filesize, fs_approx, tbr, vbr, abr,
asr, proto, vext, aext, hasaud, source, id
[info] Downloading format(s) 251
[youtube] UsYkLXycbYU: Downloading thumbnail ...
[youtube] UsYkLXycbYU: Writing thumbnail to: C:\Users\Nico\Desktop\cuby and the blizzards window of my eyes.jpg
[debug] Invoking downloader on 'https://r5---sn-5hne6n7z.googlevideo.com/videoplayback?expire=1611969472&ei=YF8UYKCZIZ6O
1gKk5buACA&ip=<REDACTED>&id=o-AI6lvENE687GGekrN4VsEVcFESchwSymw2pHnzwBTlws&itag=251&source=youtube&requiressl=yes&mh
=tm&mm=31%2C29&mn=sn-5hne6n7z%2Csn-5hnedn7e&ms=au%2Crdu&mv=m&mvi=5&pl=15&initcwndbps=1371250&vprv=1&mime=audio%2Fwebm&ns
=M8vcUVUxSbTwqdbndOANbwUF&gir=yes&clen=2481451&dur=200.841&lmt=1496705555203583&mt=1611947589&fvip=5&keepalive=yes&c=WEB
&n=TdaSzs_oDsacZynBc&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2C
lmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgaCt9fO7IKEbqO4cwJjWXVjeZ53-v99S50bLFI8srS2
ECIQCWdiDwNEmJc2jIUGGzDh0-TwB6K6RhVO5HVcZYRMG4Kw%3D%3D&sig=AOq0QJ8wRQIhAP5k-9BXxnKHYbeuR3uZ_beXnNy9ikLPWWF2PfDQBlzFAiBrC
l0KgANnJ1wUGyaKSBsKkXAFjlYNs7BMDwR09Dek1g==&ratebypass=yes'
[download] Destination: C:\Users\Nico\Desktop\cuby and the blizzards window of my eyes.webm
[download] 100% of 2.37MiB in 00:00
[debug] ffmpeg command line: ffprobe -show_streams "file:C:\Users\Nico\Desktop\cuby and the blizzards window of my eyes.
webm"
[ExtractAudio] Destination: C:\Users\Nico\Desktop\cuby and the blizzards window of my eyes.opus
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:C:\Users\Nico\Desktop\cuby and the blizzards win
dow of my eyes.webm" -vn -acodec copy "file:C:\Users\Nico\Desktop\cuby and the blizzards window of my eyes.opus"
Deleting original file C:\Users\Nico\Desktop\cuby and the blizzards window of my eyes.webm (pass -k to keep)
[EmbedThumbnail] Correcting extension to webp and escaping path for thumbnail "C:\Users\Nico\Desktop\cuby and the blizza
rds window of my eyes.jpg"
[EmbedThumbnail] Converting thumbnail "C:\Users\Nico\Desktop\cuby and the blizzards window of my eyes.webp" to JPEG
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:C:\Users\Nico\Desktop\cuby and the blizzards win
dow of my eyes.webp" "-bsf:v" mjpeg2jpeg "file:C:\Users\Nico\Desktop\cuby and the blizzards window of my eyes.jpg"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:C:\Users\Nico\Desktop\cuby and the blizzards win
dow of my eyes.jpg" -hide_banner "file:C:\Users\Nico\Desktop\cuby and the blizzards window of my eyes.jpg"
Deleting original file C:\Users\Nico\Desktop\cuby and the blizzards window of my eyes.jpg (pass -k to keep)
from yt-dlp.
PS
I don't see make_win.bat
, pyinst.py
and pyinst32.py
any more?
[Edit]
I see pyinst.py
now lives in ./devscripts
and that you've changed the COMPILE section.
from yt-dlp.
Sorry for my ignorance; but can the 32-bit version also be built with 64-bit Python?
from yt-dlp.
I dont think so. youtube-dlc's documentation alteast said it can't
from yt-dlp.
Related Issues (20)
- yt-dlp doesn't use aria2c for subtitles and download is slower than videos HOT 12
- [Youtube] Add --flat-playlist support for https://www.youtube.com/feed/playlists HOT 1
- [twitter] x.com links give Unsupported URL error HOT 8
- --merge-output-format mkv / Resulting file is missing bit rate metadata HOT 5
- Unable to download the meta data of Vimeo video HOT 2
- Vimeo - Unable to download JSON metadata: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>) HOT 1
- ERROR: Unsupported URL: https://www.instagram.com/reels/C69PXQPPZlH/ HOT 1
- ERROR: Postprocessing: Error opening input files: Result too large
- orf.on No video formats found!
- Youtube comment Extractor Failed HOT 1
- DownloadError: ERROR: [vimeo] 942547573: Unable to download JSON metadata: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>) HOT 1
- Produce json output when a live content is upcoming or offline, communicating as such HOT 9
- [ThePlatform] [CWTV] - This format is DRM protected HOT 2
- [NoodleMagazine] Unable to extract player path
- TubiTV.com gives Unauthorized on all downloads HOT 5
- yt-dlp do not working with drm files from WOWPRESENTSPLUS HOT 1
- How do I remux video to a different format Using the Python yt-dlp invocation? HOT 1
- BBC News fails with "Unable to extract playlist data" error HOT 5
- yt-dlp --write-subs --sub-lang "live_chat" on a Live stream is always Top Chat
- Different response to --output, in two different situations HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yt-dlp.