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.
[chaturbate] youtube-dl occasionally hangs while downloading live stream... #14321
Comments
|
--hls-prefer-native or --hls-use-mpegts can help if you wish to have a working file after hitting Ctrl+C. On the other hand, please paste stack traces from interrupted youtube-dl. It's absolutely difficult to guess what's going on without a stack trace. |
|
I have the same problem on Windows 7. I created a Python 3 script to run youtube-dl.exe in a loop every 15 minutes unless it is already running anyways. When download of chaturbate hangs, I have to hit 2 times Ctrl+C to unblock it. When it hangs the downloaded file is big (= 600 MB or more than 1 GB). Adding parameter --hls-prefer-native still generates a corrupted .mp4 file after hitting 2 times Ctrl+C. Adding parameter --hls-use-mpegts (and NOT adding parameter --hls-prefer-native) generates a working .mp4 file after hitting 2 times Ctrl+C. There is still the problem that you have to click 2 times Ctrl+C manually. It would be better if youtube-dl exits with an error automatically if it hangs. How do you get a stack trace on Windows 7 ? |
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 2017.09.24. 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 ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
I have got a power shell script that is scheduled to run by the windows 10 task scheduler every 5 minutes. The power shell script invokes youtube-dl for some performers on chaturbate. If the performer is broadcasting, youtube-dl starts downloading. However, it occasionally hangs forever while downloading. This probably happens because of a bad network connection on the transmitting or receiving end. youtube-dl hangs forever and fails to continue writing to the file. I have found youtube-dl hanging inside the power shell window several times and I have forced it to stop by using Ctrl+C only to get a corrupt file.
I have tried passing low values to --socket-timeout, but that did not help. Are there any parameters that I could use to force youtube-dl exit properly when it hangs forever? My power shell wrapper script is scheduled to invoke youtube-dl every 5 minutes unless it is already running anyways. I would rather have youtube-dl exit properly and have non-corrupt file fragments than have it hanging forever.