Tyrrrz / YoutubeDownloader

Downloads videos and playlists from YouTube
MIT License
8.7k stars 1.19k forks source link

Specific videos failed at around 95% complete due to ffmpeg conversion failure #405

Closed JerryC436 closed 9 months ago

JerryC436 commented 9 months ago

Version

v1.10.8

Platform

Windows 11

Steps to reproduce

Videos URL

https://www.youtube.com/watch?v=NtQkz0aRDe8 https://www.youtube.com/watch?v=F1Hq8eVOMHs https://www.youtube.com/watch?v=dSu5sXmsur4 https://www.youtube.com/watch?v=LEENEFaVUzU

Details

Expected behaviour

All videos download successfully.

Actual behaviour

The four videos above all failed at around 95% complete when using ffmpeg command-line tool. In the error log, it shows this warning message: "Application provided duration: {a huge number around 4294910296000} is invalid" and then the ffmpeg video conversion failed. image This same issue was reported recently with a different video which now seems to download fine: https://github.com/Tyrrrz/YoutubeDownloader/issues/397

Checklist

Tyrrrz commented 9 months ago

This same issue was reported recently with a different video which now seems to download fine: #397

This issue is not related to that one. #397 is about invalid subtitle language codes, while this one seems to be about mismatching track durations.

Tyrrrz commented 9 months ago

Crazy time debugging this, but it looks like the Chinese subtitles are broken. The last entry includes text content that is valid SRT, but contains incorrect length.

image

I assume these subtitles were added to the YouTube video by importing from an SRT file but something went wrong in the process.