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

downloading from youtube-dl in io.BytesIO and playing it in realtime #25131

Closed
brightening-eyes opened this issue May 4, 2020 · 3 comments
Closed
Labels

Comments

@brightening-eyes
Copy link

@brightening-eyes brightening-eyes commented May 4, 2020

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

hi,
I want to use youtube-dl from python and I want to download the video in a io.BytesIO object so I can play it in realtime without using any players.
my application is a client-server thing, where the client asks for the video, and the server plays it for all the clients.
is there anyway that I can use youtube-dl like this?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 4, 2020

No. But you can output to stdout.

@dstftw dstftw closed this May 4, 2020
@brightening-eyes
Copy link
Author

@brightening-eyes brightening-eyes commented May 4, 2020

is it possible to redirect the sys.stdout?
does it write to it? because I have no problem reading from that then.

@thekillgfx
Copy link

@thekillgfx thekillgfx commented Jun 12, 2020

@brightening-eyes did you get a solution? I'm working on the same thing but seems like there isn't a solution over the internet!

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.