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

[chaturbate] youtube-dl occasionally hangs while downloading live stream... #14321

Open
dustycy opened this issue Sep 25, 2017 · 2 comments
Open

[chaturbate] youtube-dl occasionally hangs while downloading live stream... #14321

dustycy opened this issue Sep 25, 2017 · 2 comments

Comments

@dustycy
Copy link

@dustycy dustycy commented Sep 25, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.09.24. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • [x ] I've verified and I assure that I'm running youtube-dl 2017.09.24

Before submitting an issue make sure you have:

  • [x ] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [ x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • [x ] Other

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 -v flag 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 ```):

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2017.09.24
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

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.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Oct 10, 2017

--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.

@yan12125 yan12125 changed the title youtube-dl occasionally hangs while downloading live stream... [chaturbate] youtube-dl occasionally hangs while downloading live stream... Oct 10, 2017
@ericzutter
Copy link

@ericzutter ericzutter commented Nov 25, 2017

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.