java-youtube-downloader icon indicating copy to clipboard operation
java-youtube-downloader copied to clipboard

Download completed immediately without having the full video

Open N3Y9DMvKHVNhku75c3HS opened this issue 1 year ago • 5 comments

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.

N3Y9DMvKHVNhku75c3HS avatar Jul 18 '22 09:07 N3Y9DMvKHVNhku75c3HS

@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

sealedtx avatar Jul 18 '22 18:07 sealedtx

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

N3Y9DMvKHVNhku75c3HS avatar Jul 18 '22 19:07 N3Y9DMvKHVNhku75c3HS

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

sealedtx avatar Jul 18 '22 20:07 sealedtx

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

N3Y9DMvKHVNhku75c3HS avatar Jul 18 '22 20:07 N3Y9DMvKHVNhku75c3HS

@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

sealedtx avatar Jul 21 '22 18:07 sealedtx