Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Download pauses in the middle until user clicks [enter] key in command prompt #20690
Comments
|
Totally unrelated to youtube-dl as described by your link. |
|
Yes. It is unrelated. But I'm pretty sure that someone else is going to come across this issue and I hope that this ticket serves as a placeholder to direct them to the right solution. An update from my side. I tried out the solution in the link and it's working fine. youtube-dl (aka whatever application is running in cmd prompt) does not hang by itself anymore. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.04.17. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):PROBLEM + SOLUTION FOR EVERYONE!
PROBLEM = command prompt gets stuck in between the download. Then I have to hit enter to get it to work again.
SOLUTION: Disable the quick-edit mode as described here: https://stackoverflow.com/questions/33883530/why-is-my-command-prompt-freezing-on-windows-10
Sure. It hangs somewhere in between. I don't remember the exact point. But it just waited there for an hour until I brought the focus to the command-prompt and then clicked [enter] key. Once I tapped it, it immediately continued. Here're the complete logs:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-o', 'C:/Mugen/videos/test.mp4', 'https://www.youtube.com/embed/qKP9ZujwUUQ', '-f', 'bestvideo[height<=480] + bestaudio/best[height<=480]']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2019.03.18
[debug] Python version 3.6.2 (CPython) - Windows-10-10.0.17134-SP0
[debug] exe versions: ffmpeg git-2017-12-29-0c78b6a, ffprobe git-2017-12-29-0c78b6a
[debug] Proxy map: {}
[youtube] qKP9ZujwUUQ: Downloading webpage
[youtube] qKP9ZujwUUQ: Downloading video info webpage
[youtube] qKP9ZujwUUQ: Downloading MPD manifest
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/sparams/as%2Cei%2Chfr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cplayback_host%2Crequiressl%2Csource%2Cexpire/mn/sn-ci5gup-cag6%2Csn-ci5gup-h55z/id/a8a3fd66e8f05144/expire/1555457897/source/youtube/mv/m/ms/au%2Crdu/ip/122.171.163.242/key/yt6/itag/0/ipbits/0/mt/1555436266/initcwndbps/692500/requiressl/yes/hfr/all/playback_host/r5---sn-ci5gup-cag6.googlevideo.com/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/ei/CRO2XJr1DKmB3LUPtKOL-Ak/fvip/5/mm/31%2C29/signature/C6D298024E9127DA7D540E7D71B85DD88D309ABF.9B04166760DACC6676B2360954AAA3D2E7965429/pl/20'
[dashsegments] Total fragments: 86
[download] Destination: C:/Mugen/videos/test.f135.mp4
[download] 79.1% of ~20.88MiB at 2.65MiB/s ETA 00:28
Description of your issue, suggested solution and other information
I've got some automation going on in which I invoke youtube-dl by starting a command-prompt and pass it a bunch of parameters.
In the whole process, it keeps downloading the videos with various launches. However, every now and then it gets stuck in-between. It's more like it's gone to sleep mode. Once this happens then it can even be hours before it resumes again. I need to select the command prompt with my mouse and then hit an [enter] key.
***Another important observation: ***
I think that the command prompt goes into this "select" mode as described over here: https://stackoverflow.com/questions/33883530/why-is-my-command-prompt-freezing-on-windows-10
I'm currently trying out this solution. Will update this thread again if it reproduces. If it doesn't, then the correct solution for this issue is as described in the link. We need to disable quick-edit mode for cmd.