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

Dynamic data output? #1725

Closed
letrongbang opened this issue Nov 5, 2013 · 5 comments
Closed

Dynamic data output? #1725

letrongbang opened this issue Nov 5, 2013 · 5 comments

Comments

@letrongbang
Copy link

@letrongbang letrongbang commented Nov 5, 2013

i have an issue that is dynamic data output when downloading....

i know youtube-dl download and save temp file until to complete. but user need wait and get file after.

i need youtube-dl download per partial of video data and save file and at the same time print this data.

on PHP or other language. I will receive this data and return for user.

Thus, the user can download without waiting compeleted.

I just know python and looking where in code to download video data to resolve this.

Kindly help. Thank you

@xanadu
Copy link
Contributor

@xanadu xanadu commented Nov 5, 2013

See #469

@Rudloff

There is a example and even source code.

@letrongbang
Copy link
Author

@letrongbang letrongbang commented Nov 6, 2013

Mysite: http://togetvideo.com/

Everything fine.

However, i still feel it is not smooth.

When user click download button, they must waiting for youtube-dl completed and then get video file.

i want improve it.

i think why user can not get data live from youtube-dl when youtube-dl starting download.

youtube-dl downloading |=> save temp file (php can cached this file)
|=> output data (php can get and passthu to browser)

how can it do it.

@xanadu
Copy link
Contributor

@xanadu xanadu commented Nov 6, 2013

Check the link I provided again. It does what you asked for.

Sent from my iPhone

On Nov 5, 2013, at 7:09 PM, Le bang notifications@github.com wrote:

Mysite: http://togetvideo.com/

Everything fine.

However, i still feel it is not smooth.

When user click download button, they must waiting for youtube-dl completed and then get video file.

i want improve it.

i think why user can not get data live from youtube-dl when youtube-dl starting download.

youtube-dl downloading |=> save temp file (php can cached this file)
|=> output data (php can get and passthu to browser)

how can it do it.


Reply to this email directly or view it on GitHub.

@letrongbang
Copy link
Author

@letrongbang letrongbang commented Nov 7, 2013

@xanadu: Thank you verymuch.

That solution do not cache file.

i want cache file during dynamic output.

@letrongbang
Copy link
Author

@letrongbang letrongbang commented Nov 11, 2013

I'm a newbie.

After my first question but nobody can be help me.

I was learning about python language and edit source.

now, it's done and very good.

when i developing GUI (http://togetvideo.com) then user can be down time wait.

User's browser start download immediately youtube-dl starting download.

Often they must wait youtube-dl completed download then get file.

over dynamic feature, i still get cache file for second times download same video.

ex: youtube-dl http://www.youtube.com/watch?v=9bZkp7q19f0 -q -d

youtube-dl will write to stdout binary data of per video part immediately when youtube-dl loaded.

on PHP i can passthru this data to browser.

i want put to existed source code on github but i don't know for how to do.

Please help me.

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
2 participants
You can’t perform that action at this time.