Downloading videos from Youtube doesn't work via `curl`

I have opened and downloaded via curl some mp4 file from Youtube via F12 hotkey (i.e. from developer menu) and have saved it into J.mp4but it cannot be replayed. Someone knows Why ? It writes

Program Windows Media Player nemůže přehrát soubor. Přehrávač pravděpodobně nepodporuje tento typ souboru nebo nepodporuje kodek, který byl použit ke komprimaci souboru.

EDIT In English Windows Media Player cannot play the file. The player may not support this type of file or may not support the codec that was used to compress the file.

 curl ""%"2C134"%"2C135"%"2C136"%"2C137"%"2C160"%"2C242"%"2C243"%"2C244"%"2C247"%"2C248"%"2C278"%"2C394"%"2C395"%"2C396"%"2C397"%"2C398&source=youtube&requiressl=yes&mh=ce&mm=31"%"2C26&mn=sn-2gb7sn7r"%"2Csn-4g5e6nsr&ms=au"%"2Conr&mv=m&mvi=3&pl=16&initcwndbps=1658750&vprv=1&mime=video"%"2Fmp4&ns=TVypPdgRR1h3nIAp81UXWTAF&gir=yes&clen=305476742&dur=21854.997&lmt=1584442356635626&mt=1612449199&fvip=3&keepalive=yes&c=WEB&txp=5531432&n=AMTpbbW0IwSivQ&sparams=expire"%"2Cei"%"2Cip"%"2Cid"%"2Caitags"%"2Csource"%"2Crequiressl"%"2Cvprv"%"2Cmime"%"2Cns"%"2Cgir"%"2Cclen"%"2Cdur"%"2Clmt&lsparams=mh"%"2Cmm"%"2Cmn"%"2Cms"%"2Cmv"%"2Cmvi"%"2Cpl"%"2Cinitcwndbps&lsig=AG3C_xAwRQIhAMjpP3wg4qY5z95gm38b8bg69TDxhV-xcHSqO9_sVu3zAiBH4022rOnDc6VkpOpGhoCH-F4A3tW6gwtOGHlV32Ol7A"%"3D"%"3D&alr=yes&sig=AOq0QJ8wRgIhAJCvYFZshAgJjPRDdAZHAjvD-AY-pQ3GIWxLY1ynlJZzAiEA4zH54IH1kW95u7hmJ4zPsiqdOwAbJ2HLIMuiiXIsk34"%"3D&cpn=Q6yYENvDZpQ-bRl0&cver=2.20210201.07.01&range=0-49859&rn=11&rbuf=0" -H "User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0" -H "Accept: */*" -H "Accept-Language: cs,sk;q=0.8,en-US;q=0.5,en;q=0.3" --compressed -H "Origin: " -H "Connection: keep-alive" -H "Referer: " > J.mp4

THE FILE SEEMS TO BE BINARY:

enter image description here

EDIT RESULT OF SMPLAYER : edned with error :-(

enter image description here

20

2 Answers

Its probably blocked by YouTube somehow so I dont know how you can get past that but... there is a tool called "youtube-dl" I found which can do the same thing.

3

I think you should uninstall your YouTube app and go to Google and search for modern YouTube app since it might be the problem

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like