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.
Checklist
Verbose log
Description
This does not appear to be a duplicate of #4906 or similar bugs; they all say "invalid argument" but error -22 appears to be: ERROR_BAD_COMMAND 22 (0x16) The device does not recognize the command.
When archiving entire channels, I sometimes find that a very small number of the downloaded videos will fail to mux during post-processing (in this case, 2 out of 270 are failing). The streams download and all of the output files are created, but the logs show a message about "incorrect codec parameters" with no real parameters, only a question mark. I did some sanity checks to make sure it wasn't something trivial that is not youtube-dl's fault:
MediaInfo:
System is running Windows 10 Pro x64 build 1909.