java-youtube-downloader
java-youtube-downloader copied to clipboard
Download completed immediately without having the full video
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 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 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 check urls from other formats, maybe there is bug for bestFormat (from youtube side)
@sealedtx checked all format. all failed....
@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