sealedtx / java-youtube-downloader

Simple, almost zero-dependency java parser for retrieving youtube video metadata
Other
413 stars 115 forks source link

Download completed immediately without having the full video #105

Open N3Y9DMvKHVNhku75c3HS opened 2 years ago

N3Y9DMvKHVNhku75c3HS commented 2 years ago

https://www.youtube.com/watch?v=oG55FP6P3-g

I am using the library to download the above video with bestVideoFormat. When I called the downloadVideoFile method. It completed almost at instant. I added callback method to see the progress but there is no exception and seems working fine. At the end, the video downloaded is just a one second video.

Also when I use bestVideoWithAudioFormat. it gives a null. Please help. Thanks.

sealedtx commented 2 years ago

@N3Y9DMvKHVNhku75c3HS at first take the url you get from Format and open it in browser, check if it is ok and not 1 second video

N3Y9DMvKHVNhku75c3HS commented 2 years ago

@sealedtx The returned url is not playable in safari. But I tried in Firefox, it returned a 1 second video. I tried to dig into the source of that YouTube page. The url in the json file also returned a 1 second video.

sealedtx commented 2 years ago

@N3Y9DMvKHVNhku75c3HS check urls from other formats, maybe there is bug for bestFormat (from youtube side)

N3Y9DMvKHVNhku75c3HS commented 2 years ago

@sealedtx checked all format. all failed....

sealedtx commented 2 years ago

@N3Y9DMvKHVNhku75c3HS sorry, I have no time to investigate your issue. Please try to search similar issues on youtube-dl repository, may be you will find a solution so we can implement it together