Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl is downloading incorrect audio/mp4 files #6251
Comments
|
Metadata served by DASH manifest is incorrect. |
|
If the metadata is incorrect then are you also saying that audio file requests from youtube.com specify an incorrect content length in their request parameters? The file size returned by youtube-dl matches the content length in the manifest for every other audio/video format. Why do you think the metadata from the DASH manifest is incorrect? |
|
Sorry, I've misread your post (it's the bitrate that is usually incorrect). Filesize shift is due to youtube-dl fixup policy to fix known issues with media files (you may notice |
|
Great thanks! That did the trick. Appreciate the help. |
Recently youtube-dl has been downloading audio/mp4 files with a file size different from the file size specified in the MPEG-DASH MPD. For example, if I get the MPEG-DASH MPD using youtube-dl
curl $(youtube-dl https://www.youtube.com/watch?v=x9vmoQ5WABU --youtube-include-dash-manifest --dump-intermediate-pages -s | grep manifest.google | cut -d ' ' -f 5)
you can see that the content length of the audio/mp4 files is supposed to be 3702900 and 7431829 bytes, but instead youtube-dl gives audo/mp4 files that are 3740463 and 7469392 bytes. When the youtube client javascript makes requests for the audio/mp4 files, it expects the files to be the ones specified in the MPD with the above command, so it would seem that youtube-dl is downloading incorrect/modified audio/mp4 files.