Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloader continues .part file of different format -> Broken video file #23712

Closed
Unrud opened this issue Jan 12, 2020 · 1 comment
Closed

Downloader continues .part file of different format -> Broken video file #23712

Unrud opened this issue Jan 12, 2020 · 1 comment

Comments

@Unrud
Copy link

@Unrud Unrud commented Jan 12, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.01.01
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'LXb3EKWsInQ', '-f', '22']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.01.01
[debug] Python version 3.7.4 (CPython) - Linux-4.15.0-74-generic-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] LXb3EKWsInQ: Downloading webpage
[youtube] LXb3EKWsInQ: Downloading video info webpage
[debug] Invoking downloader on 'https://r3---sn-4g5e6ns7.googlevideo.com/videoplayback?expire=1578835417&ei=eckaXu3UBoTK1gLdmI3YDw&ip=2a03%3A7500%3A836%3A5600%3Adc9f%3Ae230%3A5f51%3A9d66&id=o-AM27C-OUPCZba9GAOETJb1A5aQ4IGU9-PPjG_iUELwcb&itag=22&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-4g5e6ns7%2Csn-5hne6nsz&ms=au%2Conr&mv=m&mvi=2&pl=32&initcwndbps=1580000&vprv=1&mime=video%2Fmp4&ratebypass=yes&dur=313.840&lmt=1578718518076912&mt=1578813758&fvip=3&fexp=23842630&c=WEB&txp=5532232&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIhAK_VWqaZ1wCA4_1LHIoV_iXCcRBVolQgWXO8u-cHGYmKAiBSxugiDAB1oPb1XDyVSF-QLZ2HI8emXk5xLfO89ZXrpw%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRgIhANx0ChGlmokKFfEPZBOOtIbcTj9aTdJqLlkvpx8pc5dVAiEA6af9Xxy-r_Fnuah4PZMJWMHL0kN-1rBDT-MELQoaZK0%3D'
[download] Destination: COSTA RICA IN 4K 60fps HDR (ULTRA HD)-LXb3EKWsInQ.mp4
[download]   6.4% of 62.44MiB at  5.41MiB/s ETA 00:10^C
ERROR: Interrupted by user
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'LXb3EKWsInQ', '-f', '18']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.01.01
[debug] Python version 3.7.4 (CPython) - Linux-4.15.0-74-generic-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] LXb3EKWsInQ: Downloading webpage
[youtube] LXb3EKWsInQ: Downloading video info webpage
[debug] Invoking downloader on 'https://r6---sn-4g5edne6.googlevideo.com/videoplayback?expire=1578835426&ei=gskaXtG3G4HlgAfMiY2AAw&ip=2a03%3A7500%3A836%3A5600%3Adc9f%3Ae230%3A5f51%3A9d66&id=o-ALVU-50ziXyTAnyYs9AFLuGEH7IN4uSRl0PVsC6mvwno&itag=18&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-4g5edne6%2Csn-4g5e6ns7&ms=au%2Crdu&mv=m&mvi=5&pl=32&initcwndbps=1642500&vprv=1&mime=video%2Fmp4&gir=yes&clen=25723769&ratebypass=yes&dur=313.840&lmt=1578715690501077&mt=1578813699&fvip=3&fexp=23842630&c=WEB&txp=5531232&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRgIhANcpdnLqFBLiSjlXF33CxU8vo6If7ttgQ2n172NYqFgIAiEArpPgeRdGN0uO_qB_dzB8MPY0oNngVgRS9m7LvTHugC8%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgfsVIwc5NZzplG4JfGE5n2pbVmdR3GR6IJLS0zDni8JICIHtZYW0HfWyEHEH8HSLlvwGwqP_nKCMcQiVO37CJuN6P'
[download] Resuming download at byte 4193280
[download] Destination: COSTA RICA IN 4K 60fps HDR (ULTRA HD)-LXb3EKWsInQ.mp4
[download] 100% of 24.53MiB in 00:03

Description

Downloading part of a video with one format and continuing the download with a different format results in a broken video file. The downloader resumes the download of the new format from the partial download of the old format.

The format_id should be included in the partially downloaded file to prevent this.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 12, 2020

It's your responsibility to include format_id if you start using such scenarios.

@dstftw dstftw closed this Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.