Great...but I don't understand why you want to use Youtube in the first place?
You can convert any avi directly to MPREG-DASH yourself by using https://github.com/Cloudoki/mp4-to-mpegdash
This is the all in one command you wanted 😉
Cheers!