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.
Java unable to read real-time output of youtube-dl #16556
Comments
|
So what? How is this even related to youtube-dl? If youtube-dl returned it as one chunk you'd get the same single chunk when running from command line but you get it gradually. So fix your code. |
|
Whoa, why so rude? Nice to meet you too. I hope you don't treat your coworkers or other people in your life the way you do professionals on the Internet. Please see: https://stackoverflow.com/questions/13530429/read-realtime-output-of-a-command There appears to be an issue with the application treating console output and piping from another application different. I will admit I may be wrong about that but from what i've researched seems to suggest the issue is coming from the source application, e.g. youtube-dl. If the program was actually piping the data in real-time the Java code I have provided above should be able to retrieve in real-time as well. I would ask that you look at this for more than a fraction of a second before closing out the ticket. Any assistance would be appreciated. Thanks. |
|
If something works everywhere apart from your code then it pretty much obvious whose code is broken. Yes, I've just wasted 15 minutes to check if this works properly in dummy Qt/C++ UI app running And by the way, I either hope you don't blame and spread your incompetence to your coworkers or other people in your life the way you do it on the Internet. Thanks. |
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 2018.05.26. 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?
PROBLEM:
I'm trying to use Java to embed
youtube-dlinto my application. However, I cannot capture the output of the program until after the program has completely executed. The output is returned to me in one large batch. Here is my code.