Try printing ( with log) the command you are trying to execute, run it in a seperate command line to see if it's working properly.
since it's related to input I am suspecting the problem is with the youtube url you are providing
@cjakash Data after using various types of decoding are meaningless characters.
So it's possible that this is their own custom-encrypted data.
And I often do that too.